-
Notifications
You must be signed in to change notification settings - Fork 3
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
Implementation of 2966 bucket configure #36
Conversation
0a0eca8
to
c8860b7
Compare
Discussed REDACTED field password write issue in Discord. |
Could also consider validating bucket url to ensure it's URL |
Valid, but i'd prefer to have the FE yup validation schema match that of COMS which it is currently doing. |
const formBucket = { | ||
bucketName: values.bucketName, | ||
bucket: values.bucket, | ||
endpoint: values.endpoint, | ||
accessKeyId: values.accessKeyId, | ||
secretAccessKey: values.secretAccessKey, | ||
key: values.key | ||
} as Bucket; | ||
|
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.
Use object spread syntax.
const formBucket: Bucket = { ...values };
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.
Kyle, here lint forces me to define the rest of the object. For example: region cannot be empty (getting error from the back-end) and don't have this info initialy.
…a new bucket and update. Form contains required bucket fields, submit and cancel.
…ng of TextInput to support validation.
…eys. Reordering imports and removing async.
852e3be
to
8dad7f6
Compare
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.
looks good. I suspect we may want to revisit the decision to show 'REDACTED'.
…ative path changed to an absolute, removed invalid attribute
This pr contains implementation of Bucket Configure feature. It includes 'Configure New Bucket' dialog and form as a separate components. Fields on form are generated by common TextInput component. TextInput supports field validation (required at the moment). The submit of the form is not allowed unless all the fields are populated. Update Bucket Configure is happening on wheel icon click and brings up the same dialog, but it loads the updating bucket into the fields instead of being empty.
Types of changes
Checklist
Further comments