-
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
[Cases] Fix remark stringify version to match remark parse #119995
[Cases] Fix remark stringify version to match remark parse #119995
Conversation
x-pack/plugins/cases/server/saved_object_types/migrations/comments.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/cases/server/saved_object_types/migrations/comments.test.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/cases/server/saved_object_types/migrations/comments.ts
Outdated
Show resolved
Hide resolved
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
Pinging @elastic/security-threat-hunting-cases (Team:Threat Hunting:Cases) |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
…19995) * match parse and stringify version. try/catch added * Adding tests and refactoring logError * Adding relative path to core and kibana utils * remark curstom serializers adapted to version 8 * add error logging to comments migration * Adding tests for mergeMigrationFunctionMap logging Co-authored-by: Jonathan Buttner <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
💔 Backport failed
Successful backport PRs will be merged automatically after passing CI. To backport manually run: |
…120843) * match parse and stringify version. try/catch added * Adding tests and refactoring logError * Adding relative path to core and kibana utils * remark curstom serializers adapted to version 8 * add error logging to comments migration * Adding tests for mergeMigrationFunctionMap logging Co-authored-by: Jonathan Buttner <[email protected]> Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Sergi Massaneda <[email protected]> Co-authored-by: Jonathan Buttner <[email protected]>
…120849) * match parse and stringify version. try/catch added * Adding tests and refactoring logError * Adding relative path to core and kibana utils * remark curstom serializers adapted to version 8 * add error logging to comments migration * Adding tests for mergeMigrationFunctionMap logging Co-authored-by: Jonathan Buttner <[email protected]> Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # x-pack/plugins/cases/server/saved_object_types/migrations/comments.ts Co-authored-by: Sergi Massaneda <[email protected]>
…19995) * match parse and stringify version. try/catch added * Adding tests and refactoring logError * Adding relative path to core and kibana utils * remark curstom serializers adapted to version 8 * add error logging to comments migration * Adding tests for mergeMigrationFunctionMap logging Co-authored-by: Jonathan Buttner <[email protected]> Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # package.json # x-pack/plugins/cases/common/utils/markdown_plugins/utils.test.ts # x-pack/plugins/cases/server/saved_object_types/migrations/comments.test.ts # x-pack/plugins/cases/server/saved_object_types/migrations/comments.ts # x-pack/plugins/cases/server/saved_object_types/migrations/user_actions.test.ts # x-pack/plugins/cases/server/saved_object_types/migrations/user_actions.ts # x-pack/plugins/cases/server/saved_object_types/migrations/utils.test.ts # x-pack/plugins/cases/server/saved_object_types/migrations/utils.ts # yarn.lock
…19995) (#120916) * [Cases] Fix remark stringify version to match remark parse (#119995) * match parse and stringify version. try/catch added * Adding tests and refactoring logError * Adding relative path to core and kibana utils * remark curstom serializers adapted to version 8 * add error logging to comments migration * Adding tests for mergeMigrationFunctionMap logging Co-authored-by: Jonathan Buttner <[email protected]> Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # package.json # x-pack/plugins/cases/common/utils/markdown_plugins/utils.test.ts # x-pack/plugins/cases/server/saved_object_types/migrations/comments.test.ts # x-pack/plugins/cases/server/saved_object_types/migrations/comments.ts # x-pack/plugins/cases/server/saved_object_types/migrations/user_actions.test.ts # x-pack/plugins/cases/server/saved_object_types/migrations/user_actions.ts # x-pack/plugins/cases/server/saved_object_types/migrations/utils.test.ts # x-pack/plugins/cases/server/saved_object_types/migrations/utils.ts # yarn.lock * Adding tests and fixing yarn lock * Using correct migration * fixing eslint issues * Removing redudent tests Co-authored-by: Sergi Massaneda <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
…19995) * match parse and stringify version. try/catch added * Adding tests and refactoring logError * Adding relative path to core and kibana utils * remark curstom serializers adapted to version 8 * add error logging to comments migration * Adding tests for mergeMigrationFunctionMap logging Co-authored-by: Jonathan Buttner <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Fixes #119509
This PR fixes an issue where github style tables within a case cause an upgrade migration to 7.15 to fail and blocks the upgrade from completing. The issue is that
remark-stringify
was initially added at version9.x
which uses a newer version ofremark
such that the github style tables are removed fromremark
and placed in a separate plugin calledremark-gfm
. To fix this issue we are downgradingremark-stringify
to match the version ofremark-parse
which is8.0.3
.In additional to this we are also wrapping the parsing logic in a
try/catch
to prevent any future errors from preventing and upgrade from completing.Release Notes
Fixes a bug in the Cases upgrade migration that was preventing upgrades from completing. This was due to Github Flavored Markdown not being supported in the Cases comments.