Skip to content
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

When user selects scope aws, disable report mode #2328

Conversation

jimmytsang
Copy link
Contributor

@jimmytsang jimmytsang commented Sep 28, 2023

Problem: Currently we don't support msd policies that are scopeaws: 'true' && enforcementstate: 'report'
Solution:

  • when user selects scope 'aws' OR 'all', disable the report mode radio button.
  • when user deselects scope 'aws' enable the report mode radio button.

Initial State of add msd policy modal
image
User clicks on scope AWS - select
image
User clicks on scope AWS - deselect
image
User clicks on scope ALL
image

}
/>
</CheckBoxSectionDiv>
</SectionDiv>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed with @MartinTrojans , the policy enforcement state radio buttons depend on the user's scope input selection therefore they should come after the scope check boxes.

Updated Form Order
image

@jimmytsang jimmytsang force-pushed the msd-policy-disable-report-mode-scope-aws branch from 684726d to ef76f38 Compare October 4, 2023 00:12
@havetisyan havetisyan merged commit 76882ee into AthenZ:master Oct 5, 2023
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.

3 participants