[Actions] Use references in action_task_params saved object#108964
Merged
ymao1 merged 23 commits intoAug 25, 2021
Conversation
…ing/action-task-params-references
…ing/action-task-params-references
…ing/action-task-params-references
…ing/action-task-params-references
…ing/action-task-params-references
Contributor
|
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
Contributor
Author
|
@elasticmachine merge upstream |
Contributor
chrisronline
left a comment
There was a problem hiding this comment.
This looks great! I added a couple questions/nitpicks that I wanted to get your thoughts on before I officially approve it
…ing/action-task-params-references
…ub.com/ymao1/kibana into alerting/action-task-params-references
1 task
Contributor
Author
|
@elasticmachine merge upstream |
Contributor
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @ymao1 |
kibanamachine
added a commit
to kibanamachine/kibana
that referenced
this pull request
Aug 25, 2021
…c#108964) * Extracting saved object references before saving action_task_params saved object * Injecting saved object ids from references when reading action_task_param * Adding migration * Adding unit test for migrations * Not differentiating between preconfigured or not * Adding functional test for migration * Skip extracting action id if action is preconfigured * Only migrating action task params for non preconfigured connectors * Simplifying related saved objects * Fixing functional test * Fixing migration * Javascript is sometimes magical * Updating functional test * PR feedback Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Contributor
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
kibanamachine
added a commit
that referenced
this pull request
Aug 25, 2021
… (#110056) * Extracting saved object references before saving action_task_params saved object * Injecting saved object ids from references when reading action_task_param * Adding migration * Adding unit test for migrations * Not differentiating between preconfigured or not * Adding functional test for migration * Skip extracting action id if action is preconfigured * Only migrating action task params for non preconfigured connectors * Simplifying related saved objects * Fixing functional test * Fixing migration * Javascript is sometimes magical * Updating functional test * PR feedback Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: ymao1 <ying.mao@elastic.co>
patrykkopycinski
pushed a commit
to patrykkopycinski/kibana
that referenced
this pull request
May 6, 2026
…c#108964) * Extracting saved object references before saving action_task_params saved object * Injecting saved object ids from references when reading action_task_param * Adding migration * Adding unit test for migrations * Not differentiating between preconfigured or not * Adding functional test for migration * Skip extracting action id if action is preconfigured * Only migrating action task params for non preconfigured connectors * Simplifying related saved objects * Fixing functional test * Fixing migration * Javascript is sometimes magical * Updating functional test * PR feedback Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #108082
Summary
action_task_paramssaved object to store the associatedactionIdand anyrelatedSavedObjectsIDs in the references array.actionIdis only extracted if the action is not preconfigured.action_task_paramsto follow the same format.To Verify
Actions (not preconfigured)
action_task_paramssaved object. You should see that there is an entry in thereferencesarray that points to theactionsaved object ID, with nameactionRefand typeaction. You should see that therelatedSavedObjectsstoresrefsinstead ofidsand the SO IDs are in thereferencesarrayPreconfigured Actions
action_task_paramssaved object. You should not see an entry in thereferencesarray with nameactionRefand typeaction. You should still see that therelatedSavedObjectsstoresrefsinstead ofidsand the SO IDs are in thereferencesarrayChecklist
Delete any items that are not applicable to this PR.