Skip to content

fix: handle missing discussion settings when importing old courses - #736

Merged
Agrendalath merged 2 commits into
opencraft-release/redwood.1from
agrendalath/fix-syncing-discussing-settings
Oct 16, 2025
Merged

fix: handle missing discussion settings when importing old courses#736
Agrendalath merged 2 commits into
opencraft-release/redwood.1from
agrendalath/fix-syncing-discussing-settings

Conversation

@Agrendalath

@Agrendalath Agrendalath commented Feb 3, 2025

Copy link
Copy Markdown
Member

This is a Redwood backport of openedx#36211.

@Agrendalath Agrendalath self-assigned this Feb 3, 2025
@Cup0fCoffee

Copy link
Copy Markdown
Member

@Agrendalath Seems like the upstream PR has been closed, because the fix has been implemented and merged in a different PR. Can we close this PR and drop it?

@Agrendalath
Agrendalath force-pushed the agrendalath/fix-syncing-discussing-settings branch from 7a8199e to f15c74f Compare October 8, 2025 16:36
@Agrendalath
Agrendalath force-pushed the agrendalath/fix-syncing-discussing-settings branch from f15c74f to 1120312 Compare October 8, 2025 16:36
@Agrendalath

Copy link
Copy Markdown
Member Author

@Cup0fCoffee, we shouldn't drop it - instead, we should revert 8612f2a and backport the fix to our branch. I updated this PR. Since it's a clean backport, it should be okay to merge it once the CI passes.

… type in course

Both 'provider' and 'provider_type' have been used for storing the discussion provider type in course 'discussions_settings' field, there are some places in the code checking for 'provider' and others checking for 'provider_type', in some cases this can cause a bug where it doesn't detect the correct provider which causes discussion settings not being copied correctly when a course is cloned.

This change prioritises the `provider_type` setting over `provider` and reads `provider` only as a fallback. The `provider` setting is now made read-only just for backwards-compatibility, to avoid confusion.

(cherry picked from commit 9ee4afa)
@Cup0fCoffee
Cup0fCoffee force-pushed the agrendalath/fix-syncing-discussing-settings branch from 1120312 to 18e2d56 Compare October 14, 2025 18:02
@Agrendalath
Agrendalath merged commit 6f64f13 into opencraft-release/redwood.1 Oct 16, 2025
16 of 77 checks passed
@Agrendalath
Agrendalath deleted the agrendalath/fix-syncing-discussing-settings branch October 16, 2025 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants