feat: sync more discussion settings on course import#37696
feat: sync more discussion settings on course import#37696Agrendalath wants to merge 3 commits intoopenedx:masterfrom
Conversation
|
Thanks for the pull request, @Agrendalath! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
|
Hi @Agrendalath, is this still in progress? |
|
@mphilbrick211, this should only be missing testing instructions, but I will double-check next week. |
fc48247 to
10875a2
Compare
This adds synchronization for the following attributes: 1. Discussion enabled. 2. In-context discussion enabled. 3. Posting restrictions. 4. Plugin configuration (e.g., grouping at the subsection level).
10875a2 to
68d9032
Compare
| assert self.discussion_config.unit_level_visibility is False | ||
| assert self.discussion_config.enable_in_context is True | ||
| assert self.discussion_config.posting_restrictions == "enabled" | ||
| assert self.discussion_config.provider_type == Provider.LEGACY |
There was a problem hiding this comment.
Some of these issues exit because as new discussion setting were added, the import code was not updated. Could you add a test that will fail if new settings are added but not updated in the import code?
|
@Agrendalath, I think we should also include a data migration to sync the discussion configuration for existing courses. cc: @kdmccormick |
xitij2000
left a comment
There was a problem hiding this comment.
👍 I've looked at the code and I think this is good to merge.
That said I haven't been able to test it yet, due to a broken devstack. I'll try to test ASAP.
Yes, it would be nice to have, but this PR modifies only the code related to course imports, so syncing configurations is a completely different area. Unfortunately, I don't have enough context on the legacy discussions or the plans for them, so I don't know whether this effort would be worth doing before, e.g., migrating courses out of the modulestore.
Perhaps this will help, as it's one of the recent breaking changes when using the main branch. |
Nope, I faced and fixed that long back :-) |
kdmccormick
left a comment
There was a problem hiding this comment.
LGTM, but haven't tested it myself. Merge away once @xitij2000 confirms he's been able to manually test.
xitij2000
left a comment
There was a problem hiding this comment.
👍 Just managed to fix my devstack and test this.
- I tested this: tested using instructions.
- I read through the code
- [-] I checked for accessibility issues (NA)
- [-] Includes documentation (NA)
- [-] I made sure any change in configuration variables is reflected in the corresponding client's
configuration-securerepository. (NA)
Description
This adds synchronization for the following attributes:
Discussion enabled.(not anymore - it was implemented in fix: discussion tab visibility on import #38084)Useful information to include:
Testing instructions
Deadline
"None"
Other information
Private-ref: BB-10137