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.
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
SavedObjects bulkCreate API should return migrationVersion and strip the type & namespace from the id #65150
SavedObjects bulkCreate API should return migrationVersion and strip the type & namespace from the id #65150
Changes from 11 commits
5935fe3
9a41cd8
17a4cdd
ecdaf68
ccaa1c1
d20949b
40fc21e
9c2b743
5a729ba
e12c542
36356ab
5b4aa22
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Can't we use the uuid regexp (
[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}
) as done L828 instead of asserting against the names of the types/spaces used in the test suite? I think that's a little more explicit?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.
obj2
's id islogstash-*
so I initially thought I'll try to keep these assertions the same. But I agree, a uuid regexp would be better, so I'll change the first match to use a regexp and the second match to matchobj2.id
.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.
This value will change anytime a new dashboard migration is added. This seems like the best workaround when using
kbn-expect
to prevent tests from failing anytime a new dashboard migration is added.We should probably "modernize" these integration tests, but it felt like it's not enough of a priority to attempt this right now.
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.
Yea, having jest toolbox for FTR tests would we really great.
kbn-expect
feels very old when compared to jest.