Skip to content

Commit

Permalink
[8.x] [Usage counters] Use `refresh=false` (#195619) (#…
Browse files Browse the repository at this point in the history
…195705)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Usage counters] Use `refresh=false`
(#195619)](#195619)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Alejandro Fernández
Haro","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-10T07:15:46Z","message":"[Usage
counters] Use `refresh=false`
(#195619)","sha":"8ebd79326634417c1d4f469747ca6c2ddb3f5999","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","performance","technical
debt","release_note:skip","v9.0.0","backport:prev-minor"],"title":"[Usage
counters] Use
`refresh=false`","number":195619,"url":"https://github.com/elastic/kibana/pull/195619","mergeCommit":{"message":"[Usage
counters] Use `refresh=false`
(#195619)","sha":"8ebd79326634417c1d4f469747ca6c2ddb3f5999"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195619","number":195619,"mergeCommit":{"message":"[Usage
counters] Use `refresh=false`
(#195619)","sha":"8ebd79326634417c1d4f469747ca6c2ddb3f5999"}}]}]
BACKPORT-->

Co-authored-by: Alejandro Fernández Haro <[email protected]>
  • Loading branch information
kibanamachine and afharo authored Oct 10, 2024
1 parent 14de289 commit 0aa2610
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ describe('storeCounter', () => {
],
Object {
"namespace": "default",
"refresh": false,
"upsertAttributes": Object {
"counterName": "b",
"counterType": "c",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export const storeCounter = async ({ metric, soRepository }: StoreCounterParams)
counterType,
source,
},
refresh: false,
}
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ describe('UsageCountersService', () => {
},
],
Object {
"refresh": false,
"upsertAttributes": Object {
"counterName": "counterA",
"counterType": "count",
Expand All @@ -175,6 +176,7 @@ describe('UsageCountersService', () => {
},
],
Object {
"refresh": false,
"upsertAttributes": Object {
"counterName": "counterB",
"counterType": "count",
Expand Down

0 comments on commit 0aa2610

Please sign in to comment.