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

[CORL-1281] Improve Type Handling #3104

Closed
wants to merge 2 commits into from
Closed

[CORL-1281] Improve Type Handling #3104

wants to merge 2 commits into from

Conversation

wyattjoh
Copy link
Collaborator

What does this PR do?

Various areas of the front end we access the relay cache without property typechecking controls (using thing!.other!.thing to bypass the strict null checks). This modifies some of those critical paths to add checks to prevent errors from occuring.

What changes to the GraphQL/Database Schema does this PR introduce?

None.

How do I test this PR?

Try to interact with the moderation page when comments are coming in and see no errors occur.

@wyattjoh wyattjoh added the bug label Aug 12, 2020
@wyattjoh wyattjoh added this to the v6.3.3 milestone Aug 12, 2020
@wyattjoh wyattjoh requested a review from cvle August 12, 2020 23:11
Copy link
Member

@cvle cvle left a comment

Choose a reason for hiding this comment

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

I think a lot of these cases, are correct. If it's not in the relay cache, then there is a bigger problem and needs investigation. Silently returning would just mask the underlying problem.

@wyattjoh
Copy link
Collaborator Author

Closing for now till we can handle this better.

@wyattjoh wyattjoh closed this Aug 13, 2020
@wyattjoh wyattjoh deleted the bugfix/CORL-1281 branch August 13, 2020 17:54
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.

None yet

2 participants