Skip to content

Moved xml_store_config, mongo_store_config, and draft_mongo_store_config... - #307

Merged
jmnater merged 1 commit into
masterfrom
jnater/modulestore_config
Jul 1, 2013
Merged

Moved xml_store_config, mongo_store_config, and draft_mongo_store_config...#307
jmnater merged 1 commit into
masterfrom
jnater/modulestore_config

Conversation

@jmnater

@jmnater jmnater commented Jun 28, 2013

Copy link
Copy Markdown

... to xmodule/modulestore/tests/django_util.py

Removed some repeated instances of xml_store_config.
Reverted some changes to mongo_store_config so each modulestore gets it's own uuid.

@JonahStanley @jzoldak @wedaly

@JonahStanley

Copy link
Copy Markdown
Contributor

As far as making the tests parallel goes... it looks good. Though I do wonder about the database name (see line comment)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the db be called test_xmodule for consistency?

@wedaly

wedaly commented Jun 28, 2013

Copy link
Copy Markdown
Contributor

I know I said it was okay to move the TEST_ constants into common/djangoapps/course_groups, but looking at your code now I'm not so sure.

In course_groups, only one of the constants gets used, in one file. So it's reasonable to just define the constant there.

In courseware, the constants get accessed a bunch of places. So it makes sense for there to be a modulestore_config within the package that gets imported by multiple tests within the package. It does NOT make sense to introduce a dependency from courseware onto course_groups just to avoid repeating two lines of code.

So the directory structure should be this:

  • lms/djangoapps/courseware/tests/modulestore_config.py (gets imported by other things in that package).
  • Define the constant TEST_DATA_XML_MODULESTORE = xml_store_config(TEST_DATA_DIR) at the top of common/djangoapps/course_groups/tests/tests.py. You'll need to retrieve the settings for TEST_DATA_DIR there as well.

@wedaly

wedaly commented Jul 1, 2013

Copy link
Copy Markdown
Contributor

👍

…fig to xmodule/modulestore/tests/django_util.py

Removed some repeated instances of xml_store_config.
Reverted some changes to mongo_store_config so each modulestore gets it's own uuid.
jmnater pushed a commit that referenced this pull request Jul 1, 2013
Moved xml_store_config, mongo_store_config, and draft_mongo_store_config...
@jmnater
jmnater merged commit f9369b4 into master Jul 1, 2013
@jmnater
jmnater deleted the jnater/modulestore_config branch July 1, 2013 18:56
chrisrossi pushed a commit to jazkarta/edx-platform that referenced this pull request Mar 31, 2014
hachiyanagi-ks added a commit to nttks/edx-platform that referenced this pull request Oct 2, 2015
hachiyanagi-ks added a commit to nttks/edx-platform that referenced this pull request Oct 2, 2015
…x-messages-account-settings

Fix messages for account settings openedx#307
CrewS pushed a commit to CrewS/edx-platform-1 that referenced this pull request Feb 18, 2019
michaelroytman added a commit that referenced this pull request Nov 30, 2022
…Service and Result Service

This commit upgrades the version of the lti-consumer-xblock library from version 6.4.0 to version 7.0.2. This includes versions 7.0.0, 7.0.1, and 7.0.2.

Version 7.0.0 includes refactoring to remove deprecated method calls to rebind_noauth_module_to_user, get_real_user, runtime.hostname, and runtime.course_id.

Version 7.0.1 includes a fix to the clean method of the LtiConfiguration model. The fix changes the way we look up the course ID so that we can access the course ID without needing to load the XBlock.

Version 7.0.2 includes fixes to LTI 1.1 Basic Outcomes Services and LTI 2.0 Result Service when using an external_user_id as a user identifier.

Note that version 7.0.1 was originally deployed in #31369. It was reverted soon after in #31377. The issue occurred in version 7.0.0, in the following line https://github.com/openedx/xblock-lti-consumer/pull/249/files#diff-ab027143adc95b9776c12e973e28f025a21b0d88112937af93645829686527fdL186. self in the call to the service is an instance of the OutcomeService. self should be an instance of an XBlock (i.e. LtiConsumerXBlock). Version 7.0.2 fixes this bug by moving the call to the service to the LtiConsumerXBlock, where self is an instance of an XBlock. Therefore, we are deploying this version to fix forward.

Please see the CHANGELOG entries below for these versions for a full description of the changes.

Version 7.0.0: https://github.com/openedx/xblock-lti-consumer/blob/master/CHANGELOG.rst#700---2022-11-29
Version 7.0.1: https://github.com/openedx/xblock-lti-consumer/blob/master/CHANGELOG.rst#701---2022-11-29
Version 7.0.2: https://github.com/openedx/xblock-lti-consumer/blob/master/CHANGELOG.rst#702---2022-11-29.

The commit messages of each version are included below for convenience.

7.0.0
-----
refactor: replace block.location with block.scope_ids.usage_id

7.0.1
-----
fix: do not attempt to load the block just to look at the location
the block is not loadable in exams so clean fails in that IDA, but
we shouldn't need the block to ask a question about the course

7.0.2
-----
In #307, we added the ability to send a stable, static user identifier (i.e. external user ID) to fix failed launches with the QwikLabs tool. This is because the QwikLabs tool did not work with the course-anonymized user IDs we used to send (i.e. anonymous user IDs). Inadvertently, this change broke the LTI 1.1 Basic Outcomes Service and the LTI 2.0 Result Service for courses that use the external user ID (i.e. they have the lti_consumer.enable_external_user_id_1p1_launches CourseWaffleFlag enabled). The Basic Outcomes Service and Result Service handle grade pass backs. Because we now have two ways to identify a user in LTI 1.1/2.0, we must update the Basic Outcomes Service and Result Service to support both. This commit fixes this bug.
Danyal-Faheem pushed a commit to Danyal-Faheem/edx-platform that referenced this pull request Jul 15, 2025
update locale from the openedx/maple.master branch
kiram15 pushed a commit that referenced this pull request Jul 17, 2026
…d… (#307)

* fix: upgrade ora2 dependency to version 7.0.0 and remove loremipsum dependency

* fix: update ora2 dependency to version 7.0.0 and remove loremipsum dependency

* fix: downgrade ora2 dependency to version 6.17.2 across multiple requirements files

* fix: improve translation extraction process in Makefile

* fix: streamline translation extraction process and downgrade ora2 dependency

* fix: enhance translation extraction process in Makefile

---------

Co-authored-by: alenkadev <alenka-sonata@2u.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants