Skip to content

Conversation

@adfost
Copy link
Contributor

@adfost adfost commented Feb 4, 2022

UI for getting service account policies
Screen Shot 2022-02-04 at 11 04 33 AM
.

@adfost adfost changed the title Service account policy UI 2 Service account policy UI Feb 4, 2022
@adfost adfost requested a review from dvaldivia February 5, 2022 00:24
@harshavardhana
Copy link
Member

Do we validate if its an invalid JSON in the UI?

@harshavardhana
Copy link
Member

Like do we react to what they pasted? - the way we are highlighting it has JSON, are we able to validate/parse it as well?

@prakashsvmx
Copy link
Member

@adfost Please resolve the conflicts.

prakashsvmx
prakashsvmx previously approved these changes Feb 8, 2022
Copy link
Member

@prakashsvmx prakashsvmx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me. 👍

Few minor changes can be part of #1525

@Alevsk
Copy link
Contributor

Alevsk commented Feb 8, 2022

Like do we react to what they pasted? - the way we are highlighting it has JSON, are we able to validate/parse it as well?

I think that highlight happens automatically by the CodeMirror library, currently theres no validation in place to check if whatever the user input its a valid json, however if the json is wrong minio will return an error and we will display that on the UI

Alevsk
Alevsk previously approved these changes Feb 8, 2022
Copy link
Collaborator

@dvaldivia dvaldivia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I create a SA without policy, it shows me a weird policy, if the SA has no policy, we should show empty
Screen Shot 2022-02-08 at 10 37 18 AM

@adfost adfost dismissed stale reviews from Alevsk and prakashsvmx via 6d43dd9 February 8, 2022 23:16
Copy link
Collaborator

@dvaldivia dvaldivia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested. LGTM

Copy link
Member

@prakashsvmx prakashsvmx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@dvaldivia dvaldivia merged commit 75b3082 into minio:master Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants