Skip to content

Commit

Permalink
Add missing type defaults to RouteDependencies (elastic#182078)
Browse files Browse the repository at this point in the history
## Summary
Typescript was temporarily out, so some type issues snuck in.
This PR attempts to fix it, by adding missed field
`enableTogglingDataRetention` on type `RouteDependencies`

---------

Co-authored-by: Ignacio Rivas <rivasign@gmail.com>
  • Loading branch information
2 people authored and yuliacech committed May 3, 2024
1 parent 0608dc6 commit f9f3eff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ describe('GET privileges', () => {
isLegacyTemplatesEnabled: true,
isIndexStatsEnabled: true,
isDataStreamsStorageColumnEnabled: true,
enableTogglingDataRetention: true,
},
indexDataEnricher: mockedIndexDataEnricher,
lib: {
Expand Down Expand Up @@ -118,6 +119,7 @@ describe('GET privileges', () => {
isLegacyTemplatesEnabled: true,
isIndexStatsEnabled: true,
isDataStreamsStorageColumnEnabled: true,
enableTogglingDataRetention: true,
},
indexDataEnricher: mockedIndexDataEnricher,
lib: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ describe('GET privileges', () => {
isLegacyTemplatesEnabled: true,
isIndexStatsEnabled: true,
isDataStreamsStorageColumnEnabled: true,
enableTogglingDataRetention: true,
},
indexDataEnricher: mockedIndexDataEnricher,
lib: {
Expand Down Expand Up @@ -118,6 +119,7 @@ describe('GET privileges', () => {
isLegacyTemplatesEnabled: true,
isIndexStatsEnabled: true,
isDataStreamsStorageColumnEnabled: true,
enableTogglingDataRetention: true,
},
indexDataEnricher: mockedIndexDataEnricher,
lib: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const routeDependencies: Omit<RouteDependencies, 'router'> = {
isLegacyTemplatesEnabled: true,
isIndexStatsEnabled: true,
isDataStreamsStorageColumnEnabled: true,
enableTogglingDataRetention: true,
},
indexDataEnricher: new IndexDataEnricher(),
lib: {
Expand Down

0 comments on commit f9f3eff

Please sign in to comment.