-
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
[Alerting & Actions] Overwrite SOs when updating instead of partially updating #73688
Merged
gmmorris
merged 60 commits into
elastic:master
from
gmmorris:actions/webhook-remove-header
Sep 18, 2020
Merged
Changes from 7 commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
d0c0249
use create to overwrite actions on update in action
gmmorris 8124051
Merge branch 'master' into actions/webhook-remove-header
elasticmachine b0e5938
Revert "use create to overwrite actions on update in action"
gmmorris 72546d0
changed ESO to overwrite on update
gmmorris 031e0d8
Merge branch 'actions/webhook-remove-header' of github.com:gmmorris/k…
gmmorris e4280f2
added e2e test for new ESO update
gmmorris 28b1676
Merge branch 'master' into actions/webhook-remove-header
gmmorris 797781f
added `version` to SavedObjects create api
gmmorris 1b5d8b2
use version in ESO updates and updated bulkUpdate to use bulkCreate
gmmorris 2b09920
Merge branch 'master' into actions/webhook-remove-header
gmmorris a5b4efb
updated core docs
gmmorris d5c0038
corrected alert updates in client
gmmorris 06d8c91
fixed references
gmmorris 4fc6ce0
handle mixed bulkUpdates in ESO
gmmorris 283d3ac
merge returned docs in bulkUpdate in a slightly cleaner manner
gmmorris 1dbf2f2
Merge branch 'master' into actions/webhook-remove-header
gmmorris e8748e9
fixed unit tesst and usage of ESO in actions client
gmmorris d500411
Merge branch 'master' into actions/webhook-remove-header
gmmorris c4829bf
fixed snapshot
gmmorris 489b2d1
prevent partial updates at typing level in alerts client
gmmorris 3557146
Merge branch 'master' into actions/webhook-remove-header
gmmorris 79256e0
fixed typing issue in update
gmmorris a88eba6
fixed typing broken by making apiKey an optional field
gmmorris bd12cb4
Merge branch 'master' into actions/webhook-remove-header
gmmorris 6a2f3ca
skip endpoint test to ensur eeverything else passes
gmmorris 1560549
Revert "skip endpoint test to ensur eeverything else passes"
gmmorris 640c0b2
revert change in ESO and prohibit partial updates in alert and action…
gmmorris 122cf26
Merge branch 'master' into actions/webhook-remove-header
gmmorris 3dfce39
fixed import
gmmorris 692894e
fixed alerts clients unit tests
gmmorris c913bee
Merge branch 'master' into actions/webhook-remove-header
gmmorris 13c4ec4
added version to saved object creation
gmmorris d4820e1
added version to saved object bulk creation
gmmorris 814b98d
added missing core docs
gmmorris 3f49f67
Merge branch 'master' into saved-objects/version-on-create
elasticmachine 7bd360c
Revert "added missing core docs"
gmmorris caa1834
Revert "added version to saved object bulk creation"
gmmorris 8f3dfc8
Revert "Revert "added version to saved object bulk creation""
gmmorris c4e8c59
Revert "Revert "added missing core docs""
gmmorris c391446
omit version from SO import/export
gmmorris 4dfcf10
Merge branch 'master' into saved-objects/version-on-create
gmmorris a0fc384
remove version when loading sample data
gmmorris 78cb2cf
Merge branch 'saved-objects/version-on-create' into actions/webhook-r…
gmmorris fd42b0c
Merge branch 'master' into actions/webhook-remove-header
gmmorris c58689a
only allow id in eso when theres a version
gmmorris 96689fa
added comment about allowing id
gmmorris 452f964
Merge branch 'master' into actions/webhook-remove-header
gmmorris c9deb85
Merge branch 'master' into actions/webhook-remove-header
gmmorris 1f641c3
added comment about type
gmmorris 17a325d
Merge branch 'master' into actions/webhook-remove-header
gmmorris c527d9e
revert removal of partial updates from so client in alerts client
gmmorris 1434bbe
removed potential clashes with OCC changes
gmmorris 2472325
fixed unit tests
gmmorris 7bfbad5
Merge branch 'master' into actions/webhook-remove-header
gmmorris 7780d0f
fixed emrge conflicts
gmmorris 0e797f5
removed unused type
gmmorris 21cb7a7
Merge branch 'master' into actions/webhook-remove-header
gmmorris fec5cdd
removed decryption from operations that dont need it
gmmorris e32e091
reduced unneeded changes
gmmorris 93807e6
removed unneeded undefined
gmmorris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
question: is there any reason you didn't switch ESO
bulkUpdate
tobulkCreate
?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.
Haha - so to be honest, I missed it 😬
But - this is actually a problem.
We can't seem to change the deep
Partial<T>
to beT
in thebulkUpdate
signature (a problem we didn't have withupdate
... I think because it isn't contained inside of anArray
so the downstream type is a subset of the one upstream).This means - we can't actually change
bulkUpdate
to require aT
instead ofPartial<T>
without changing ESO to not implementSavedObjectsClientContract
.Any thoughts? @legrego as well? :/