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

[Security Solution] Keep original note creator #74203

Merged
merged 5 commits into from
Aug 4, 2020

Conversation

angorayc
Copy link
Contributor

@angorayc angorayc commented Aug 3, 2020

Summary

The notes creator of imported timelines / templates should be remained instead of being override by current user.
Screenshot 2020-08-04 at 00 46 56

Before the fix, it overrides the original note creator
Screenshot 2020-08-04 at 01 07 48

solution:
Introducing a flag overideNote :
allow override means overriding by current username,
disallow override means keep the original username.
disallow override only happens when import timeline templates, as we want to keep the original creator for notes

How to verify this PR:

  1. Download templates_with_note.txt
  2. change the extension from .txt into .ndjson
  3. import it and expend the note for the timeline you just imported from timeline's table
  4. the original author should be displayed

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@angorayc angorayc added bug Fixes for quality problems that affect the customer experience Team:SIEM v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.9.0 labels Aug 3, 2020
@angorayc angorayc requested review from a team as code owners August 3, 2020 23:59
@elasticmachine
Copy link
Contributor

Pinging @elastic/siem (Team:SIEM)

@stephmilovic
Copy link
Contributor

is duplicating the timeline supposed to include the notes?

@stephmilovic
Copy link
Contributor

idk if its just me, but i cant scroll in the notes view down to see the note?
Screen Shot 2020-08-04 at 9 46 25 AM

@angorayc
Copy link
Contributor Author

angorayc commented Aug 4, 2020

is duplicating the timeline supposed to include the notes?

No, duplicating the timeline does not duplicate the notes.

@angorayc
Copy link
Contributor Author

angorayc commented Aug 4, 2020

idk if its just me, but i cant scroll in the notes view down to see the note?
Screen Shot 2020-08-04 at 9 46 25 AM

@stephmilovic I found that I have to have my cursor on the notes to trigger scrolling, if my mouse is outside of notes content, I cannot scroll.

Copy link
Contributor

@stephmilovic stephmilovic left a comment

Choose a reason for hiding this comment

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

code looks good. tested locally and it works as expected now. thanks, LGTM!

@angorayc
Copy link
Contributor Author

angorayc commented Aug 4, 2020

@stephmilovic , would this be better or it looks weird ? or we could probably fix the pannel's header?
scroll

@stephmilovic
Copy link
Contributor

@stephmilovic , would this be better or it looks weird ? or we could probably fix the pannel's header?
scroll

yes i like this better, thanks @angorayc !!

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

async chunks size

id value diff baseline
securitySolution 7.3MB -313.0B 7.3MB

page load bundle size

id value diff baseline
securitySolution 869.9KB -190.0B 870.1KB

History

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

@XavierM XavierM merged commit 8e0e228 into elastic:master Aug 4, 2020
XavierM pushed a commit to XavierM/kibana that referenced this pull request Aug 4, 2020
* keep original note creator

* unit test

* fix types

* typo

* wording
XavierM pushed a commit to XavierM/kibana that referenced this pull request Aug 4, 2020
* keep original note creator

* unit test

* fix types

* typo

* wording
angorayc added a commit that referenced this pull request Aug 4, 2020
* keep original note creator

* unit test

* fix types

* typo

* wording

Co-authored-by: Angela Chuang <[email protected]>
angorayc added a commit that referenced this pull request Aug 4, 2020
* keep original note creator

* unit test

* fix types

* typo

* wording

Co-authored-by: Angela Chuang <[email protected]>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Aug 5, 2020
* master: (74 commits)
  [Discover] Inline noWhiteSpace function (elastic#74331)
  [DOCS] Add Observability topic (elastic#73041)
  skip flaky suite (elastic#74327)
  [Security Solution][Detections] Fixes Severity Override not matching for Elastic Endpoint Security rule (elastic#74317)
  [Security Solution][Exceptions] - Fixes exceptions builder nested deletion issue and adds unit tests (elastic#74250)
  Fixed Alert details does not update page title and breadcrumb (elastic#74214)
  [src/dev/build] build Kibana Platform bundles from source (elastic#73591)
  [Reporting] Shorten asset path to help CLI FS Watcher (elastic#74185)
  Fix TMS not loaded in legacy maps (elastic#73570)
  [Security Solution] styling for notes' panel (elastic#74274)
  [Security Solution][Tech Debt] cleans up ts-ignore issues and some smaller linter issues  (elastic#74268)
  Make the actions plugin support generics (elastic#71439)
  [Security Solution] Keep original note creator (elastic#74203)
  [CI] Fix xpack kibana build dir in xpack visual regression script
  [CI] Fix baseline_capture job by adding parallel process number back
  [Monitoring] Ensure setup mode works on cloud but only for alerts (elastic#73127)
  [Maps] Custom color ramps should show correctly on the map for mvt layers (elastic#74169)
  [kbn/optimizer] remove unused modules (elastic#74195)
  [CI] Add pipeline task queue framework and merge workers into one (elastic#71268)
  Using msearch for tree api endpoint (elastic#73813)
  ...
gmmorris added a commit to gmmorris/kibana that referenced this pull request Aug 5, 2020
* master: (115 commits)
  [Logs UI] Correct trial period duration in anomaly splash screen (elastic#74249)
  [Discover] Inline noWhiteSpace function (elastic#74331)
  [DOCS] Add Observability topic (elastic#73041)
  skip flaky suite (elastic#74327)
  [Security Solution][Detections] Fixes Severity Override not matching for Elastic Endpoint Security rule (elastic#74317)
  [Security Solution][Exceptions] - Fixes exceptions builder nested deletion issue and adds unit tests (elastic#74250)
  Fixed Alert details does not update page title and breadcrumb (elastic#74214)
  [src/dev/build] build Kibana Platform bundles from source (elastic#73591)
  [Reporting] Shorten asset path to help CLI FS Watcher (elastic#74185)
  Fix TMS not loaded in legacy maps (elastic#73570)
  [Security Solution] styling for notes' panel (elastic#74274)
  [Security Solution][Tech Debt] cleans up ts-ignore issues and some smaller linter issues  (elastic#74268)
  Make the actions plugin support generics (elastic#71439)
  [Security Solution] Keep original note creator (elastic#74203)
  [CI] Fix xpack kibana build dir in xpack visual regression script
  [CI] Fix baseline_capture job by adding parallel process number back
  [Monitoring] Ensure setup mode works on cloud but only for alerts (elastic#73127)
  [Maps] Custom color ramps should show correctly on the map for mvt layers (elastic#74169)
  [kbn/optimizer] remove unused modules (elastic#74195)
  [CI] Add pipeline task queue framework and merge workers into one (elastic#71268)
  ...
gmmorris added a commit to gmmorris/kibana that referenced this pull request Aug 5, 2020
* master: (154 commits)
  [ML] Fix initial plugin's bundle size (elastic#74047)
  [Ingest Manager] prevent crash on unhandled rejection from setupIngestManager (elastic#74300)
  [Logs UI] Correct trial period duration in anomaly splash screen (elastic#74249)
  [Discover] Inline noWhiteSpace function (elastic#74331)
  [DOCS] Add Observability topic (elastic#73041)
  skip flaky suite (elastic#74327)
  [Security Solution][Detections] Fixes Severity Override not matching for Elastic Endpoint Security rule (elastic#74317)
  [Security Solution][Exceptions] - Fixes exceptions builder nested deletion issue and adds unit tests (elastic#74250)
  Fixed Alert details does not update page title and breadcrumb (elastic#74214)
  [src/dev/build] build Kibana Platform bundles from source (elastic#73591)
  [Reporting] Shorten asset path to help CLI FS Watcher (elastic#74185)
  Fix TMS not loaded in legacy maps (elastic#73570)
  [Security Solution] styling for notes' panel (elastic#74274)
  [Security Solution][Tech Debt] cleans up ts-ignore issues and some smaller linter issues  (elastic#74268)
  Make the actions plugin support generics (elastic#71439)
  [Security Solution] Keep original note creator (elastic#74203)
  [CI] Fix xpack kibana build dir in xpack visual regression script
  [CI] Fix baseline_capture job by adding parallel process number back
  [Monitoring] Ensure setup mode works on cloud but only for alerts (elastic#73127)
  [Maps] Custom color ramps should show correctly on the map for mvt layers (elastic#74169)
  ...
@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Sep 23, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants