Skip to content

Conversation

@dmitchell
Copy link
Contributor

@cpennington please review

Copy link
Contributor

Choose a reason for hiding this comment

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

a) You don't need to check NoneType at the end, because you check None at the beginning.
b) Can we just make sure that definition_locators are never None?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I didn't think I needed the test (but it's testing the internals of the thing checked as None earlier; so, it's not redundant.) The other place in the file used the less lenient test. I changed this. I think it still needs to check the locator b/c I don't trust all xblock constructors to add it (e.g., when migrating from one modulestore to another)

@cpennington
Copy link
Contributor

Looks reasonable. Are there any new tests needed to cover this case?

@dmitchell
Copy link
Contributor Author

Well, since it broke 4 in test_crud, I think it's covered :-) I could add
explicit test which check that the definition_id is indeed a LocalId if you
think that would be useful.

On Thu, Jan 9, 2014 at 10:27 AM, Calen Pennington
notifications@github.comwrote:

Looks reasonable. Are there any new tests needed to cover this case?


Reply to this email directly or view it on GitHubhttps://github.com/edx/edx-platform/pull/2117#issuecomment-31942101
.

@cpennington
Copy link
Contributor

Yeah, I think it might be helpful to cement that behavior, if we're going
to be depending on it.

-Cale

On Thu, Jan 9, 2014 at 10:32 AM, Don Mitchell notifications@github.comwrote:

Well, since it broke 4 in test_crud, I think it's covered :-) I could add
explicit test which check that the definition_id is indeed a LocalId if
you
think that would be useful.

On Thu, Jan 9, 2014 at 10:27 AM, Calen Pennington
notifications@github.comwrote:

Looks reasonable. Are there any new tests needed to cover this case?


Reply to this email directly or view it on GitHub<
https://github.com/edx/edx-platform/pull/2117#issuecomment-31942101>
.


Reply to this email directly or view it on GitHubhttps://github.com/edx/edx-platform/pull/2117#issuecomment-31942813
.

@cpennington
Copy link
Contributor

👍

dmitchell added a commit that referenced this pull request Jan 9, 2014
Set definition_locator on in-memory xblocks
@dmitchell dmitchell merged commit 67a5f86 into master Jan 9, 2014
@dmitchell dmitchell deleted the dhm/memory_definition branch January 9, 2014 19:58
jenkins-ks pushed a commit to nttks/edx-platform that referenced this pull request Sep 22, 2017
* Add menu to ga_operation for ga_analyzer openedx#2039 (openedx#2088)

* add role for old course viewer openedx#2062 (openedx#2087)

* add role for old course viewer openedx#2062

* Change action for biz course by BetaTester role openedx#2062

* Construction of image server openedx#2025 (openedx#2106)

* cherry-pick 8c8953f

* Fix file upload in IE

* Construction of image server openedx#2025

* add all keywords search in Student management openedx#2029 (openedx#2034)

* Fix bug for before enrollment start in ga old course viewer openedx#2062 (openedx#2125)

* fix. Construction of image server openedx#2025 (openedx#2117)

* Modify message and css of enrollment for Course About openedx#2130

* Add a certificate list to user's profile page. openedx#2042 (openedx#2108)

* Mod UT openedx#2130

* add PDF File Construction of image server openedx#2025 (openedx#2140)

* add library option, and library links to the course. openedx#2001 (openedx#2124)

* Invalid StudioPermissionsService object in API to show/save xblock settings in CMS.
Randomized Content Block editor did not check Studio user's permissions

* add library option, and library links to the course. openedx#2001

* fix. add all keywords search in Student management openedx#2029 (openedx#2034) (openedx#2157)

* second fix. Construction of image server openedx#2025 (openedx#2158)

* add library option, and library links to the course. openedx#2001 (openedx#2160)

* third fix. Construction of image server openedx#2163 (openedx#2164)

* Add filter by category for certificates on profile page openedx#2042 (openedx#2165)

* Fix bug for  add library option, and library links to the course. openedx#2162 openedx#2133 (openedx#2167)

* Develop/dogwood/gacco201708 (openedx#2170)

* Fixed bugs openedx#2039 (openedx#2112)

* Fixed csv format openedx#2039 (openedx#2127)

* Change to split download if there are many display items openedx#916 (openedx#2121)

* Change to split download if there are many display items openedx#916

* Fix UT

* Fix Review

* Fix review2
shimulch pushed a commit to open-craft/openedx-platform that referenced this pull request Mar 15, 2021
This should fix issues with progress notifications
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