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-2896] Allow to define order restrictions in policies #1088

Merged
merged 9 commits into from
Jul 8, 2019

Conversation

davidor
Copy link
Contributor

@davidor davidor commented Jul 5, 2019

This PR introduces the option to specify order restrictions between policies. When those restrictions are not respected, APIcast shows a warning.

This PR adds a new field in the manifest of policies to define the policies that should be placed after or before a specific one. With this information in the policy schema, Porta will be able to show warnings in the UI when building policy chains with policies placed in the incorrect order. For now, APIcast logs an error.

Ref: https://issues.jboss.org/browse/THREESCALE-2896

davidor added 8 commits July 5, 2019 11:45
Two reasons for this:
1) Now logs show the correct version when printing the policy chain.
2) In order to verify the order of policies in the chain, we need the
real version in the policy instance. We need "builtin" which is what
appears in the schema instead of the 0.0 that's set by default.
Also bump the version in the id.
And also point to the new version of the manifest (v1.1)
@davidor davidor requested a review from a team as a code owner July 5, 2019 10:25
Copy link
Contributor

@mikz mikz left a comment

Choose a reason for hiding this comment

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

👍

@davidor davidor merged commit 4a71c1d into master Jul 8, 2019
@davidor davidor deleted the order-of-policies branch July 8, 2019 10:55
@eloycoto eloycoto mentioned this pull request Aug 13, 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.

3 participants