Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disappearing courses when changed #213

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

jxjj
Copy link
Contributor

@jxjj jxjj commented Sep 17, 2024

when a planned section/enrollment is changed, the id of that section might also change causing issues in the interface in planning mode (e.g. sections that disappear after course change).

This PR updates the api id for local courses so that it's stays stable on update.

(An alternative approach would have be to update the store and make sure old values are completely deleted and new values are added with the new id -- which might be better, but would require chasing down where we're relying on an old id.)

Fixes #211

when a planned section/enrollment is changed, the id of that section might also change causing issues in the interface.

This keeps the id stable on updates, so that the store entry (keyed by id) can be updated, rather than deleted and replaced.

An alternative approach would be to update the store and make sure old values are completely deleted and new values are added with the new id -- which might be better, but require more changes

Fixes #211
@jxjj jxjj requested a review from cmcfadden September 17, 2024 17:35
@jxjj jxjj self-assigned this Sep 17, 2024
@jxjj jxjj merged commit 0f00b12 into develop Sep 17, 2024
2 checks passed
@jxjj jxjj deleted the feature/211-planning-mode-course-disappear branch September 17, 2024 17:52
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.

changing course in planning mode causes the course to disappear until refresh (develop branch)
2 participants