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

More robustly check if a user is certified #608

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

afwillia
Copy link
Contributor

@afwillia afwillia commented Jul 31, 2024

Fixes a bug that crashes the app when loading the asset view selection screen for users that have not taken the certification quiz. For these users, the synapse API endpoint certifiedUserPassingRecord returns a different structure than the code assumed. It assumed the endpoint always returned a PassingRecord object which contains the attribute "passed", but this is only returned for users who have attempted the certification quiz.

The code is now updated to check for the "certified" attribute in the response and return TRUE if it is TRUE. In all other instances it will return FALSE

@afwillia afwillia merged commit e607c6c into develop Aug 2, 2024
3 checks passed
@afwillia afwillia deleted the develop-fix-certification-failure branch August 2, 2024 16:18
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.

1 participant