Skip to content

[ACM] Create Etag from settings struct. #2441

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

Merged
merged 9 commits into from
Jul 18, 2019

Conversation

simitt
Copy link
Contributor

@simitt simitt commented Jul 12, 2019

To ensure Etag changes when config settings are updated, include config settings when calculating ID for config object.

fixes #2434

  • needs changelog entry

backport to 7.x and 7.3.

fyi @felixbarny , @axw

@simitt simitt requested a review from graphaelli July 12, 2019 10:13
@simitt simitt self-assigned this Jul 12, 2019
@simitt simitt force-pushed the 2434-etag-with-version branch from 2fdbd48 to 99c730e Compare July 12, 2019 13:09
Copy link
Member

@graphaelli graphaelli left a comment

Choose a reason for hiding this comment

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

noted some concerns about the hash calc, the rest looks great

simitt added 2 commits July 15, 2019 16:38
To ensure Etag changes when config settings are updated, consider config
settings when calculating ID for config object.

fixes elastic#2434
@simitt simitt force-pushed the 2434-etag-with-version branch from 63c1872 to d7ef9f1 Compare July 15, 2019 14:38
@simitt simitt changed the title [ACM] Create Etag from hashed id and settings struct. [ACM] Create Etag from settings struct. Jul 16, 2019
@jalvz jalvz mentioned this pull request Jul 16, 2019
7 tasks
@simitt simitt merged commit 901785e into elastic:master Jul 18, 2019
simitt added a commit to simitt/apm-server that referenced this pull request Jul 18, 2019
To ensure Etag changes when config settings are updated, consider config
settings when calculating ID for config object.
Return empty response body and etag for empty response if config not found.

fixes elastic#2434
simitt added a commit to simitt/apm-server that referenced this pull request Jul 18, 2019
To ensure Etag changes when config settings are updated, consider config
settings when calculating ID for config object.
Return empty response body and etag for empty response if config not found.

fixes elastic#2434
simitt added a commit that referenced this pull request Jul 18, 2019
To ensure Etag changes when config settings are updated, consider config
settings when calculating ID for config object.
Return empty response body and etag for empty response if config not found.

fixes #2434
simitt added a commit that referenced this pull request Jul 18, 2019
To ensure Etag changes when config settings are updated, consider config
settings when calculating ID for config object.
Return empty response body and etag for empty response if config not found.

fixes #2434
@simitt simitt deleted the 2434-etag-with-version branch July 23, 2019 06:23
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.

Central config: Etag not updated when updating configuration
3 participants