[Actions] [8.0] Prepare for making action saved objects sharecapable.#109756
Conversation
|
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
92f9a77 to
afe7ad9
Compare
| namespaceType: 'multiple-isolated', | ||
| convertToMultiNamespaceTypeVersion: '8.0.0', | ||
| mappings: mappings.action as SavedObjectsTypeMappingDefinition, | ||
| migrations: getActionsMigrations(encryptedSavedObjects), |
There was a problem hiding this comment.
I think you need to add a no-op migration for the ACTION_SAVED_OBJECT_TYPE type too, right?
There was a problem hiding this comment.
Ah.., I forgot about this. Thank you for pointing!
jportner
left a comment
There was a problem hiding this comment.
I added comments for a couple of nits, overall LGTM!
I checked and it appears there are already end-to-end integration tests for migrating actions and testing to ensure secrets are decrypted properly (x-pack/test/alerting_api_integration/spaces_only/tests/actions/migrations.ts), that's why CI was failing before you added the no-op migration for actions 😄
So, assuming CI passes now, those migration tests are 👍
IMO, you don't need to add a specific 8.0.0 migration integration test, but you could optionally add a comment in that file mentioning that the conversion is getting tested implicitly by virtue of the secret getting decrypted properly.
There are also end-to-end integration test for migrating action_task_params (x-pack/test/alerting_api_integration/spaces_only/tests/action_task_params/migrations.ts), but the data in the fixtures doesn't actually include any encrypted attributes. That's an area for possible improvement in the future, but is outside the scope of this PR, IMO.
ymao1
left a comment
There was a problem hiding this comment.
LGTM when failing unit test is resolved
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: cc @YulNaumenko |
Summary
Resolves #107083