-
Notifications
You must be signed in to change notification settings - Fork 807
Improved Object Validations with New ValidateObject #13232
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
Improved Object Validations with New ValidateObject #13232
Conversation
Build Artifacts
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I spun it up locally and saw no issues - notably I saw no errors in the console, so the validator objects seem to match what is expected in each component.
Thank you for this! I really appreciate having defined types in components like this to make it clear what needs to be passed around.
Thanks a lot @nucleogenesis. @Abhishek-Punhani would you please update
with the guidance on how to preview those pages from a user point of view? Our QA team doesn't examine code. I will then loop them in to make final confirmation before we merge. I think it should be fine as @nucleogenesis have checked on it, but we're shortly before a release and in the previous PR were running into some unexpected issues, so I'd like to have their thumbs up. |
Yes, please, add some comprehensive review guidance for testing of the potential user-facing consequences of the changes in this PR 🙏🏽 |
Thanks so much for the updated guidance @Abhishek-Punhani - I know this must be lots of work, and it's much appreciated. @radinamatic on these places, we want to focus on no validation errors in the console. I don't think it should break anything functional really, but changes like this have high potential to overwhelm console (and us fixing them shortly before the release :) |
Oh, I skimmed the first post and could not see the relevant heading... @Abhishek-Punhani again, thank very much for the work on this contribution, but please, respect the PR template structure (do not just delete it, and write over), it's there for a reason. If need be separate the guidance for code review, and that for the manual QA, but the latter is best placed under the relevant heading in the template (see the example from another PR below): ![]() |
@radinamatic , apologies, but I didn't understand how to add reviewer guidance. Because we are just assigning all these props a type that won't affect any functionality, we need to ensure that there are no console errors due to these type assignments |
Take it just as a recommendation for future PRs 🙂
If there are no user-facing consequences, but you still would like a manual QA confirmation (when we use actual built assets, instead of running from the source), explain that clearly in the reviewer guidance 🙂 |
@radinamatic , I will take care of this from next PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues observed while regression testing - LGTM!
Wonderful, thanks all of you here |
We can merge after pending checks pass |
I noticed that some checks are still pending. Do they require one remaining approval? |
@Abhishek-Punhani - I think we may have had some issues with GH actions in the last week or so causing the stall. Could you fetch and rebase on the latest |
67f701e
to
ab13be7
Compare
Thanks all. Good work @Abhishek-Punhani |
Implemented improved object validations using validateObject function
Issue Addressed : #8903
Reviewer Guidance
We have implemented improved object validations using the validateObject function. This change replaces ad-hoc validation logic with validateObject for consistency and maintainability. We have updated prop validation in components to use validateObject and ensured all object prop validations are thorough and standardized. Manual verification has been performed to ensure no regressions.
Please review the following pages/components for potential issues due to recent changes:
Pages/components using ChannelCardGroupGrid
How to Preview:
1: Home Page:
2. Explore Page:
Pages/components using CopiesModal
How to Preview:
1. Resource Details Page:
2. Search Results Page:
Pages/components using AlsoInThis
How to Preview:
1.Resource Details Page:
2 .Topic Page:
Please ensure that the data validation, rendering, and interactions are working as expected. If you encounter any issues, please report them for further investigation.