Skip to content

[SIEM] Fixes column drag and drop in timeline-based views#67799

Merged
andrew-goldstein merged 3 commits intoelastic:masterfrom
andrew-goldstein:fix-column-re-ordering
Jun 2, 2020
Merged

[SIEM] Fixes column drag and drop in timeline-based views#67799
andrew-goldstein merged 3 commits intoelastic:masterfrom
andrew-goldstein:fix-column-re-ordering

Conversation

@andrew-goldstein
Copy link
Copy Markdown
Contributor

Summary

Fixes a bug in timeline-based views, (e.g. the Host Events table), where a column would revert back to it's original position after being dragged and dropped to a new position.

Only timeline-based views were effected, not the timeline itself.

To reproduce:

  1. On the SIEM Overview page, click the View events button

  2. Drag and drop any column in the Events table to a new position

Expected Result

  • The column is relocated to the position where it was dropped

Actual Result

  • The column reverts to it's original position

Testing

  • This PR adds a Cypress test for this scenario

    • The new test was successfully run (at least) 10 times via node x-pack/plugins/siem/scripts/loop_cypress_tests.js
  • This fix was desk tested in:

    • Chrome 83.0.4103.61
    • Firefox 76.0.1
    • Safari 13.1

## Summary

Fixes a bug in timeline-based views, (e.g. the Host Events table), where a column would revert back to it's original position after being dragged and dropped to a new position.

Only timeline-based views were effected, not the timeline itself.

To reproduce:

1) On the SIEM Overview page, click the `View events` button

2) Drag and drop any column in the Events table to a new position

**Expected Result**

- The column is relocated to the position where it was dropped

**Actual Result**

- The column reverts to it's original position

## Testing

- This PR adds a Cypress test for this scenario
  - The new test was successfully run (at least) 10 times via `node x-pack/plugins/siem/scripts/loop_cypress_tests.js`

- This fix was desk tested in:
  - Chrome `83.0.4103.61`
  - Firefox `76.0.1`
  - Safari `13.1`
@andrew-goldstein andrew-goldstein added Team:SIEM v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.8.0 v7.9.0 labels May 29, 2020
@andrew-goldstein andrew-goldstein requested review from a team as code owners May 29, 2020 20:21
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/siem (Team:SIEM)

…eline.ts` as suggested, because this constant is applicable to timelines too (not just the Events view)

- added a `.skip` to the `Events columns` test for now, because although it passed CI, I ran `pack/plugins/siem/scripts/loop_cypress_tests.js` over the weekend and observed a few failures. Other Cypress tests that are currently passing CI are also failing locally, suggesting this _may_ be a local issue, but I don't want to destablize CI, and this PR must be backported to `7.8` for the next BC.
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

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

Copy link
Copy Markdown
Member

@cnasikas cnasikas left a comment

Choose a reason for hiding this comment

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

Thank you for this fix! LGTM! Tested locally, all work as expected.

@andrew-goldstein andrew-goldstein merged commit 52c518a into elastic:master Jun 2, 2020
@andrew-goldstein andrew-goldstein deleted the fix-column-re-ordering branch June 2, 2020 14:57
andrew-goldstein added a commit to andrew-goldstein/kibana that referenced this pull request Jun 2, 2020
)

## Summary

Fixes a bug in timeline-based views, (e.g. the Host Events table), where a column would revert back to it's original position after being dragged and dropped to a new position.

Only timeline-based views were effected, not the timeline itself.

To reproduce:

1) On the SIEM Overview page, click the `View events` button

2) Drag and drop any column in the Events table to a new position

**Expected Result**

- The column is relocated to the position where it was dropped

**Actual Result**

- The column reverts to it's original position

## Testing

- This PR adds a Cypress test for this scenario
  - The new test was successfully run (at least) 10 times via `node x-pack/plugins/siem/scripts/loop_cypress_tests.js`

- This fix was desk tested in:
  - Chrome `83.0.4103.61`
  - Firefox `76.0.1`
  - Safari `13.1`

# Conflicts:
#	x-pack/plugins/siem/public/common/components/drag_and_drop/drag_drop_context_wrapper.tsx
#	x-pack/plugins/siem/public/common/components/drag_and_drop/helpers.ts
andrew-goldstein added a commit that referenced this pull request Jun 2, 2020
…67965)

## Summary

Fixes a bug in timeline-based views, (e.g. the Host Events table), where a column would revert back to it's original position after being dragged and dropped to a new position.

Only timeline-based views were effected, not the timeline itself.

To reproduce:

1) On the SIEM Overview page, click the `View events` button

2) Drag and drop any column in the Events table to a new position

**Expected Result**

- The column is relocated to the position where it was dropped

**Actual Result**

- The column reverts to it's original position

## Testing

- This PR adds a Cypress test for this scenario
  - The new test was successfully run (at least) 10 times via `node x-pack/plugins/siem/scripts/loop_cypress_tests.js`

- This fix was desk tested in:
  - Chrome `83.0.4103.61`
  - Firefox `76.0.1`
  - Safari `13.1`
andrew-goldstein added a commit that referenced this pull request Jun 2, 2020
…) (#67966)

## Summary

Fixes a bug in timeline-based views, (e.g. the Host Events table), where a column would revert back to it's original position after being dragged and dropped to a new position.

Only timeline-based views were effected, not the timeline itself.

To reproduce:

1) On the SIEM Overview page, click the `View events` button

2) Drag and drop any column in the Events table to a new position

**Expected Result**

- The column is relocated to the position where it was dropped

**Actual Result**

- The column reverts to it's original position

## Testing

- This PR adds a Cypress test for this scenario
  - The new test was successfully run (at least) 10 times via `node x-pack/plugins/siem/scripts/loop_cypress_tests.js`

- This fix was desk tested in:
  - Chrome `83.0.4103.61`
  - Firefox `76.0.1`
  - Safari `13.1`
@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Sep 23, 2021
@elasticmachine
Copy link
Copy Markdown
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

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.8.0 v7.9.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants