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

[THREESCALE-1692] Change schema of IP check policy so it renders correctly in the UI #1026

Merged
merged 3 commits into from
May 7, 2019

Conversation

davidor
Copy link
Contributor

@davidor davidor commented May 2, 2019

Closes #970 and THREESCALE-1692

@davidor davidor requested a review from a team as a code owner May 2, 2019 16:10
davidor added 3 commits May 7, 2019 12:10
This is just because of how the react-jsonschema-form library renders an
array with uniqueItems=true. It turns out that it renders a multiple
selection box, but it does not allow to sort its elements.

The original intention of the policy was to allow sorting those elements
to try them in the selected order. Deleting uniqueItems=true solves the
issue. However, now it's possible to add duplicates in the array but it
does not really affect the behavior of the policy.
With the change introduced in the schema in the previous commit, there
might be duplicated sources. This test checks that the policy works well
when there are duplicates.
@davidor davidor force-pushed the fix-ip-check-policy branch from 5a56b98 to bdef0b1 Compare May 7, 2019 10:11
@davidor
Copy link
Contributor Author

davidor commented May 7, 2019

Rebased to solve the conflicts in the changelog.

@davidor davidor merged commit c93ea1b into master May 7, 2019
@davidor davidor deleted the fix-ip-check-policy branch May 7, 2019 10:33
@davidor davidor added this to the 3.6 milestone May 14, 2019
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.

IP check policy shoud check all "client_ip_sources"
2 participants