-
Notifications
You must be signed in to change notification settings - Fork 124
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
Env Var Feedback #6223
Env Var Feedback #6223
Conversation
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.
UXQA:
- I get a validation warning "You must select at least one environment" when I open & close the "Edit variable" form, then open the form a second time: Jam
- When I edit the name of an environment variable so that it would conflict with another, I get a validation error (expected) and the name flips back to its original name (unexpected): Jam. It's confusing that the validation error is presented for the the original valid name, not for the edited invalid name.
https://www.loom.com/share/448bbb48880347a3b81d0847f2ee5ab4?sid=5630da38-0552-496a-bc2d-848c89eef872 |
Addressed all the recent feedback! @ericokuma @ericpgreen2 |
|
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.
LGTM.
UXQA: I'm able to submit a variable for an environment that already exists (Jam). 1). The "Create" button should be disabled. 2). When I submit the form (though this shouldn't be possible), the input gets cleared, showing me a validation error on an empty input element. I'd expect to still see my submitted text.
Approving for you to merge at your discretion!
Ah yeah, good find. That is a bit of an odd behavior. Ideal:
Acceptable solution:
|
A couple of issues I found:
|
I looked up the API Schema. It appears that variable name is insensitive.
https://github.com/rilldata/rill/blob/main/proto/gen/rill/admin/v1/admin.swagger.yaml#L4755
Case insensitivity is already handled at the DB level. When we call Update: I'll add the case sensitivity checks on the client side. If a user gets into the state, it will be super weird. |
Address https://rilldata.slack.com/archives/C07NUPQ02EA/p1733432093128959