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: Course API - check loaded state href values more rigorously #1878

Merged
merged 7 commits into from
Feb 10, 2025

Conversation

panaaj
Copy link
Member

@panaaj panaaj commented Feb 5, 2025

Addresses #1873

Perform check on resource references (href) when loading stored state to ensure the resources still exist.

@panaaj panaaj added the fix label Feb 5, 2025
@panaaj panaaj requested a review from tkurki February 5, 2025 04:08
Use isValidWaypointCourse and isValidRouteCourse so
that the actual validation is simple: test for either
and if none match return default.
Make references to the value representing 'no course
is set' situation explicit.
@tkurki tkurki force-pushed the validate-stored-course-info branch from 553bd17 to df3eba9 Compare February 9, 2025 10:43
@tkurki tkurki force-pushed the validate-stored-course-info branch from df3eba9 to 43d6530 Compare February 9, 2025 17:15
@panaaj
Copy link
Member Author

panaaj commented Feb 10, 2025

Have tested. Looks good to merge.

@tkurki tkurki merged commit ffd5c49 into master Feb 10, 2025
3 checks passed
@tkurki tkurki deleted the validate-stored-course-info branch February 10, 2025 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants