-
Notifications
You must be signed in to change notification settings - Fork 375
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
RC:Add apply state and apply error #2973
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2973 +/- ##
==========================================
- Coverage 98.09% 98.08% -0.01%
==========================================
Files 1301 1301
Lines 72574 72601 +27
Branches 3365 3365
==========================================
+ Hits 71189 71212 +23
- Misses 1385 1389 +4
... and 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
UNACKNOWLEDGED = 1 | ||
|
||
# Set when the configuration has been successfully applied. | ||
ACKNOWLEDGED = 2 | ||
|
||
# Set when the configuration has been unsuccessfully applied. | ||
ERROR = 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: I'm curious, do we need these integers in the protocol? Could they be symbols (:error, :unacknowledged, ...) instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are numbers, as part of the protocol. Backend expects these specific values.
This PR adds the
apply_state
andapply_error
fields to the configuration content payload we sent back to the agent.This allows downstream systems to know if the configuration was correctly applied, and if not, why.
This is used to display to users that Remote Configuration was correctly applied, or if it was not, what was the reason.