-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[so-migrationsv2] Use named arguments in migrationsv2 actions #100964
[so-migrationsv2] Use named arguments in migrationsv2 actions #100964
Conversation
/** @internal */ | ||
export interface FetchIndicesParams { | ||
client: ElasticsearchClient; | ||
indicesToFetch: string[]; |
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.
optional: in sake of consistency: index: string[]
or indices: string[]
/** | ||
* Since we don't run a search against the target index, we disable "refresh" to speed up | ||
* the migration process. | ||
* Although any further step must run "refresh" for the target index | ||
* before we reach out to the MARK_VERSION_INDEX_READY step. | ||
* Right now, it's performed during OUTDATED_DOCUMENTS_REFRESH step. | ||
*/ | ||
false | ||
), | ||
refresh: false, |
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.
optional: maybe we can make it optional with false
default?
sourceIndex: state.legacyIndex, | ||
targetIndex: state.sourceIndex.value, | ||
reindexScript: state.preMigrationScript, | ||
requireAlias: false, |
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.
optional: I can't find whether it's used with other values. Maybe we should remove the parameter? The same for 60s
in waitForReindexTask
and waitForPickupUpdatedMappingsTask
💚 Build SucceededMetrics [docs]Public APIs missing comments
History
To update your PR or re-run it, just comment with: |
…c#100964) * Use named arguments in migrationsv2 actions * Addresses some optional review feedback
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
… (#101023) * Use named arguments in migrationsv2 actions * Addresses some optional review feedback Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
Summary
Resolves #99242
Uses named arguments in saved object migrations v2 actions.
Naming is hard™ and the refactor uses the same argument names as the those used in the actions' function.
Checklist
Delete any items that are not applicable to this PR.
For maintainers