console
console copied to clipboard
Misconfigured form validation/interaction preventing EditApplication.tsx form submission
Issue
When editing an application, the form's save button will never be enabled due to missing unseen required items.
Details
The imageValidationSchema function in validation-schema.ts requires the selected and tag properties. However, when editing my application, the initialValue that gets passed down has an object at .image with empty strings for the selected and the tag properties, resulting in an immediate error and disabling the SAVE button.
To reproduce
- Developer -> +Add
- Import from Git
- Git repo URL: Use URL of "unreachable" repo (get
URL is valid but cannot be reachedmsg) -- PS: The pipeline has no problem reaching it later... - Git type: GitLab
- Import strategy: Dockerfile
- Build option: Pipelines
- Pipeline: buildah-deployment
- Git repo URL: Use URL of "unreachable" repo (get
- Create
- From the topology map, "Edit <name of deployment>"
- Save button is not enabled
And validation error object for reference:
/kind bug /assign @vikram-raj
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close
@openshift-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen. Mark the issue as fresh by commenting/remove-lifecycle rotten. Exclude this issue from closing again by commenting/lifecycle frozen./close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.