stvn
eaeec735a9
feat: Add support for legacy discussions settings to API
2021-04-27 12:50:53 -07:00
stvn
4776ab1504
test: Add CourseFactory to discussions API tests
2021-04-27 12:37:29 -07:00
stvn
49594d92e6
fix: Grant course staff access to discussions API
...
to match expected behavior.
2021-04-16 11:23:44 -07:00
stvn
2fa36fb0cf
refactor: Move StaffFactory helper to common/
2021-04-14 07:26:39 -07:00
stvn
5dd8302d8b
refactor: Move GlobalStaffFactory helper to common/
2021-04-14 07:26:39 -07:00
stvn
eba78682c9
test: Test (incorrect) behavior of discussions API access
...
As implemented, course staff members will not have access to this API
endpoint. This will be addressed with pending work [1].
- [1] https://openedx.atlassian.net/browse/TNL-8231
2021-04-13 23:57:49 -07:00
stvn
4f0415f5cb
test: Add tests for discussions API access
...
This checks for expected API access [1];
data integrity will be checked later [2].
This work exposes that the code currently does _not_ grant access to
_course_ staff, only _global_ staff. This is being addressed next [3].
Fix: TNL-8229 [1]
- [1] https://openedx.atlassian.net/browse/TNL-8229
- [2] https://openedx.atlassian.net/browse/TNL-8230
- [3] https://openedx.atlassian.net/browse/TNL-8231
2021-04-13 23:57:49 -07:00
stvn
2053da2a9e
fix: Update default provider returned by discussions API
2021-04-07 11:54:21 -07:00
David Joy
8c6a06cf5b
fix: adjust discussions app APIs to match consuming frontend ( #27085 )
...
This commit adjusts a few values in our discussions configuration APIs to make them match what the frontend needs, as well as to more accurately reflect the providers available today.
- The `active` provider ID is expressed as None if it doesn’t exist
- The “cs_comments_service” provider has been renamed “legacy” - when we implement the new discussions micro-frontend, we’ll also have a separate provider for that, so they can’t both be “cs_comments_service”. Also, cs_comments_service is such a bad name for anything.
- The hard-coded providers list in get_supported_providers now includes ‘legacy’ and ‘piazza’, our two known providers. This list will be updated as more known providers come online.
- The PROVIDER_FEATURE_MAP has similarly been updated.
Part of this task: TNL-8093
2021-03-23 13:37:16 -04:00
usamasadiq
96f0915b0f
Fixed new pylint warnings.
...
use generator in any/all()
disable not-callable warnings
disable no-member warnings
Suppressed smaller pylint warnings
Pin edx-proctoring==3.5.0
2021-02-22 16:36:53 +05:00
Aarif
c880a44947
replaced unittest assertions pytest assertions ( #26566 )
2021-02-22 12:24:07 +05:00
stvn
c36c343c58
style: Fix pylint issues in discussions app
2021-02-02 16:57:39 -08:00
stvn
cff2cb8941
feat: Allow filtering of discussion providers
...
Propose and implement organization-wide discussion-provider filtering.
Fixes: TNL-7814
2021-02-02 06:51:41 -08:00
stvn
c7a4f97ba1
Add get-accessor helper for discussions plugins
2020-12-17 20:08:57 -08:00
stvn
590286f3be
Add is_enabled helper for discussions plugins
2020-12-17 19:40:41 -08:00
stvn
39acbf2f21
Implement a new configuration system for discussions plugins
...
Additional details available in the attached decisions document.
Co-authored-by: Kshitij Sobti <kshitij@sobti.in >
Co-authored-by: stvn <stvn@mit.edu >
2020-12-17 18:23:46 -08:00