Skip to content
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

feat(rca): edit notes #191546

Merged
merged 27 commits into from
Aug 29, 2024
Merged

feat(rca): edit notes #191546

merged 27 commits into from
Aug 29, 2024

Conversation

kdelemme
Copy link
Contributor

@kdelemme kdelemme commented Aug 27, 2024

Resolves #190358

Summary

This PR adds a new API to update an existing note, and allow the author of the note to edit their note from the UI.
I've also addressed a few comments mentioned in the base PR, namely the 'esql' constant.

This PR will be rebased when the blocked PR is merged, and then opened for review to avoid tagging more people than needed.

Screen.Recording.2024-08-27.at.3.07.41.PM.mov

@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@kdelemme kdelemme added release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-management Observability Management User Experience Team v8.16.0 labels Aug 27, 2024
@kdelemme
Copy link
Contributor Author

/ci

@kdelemme
Copy link
Contributor Author

/ci

@kdelemme kdelemme marked this pull request as ready for review August 28, 2024 18:50
@kdelemme kdelemme requested a review from a team as a code owner August 28, 2024 18:50
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Aug 28, 2024
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
investigateApp 509 512 +3

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/investigation-shared 44 48 +4

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
investigateApp 341.7KB 344.2KB +2.4KB
Unknown metric groups

API count

id before after diff
@kbn/investigation-shared 44 48 +4

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

throw new Error('User does not have permission to delete note');
}

investigation.notes = investigation.notes.filter((currNote) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe find or forEach would be better instead of filter?

Copy link
Contributor

@benakansara benakansara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kdelemme kdelemme merged commit d06b063 into elastic:main Aug 29, 2024
21 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-management Observability Management User Experience Team v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RCA] Edit and delete notes supported in investigation details UI, for user who created the note
6 participants