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

edx / edx-organizations
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: jenkins/upgrade-python-requirements-b57fb66
DEFAULT BRANCH: master
Repo Added 21 Jul 2015 05:42PM UTC
Files 29
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

LAST BUILD ON BRANCH 6.8.0
branch: 6.8.0
CHANGE BRANCH
x
Reset
  • 6.8.0
  • 0.3.0
  • 0.3.1
  • 0.4.0
  • 0.4.1
  • 0.4.10
  • 0.4.2
  • 0.4.3
  • 0.4.4
  • 0.4.5
  • 0.4.6
  • 0.4.7
  • 0.4.8
  • 0.4.9
  • 0.5.0
  • 0.5.1
  • 1.0.0
  • 1.0.1
  • 2.0.3
  • 2.1.1
  • 2.2.0
  • 2.2.1
  • 2to3
  • 3.0.0
  • 4.0.0
  • 5.0.0
  • 5.1.0
  • 5.2.0
  • 5.3.0
  • 6.0.0
  • 6.1.0
  • 6.10.0
  • 6.2.0
  • 6.3.0
  • 6.4.0
  • 6.5.0
  • 6.6.0
  • 6.7.0
  • 6.7.1
  • 6.9.0
  • BOM-1021
  • ahsan/remove-test-requires
  • bom-1930
  • cale-password-change-test
  • cale/fix-password
  • christina/django-upgrade
  • clintonb/admin-improvements
  • clintonb/admin-search
  • clintonb/edx-standards
  • clintonb/fix-quality
  • clintonb/json-auth
  • clintonb/organization-help-text
  • clintonb/pypi
  • clintonb/remove-dead-variable
  • diana/squash-migrations
  • douglashall/ENT-585
  • feanil/fix_for_python3
  • feanil/prep_for_release
  • feanil/unpin_drf
  • feanil/update_testing
  • fix-upgrade-workflow
  • jawayria/django32_support
  • jenkins/cleanup-python-code-24d4ec4
  • jenkins/cleanup-python-code-9564c66
  • jenkins/cleanup-python-code-9a083d9
  • jenkins/upgrade-python-requirements-012ab26
  • jenkins/upgrade-python-requirements-0134055
  • jenkins/upgrade-python-requirements-037c7cf
  • jenkins/upgrade-python-requirements-04e5831
  • jenkins/upgrade-python-requirements-054a5e8
  • jenkins/upgrade-python-requirements-0b4259b
  • jenkins/upgrade-python-requirements-0d269ec
  • jenkins/upgrade-python-requirements-0ee9b23
  • jenkins/upgrade-python-requirements-10ce1ff
  • jenkins/upgrade-python-requirements-145be96
  • jenkins/upgrade-python-requirements-153eff7
  • jenkins/upgrade-python-requirements-16733ed
  • jenkins/upgrade-python-requirements-1747758
  • jenkins/upgrade-python-requirements-20e2359
  • jenkins/upgrade-python-requirements-2190acf
  • jenkins/upgrade-python-requirements-2276b44
  • jenkins/upgrade-python-requirements-2339bc9
  • jenkins/upgrade-python-requirements-24d4ec4
  • jenkins/upgrade-python-requirements-256580f
  • jenkins/upgrade-python-requirements-265fe1b
  • jenkins/upgrade-python-requirements-2c4ecfd
  • jenkins/upgrade-python-requirements-320fad9
  • jenkins/upgrade-python-requirements-34331a2
  • jenkins/upgrade-python-requirements-36740d4
  • jenkins/upgrade-python-requirements-37cd25c
  • jenkins/upgrade-python-requirements-3a8c22d
  • jenkins/upgrade-python-requirements-406cc69
  • jenkins/upgrade-python-requirements-41b5f8b
  • jenkins/upgrade-python-requirements-469f782
  • jenkins/upgrade-python-requirements-46ce3e7
  • jenkins/upgrade-python-requirements-4cf2f85
  • jenkins/upgrade-python-requirements-4db63b5
  • jenkins/upgrade-python-requirements-4dbba5f
  • jenkins/upgrade-python-requirements-4e1ae2c
  • jenkins/upgrade-python-requirements-5799e85
  • jenkins/upgrade-python-requirements-580a71e
  • jenkins/upgrade-python-requirements-599e2ca
  • jenkins/upgrade-python-requirements-5a361f2
  • jenkins/upgrade-python-requirements-5aa3824
  • jenkins/upgrade-python-requirements-6347bf5
  • jenkins/upgrade-python-requirements-63f483a
  • jenkins/upgrade-python-requirements-645d271
  • jenkins/upgrade-python-requirements-67a53de
  • jenkins/upgrade-python-requirements-68eef0e
  • jenkins/upgrade-python-requirements-6bdb9ea
  • jenkins/upgrade-python-requirements-6e092b5
  • jenkins/upgrade-python-requirements-6f94f05
  • jenkins/upgrade-python-requirements-76d5519
  • jenkins/upgrade-python-requirements-7af1c6f
  • jenkins/upgrade-python-requirements-80681d9
  • jenkins/upgrade-python-requirements-8751135
  • jenkins/upgrade-python-requirements-87718ca
  • jenkins/upgrade-python-requirements-8844fcd
  • jenkins/upgrade-python-requirements-8b2a76b
  • jenkins/upgrade-python-requirements-8d929c8
  • jenkins/upgrade-python-requirements-8de6ef4
  • jenkins/upgrade-python-requirements-8feeca5
  • jenkins/upgrade-python-requirements-903e28d
  • jenkins/upgrade-python-requirements-92ab0c8
  • jenkins/upgrade-python-requirements-989b4f0
  • jenkins/upgrade-python-requirements-98fb1dd
  • jenkins/upgrade-python-requirements-996d2d0
  • jenkins/upgrade-python-requirements-9a083d9
  • jenkins/upgrade-python-requirements-9b5d740
  • jenkins/upgrade-python-requirements-9bf92a1
  • jenkins/upgrade-python-requirements-9c314b8
  • jenkins/upgrade-python-requirements-9e0ee0b
  • jenkins/upgrade-python-requirements-a1c99c7
  • jenkins/upgrade-python-requirements-a42e2f9
  • jenkins/upgrade-python-requirements-a8d8572
  • jenkins/upgrade-python-requirements-a919fa4
  • jenkins/upgrade-python-requirements-aa2d602
  • jenkins/upgrade-python-requirements-ab1f5b8
  • jenkins/upgrade-python-requirements-acaca17
  • jenkins/upgrade-python-requirements-ada3d29
  • jenkins/upgrade-python-requirements-b013583
  • jenkins/upgrade-python-requirements-b0357e0
  • jenkins/upgrade-python-requirements-b05e48e
  • jenkins/upgrade-python-requirements-b422abd
  • jenkins/upgrade-python-requirements-b43f7e3
  • jenkins/upgrade-python-requirements-b57fb66
  • jenkins/upgrade-python-requirements-b580b63
  • jenkins/upgrade-python-requirements-b584b6b
  • jenkins/upgrade-python-requirements-b971be5
  • jenkins/upgrade-python-requirements-baeb26b
  • jenkins/upgrade-python-requirements-c1fbfdd
  • jenkins/upgrade-python-requirements-c257fa0
  • jenkins/upgrade-python-requirements-c44ff18
  • jenkins/upgrade-python-requirements-c5ffae9
  • jenkins/upgrade-python-requirements-c967dc4
  • jenkins/upgrade-python-requirements-cc9d0f8
  • jenkins/upgrade-python-requirements-cd97f37
  • jenkins/upgrade-python-requirements-cffa553
  • jenkins/upgrade-python-requirements-d47b835
  • jenkins/upgrade-python-requirements-d6d69bb
  • jenkins/upgrade-python-requirements-d7d7310
  • jenkins/upgrade-python-requirements-de11cac
  • jenkins/upgrade-python-requirements-dfea26d
  • jenkins/upgrade-python-requirements-e0375bf
  • jenkins/upgrade-python-requirements-e2fb0d8
  • jenkins/upgrade-python-requirements-e896e34
  • jenkins/upgrade-python-requirements-f02c11f
  • jenkins/upgrade-python-requirements-f7ba6af
  • jenkins/upgrade-python-requirements-f7c4b7f
  • jenkins/upgrade-python-requirements-f9a8e0d
  • jenkins/upgrade-python-requirements-faa5a92
  • jenkins/upgrade-python-requirements-fb43f5e
  • jenkins/upgrade-python-requirements-fc38d2f
  • jenkins/upgrade-python-requirements-ff10072
  • jeskew/add_missing_v0_app_name
  • jeskew/fix_django20_deprecation_warning
  • jmbowman/PLAT-2061
  • jmbowman/trove_classifiers
  • kdmccormick/bulk-activate-linkages
  • kdmccormick/bulk-add-fix-lowercase-query
  • kdmccormick/bulk-add-return-values
  • kdmccormick/bulk-create-dry-run
  • kdmccormick/bulk-create-inactive
  • kdmccormick/mgmt-cmd
  • kdmccormick/organization-strictness
  • kdmccormick/organization-strictness-bulk
  • kdmccormick/organization-unique-short-name
  • kdmccormick/organizations-deprecated-flag
  • kdmccormick/organizations-rollout/http-api-update-inactive
  • kdmccormick/py3.6
  • master
  • msingh/migration_type_mismatch
  • msingh/oauth
  • msingh/patch_1
  • msingh/release_bump
  • msingh/remove_library
  • msingh/remove_oauth2
  • ndalfonso/DISCO-1414-org-source-of-truth
  • nedbat/fix-47
  • nedbat/more-oep-18
  • pin-drf-jwt-15
  • pwnage101/add-history-to-organization
  • relax-django-model-utils
  • release-2016-01-26
  • renzo/oauth
  • requirements-upgrade-job
  • ri/EDUCATOR-1672-org-short-name-validation-django-admin
  • ri/EDUCATOR-1913-allow-period-org-shortname
  • ri/release-EDUCATOR-1672
  • ri/release-EDUCATOR-1913
  • robrap/ARCH-255-update-legacy-imports
  • sarina/update-adr-0001
  • update-requirements-workflow
  • usamasadiq/bom-1817-remove-six
  • v2.0.1
  • v2.0.2
  • v2.1.0
  • waheed/LEARNER-2320-add-explicit-fields-attr
  • zulqarnain/BOM-1540

pending completion
1149

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%)

1001 of 1001 relevant lines covered (100.0%)

3.0 hits per line

Relevant lines Covered
Build:
Build:
1001 RELEVANT LINES 1001 COVERED LINES
3.0 HITS PER LINE
Source Files on 6.8.0
  • Tree
  • List 29
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
1149 6.8.0 [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 t... push 25 Jan 2021 08:32PM UTC web-flow travis-ci-com pending completion  
See All Builds (1075)
  • Repo on GitHub
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

© 2025 Coveralls, Inc