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: extractProductKeys breaking recommendations view #15

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

MaxFrank13
Copy link
Member

This will address an error that was discovered in Skills Builder where recommendations were not being returned, despite seeing a successful in the Network tab. The application was failing silently because we didn't have proper logging for catching these errors. This has been added and the utility function that was causing the error has been modified to prevent it from happening again. More details in the ticket below:

APER-2690

A test has been added and it has been confirmed that this test will fail if these changes to extractProductKeys are removed.

@@ -56,7 +57,8 @@ const ViewResults = () => {
};

getAllRecommendations()
.catch(() => {
.catch((err) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. We should definitely be logging errors!

Copy link
Contributor

@cdeery cdeery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for finding the issue.

@MaxFrank13 MaxFrank13 merged commit e6c562c into main Jul 24, 2023
3 checks passed
@MaxFrank13 MaxFrank13 deleted the mfrank/test-recs-error branch July 24, 2023 17:59
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.

2 participants