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

governance rules order <2.0.x> [9584] #1475

Merged
merged 5 commits into from
Oct 21, 2020

Conversation

IkerLuengo
Copy link
Contributor

This is a port of #1474 to 2.0.x

According to the standard, governance rules must be evaluated in order, and the first matching rule is applied.
We are using a map to store the rules before applying them, therefore, losing the original order.
Besides, the map object is never searched by key.
Changed the map for a vector.

Copy link
Member

@MiguelCompany MiguelCompany left a comment

Choose a reason for hiding this comment

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

This is still pending backport of tests and review from #1474

@IkerLuengo IkerLuengo force-pushed the bugfix/governance-rules-order-2.0.x branch from f95fb26 to e993bc3 Compare October 15, 2020 15:06
@richiware
Copy link
Member

Build status:

  • Linux Build Status
  • Linux aarch64Build Status
  • Mac Build Status
  • Windows Build Status

@IkerLuengo IkerLuengo force-pushed the bugfix/governance-rules-order-2.0.x branch from e993bc3 to 7793e3f Compare October 15, 2020 15:38
@richiware
Copy link
Member

Build status:

  • Linux Build Status
  • Linux aarch64Build Status
  • Mac Build Status
  • Windows Build Status

@MiguelCompany MiguelCompany added this to the v2.0.2 milestone Oct 16, 2020
Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>
Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>
Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>
Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>
Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>
@IkerLuengo IkerLuengo force-pushed the bugfix/governance-rules-order-2.0.x branch from 7793e3f to 5218a4e Compare October 19, 2020 07:44
@richiware
Copy link
Member

Build status:

  • Linux Build Status
  • Linux aarch64Build Status
  • Mac Build Status
  • Windows Build Status

@MiguelCompany MiguelCompany merged commit 389e7d1 into 2.0.x Oct 21, 2020
@MiguelCompany MiguelCompany deleted the bugfix/governance-rules-order-2.0.x branch October 21, 2020 14:15
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