-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Validate datasource setting on components #15414
base: master
Are you sure you want to change the base?
Validate datasource setting on components #15414
Conversation
QA Wolf here! As you write new code it's important that your test coverage is keeping up. |
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.
This LGTM - but I'll leave @aptkingston to comment as well - given it crosses the builder/client boundary!
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.
Nice work @adrinr! Glad this approach worked out 👌 Mostly just a few opinions here - nothing major other than just being aware that this currently wouldn't support component plugins, which is probably fine.
|
||
recurseFieldComponentsInChildren(screen?.props, type) | ||
return result | ||
} |
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.
This doesn't account for custom components, which are stored separately, but that's probably fine. Just as long as it's a known limitation
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 will create a ticket for a "nice to have", and to tackle this if we have some extra time
Found an issue that causes the component to render to a frame with the wrong data, calling the API with the invalid data. This displays an unexpected error notification. Investigating why |
Solved |
Description
Validate "table" settings on components. This is used in the components
form block
,multistep form block
androw explorer
. If the set table/view does not exist anymore, we will display a friendly error instead of a confusing error.Screenshots
Previous
New behaviour
Launchcontrol
Improve verbosity for wrong datasource settings values