• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

edx / edx-organizations / 1148
100%

Build:
DEFAULT BRANCH: master
Ran 25 Jan 2021 08:20PM UTC
Jobs 4
Files 29
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1148

push

travis-ci-com

web-flow
[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

137 of 137 branches covered (100.0%)

33 of 33 new or added lines in 2 files covered. (100.0%)

1001 of 1001 relevant lines covered (100.0%)

3.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1148.1 (TOXENV=quality) 25 Jan 2021 08:20PM UTC 0
0.0
Travis Job 1148.1
2 1148.2 (TOXENV=django22) 25 Jan 2021 08:20PM UTC 0
100.0
Travis Job 1148.2
3 1148.3 (TOXENV=django30) 25 Jan 2021 08:20PM UTC 0
100.0
Travis Job 1148.3
4 1148.4 (TOXENV=django31) 25 Jan 2021 08:22PM UTC 0
100.0
Travis Job 1148.4
Source Files on build 1148
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #1148
  • 24d4ec4f on github
  • Prev Build on master (#1134)
  • Next Build on master (#1156)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc