-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BD-14] Allow inactive orgs to be updated through HTTP API (#165)
Since LMS/Studio organizations have been completely backfilled, there are now hundreds of Inactive organizations in the edxapp database. Inactive organizations are not surfaced to users, and hence are effectively non-existent. If an organization is created or edited in an external data source (such as Course Discovery), that source should be able to push the update to the Organizations API exposed by edx-organizations. Currently, however, the Organizations API will return 400 if one tries to create/update an organization that exists but is inactive. This could potentially lead to Course Discovery <-> LMS/Studio data synchronization issues down the road. This commit fixes that by making three changes: 1. Any organization may be updated via the PUT method, regardless of whether or not it is active. 2. Upon being updated, the organization is marked as active, whether it was previously active, inactive, or non-existent. 3. The 'active' field may not be set or updated via the HTTP API, because that would be in conflict with change #2. Also, clean up HTTP API docstrings, and test that DELETE and POST method are unsupported. Bump version to 6.8.0. TNL-7913
- Loading branch information
1 parent
0b9ef08
commit 24d4ec4
Showing
3 changed files
with
78 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
""" | ||
edx-organizations app initialization module | ||
""" | ||
__version__ = '6.7.1' # pragma: no cover | ||
__version__ = '6.8.0' # pragma: no cover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters