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

Fix rules reordering from GRPC Gateway #836

Merged
merged 5 commits into from
Apr 28, 2022
Merged

Conversation

markphelps
Copy link
Collaborator

Fixes: #835

It seems a change in GRPC Gateway requires that the order of RPC methods matters.

The issue was that a PUT /api/v1/flags/{flag_key}/rules/order was actually getting mapped to the UpdateRule RPC method.

Simply moving OrderRules below UpdateRule in the proto definition means that the last rule wins, so /api/v1/flags/{flag_key}/rules/order should map to OrderRules now

@markphelps markphelps changed the base branch from main to releases/v1.8.2 April 26, 2022 13:42
@codecov-commenter
Copy link

codecov-commenter commented Apr 28, 2022

Codecov Report

Merging #836 (1e45415) into releases/v1.8.2 (49dd83f) will not change coverage.
The diff coverage is n/a.

@@               Coverage Diff                @@
##           releases/v1.8.2     #836   +/-   ##
================================================
  Coverage            81.79%   81.79%           
================================================
  Files                   20       20           
  Lines                 1802     1802           
================================================
  Hits                  1474     1474           
  Misses                 268      268           
  Partials                60       60           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49dd83f...1e45415. Read the comment docs.

@markphelps markphelps merged commit f4e7b0c into releases/v1.8.2 Apr 28, 2022
@markphelps markphelps deleted the fix-rules-reorder branch April 28, 2022 02:30
markphelps added a commit that referenced this pull request Apr 28, 2022
* Fix rules reordering from GRPC Gateway (#836)

* Fix rules reordering from GRPC Gateway

* Add IT

* fix test

* workflows

* Rm space

* Update changelog and helm chart

* Serialize tasks

* Clean
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.

Reordering of targeting rules does not work
2 participants