[COMPASS-7325] Add Bulk Update modal Created: 11/Oct/23  Updated: 06/Nov/23  Resolved: 01/Nov/23

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: No version

Type: Task Priority: Major - P3
Reporter: Le Roux Bodenstein Assignee: Le Roux Bodenstein
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on COMPASS-7332 Add Update button next to querybar Closed
is depended on by COMPASS-7334 Add an export to language button to t... Ready for Work
is depended on by COMPASS-7327 Add Update Toast Closed
is depended on by COMPASS-7346 Display a text diff in place of the p... Closed
Epic Link: COMPASS-6671
Story Points: 5
Documentation Changes: Not Needed

 Description   

Might still split this up into sub-tasks, but:

  • readonly filter text field (from querybar)
  • update text field
  • how many documents match the filter as an approximate number that will be updated
  • preview. For now (this ticket) just put the updated documents there using the same component we use elsewhere. 3 documents should be OK for now. We can change it later. Make it a constant var somewhere. We'll highlight changes or show a diff in another ticket.
  • changing the update text updates the preview (same as in aggregations editor)
  • if the update is syntactically invalid (ie. does not parse), show the yellow banner just like on aggregations
  • if the update is syntactically valid but there is a driver or database error, show the red banner (again just like aggregations)
  • start the update with a template, just something like `{ $set: {} }` for now
  • If the preview cannot be calculated (yellow or red banner) for now just display text like "No Preview Documents" in place of the preview (again - identical to aggregations)
  • If the update is valid and there's a preview, enable the Update button
  • Clicking the update button runs the update and closes the modal. (We'll add Updating, Done and Error toasts in a future ticket.)


 Comments   
Comment by Githook User [ 06/Nov/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: feat: reset the bulk update modal when re-opened COMPASS-7325 (#5047)

  • reset the bulk update modal when re-opened
  • don't set updateText twice
  • demonstrate the oscillation problem
  • Revert "demonstrate the oscillation problem"

This reverts commit f3894d4576def847e8d83843a8a4c25bbc4c7e43.

Comment by Githook User [ 06/Nov/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: feat(crud): Bulk update modal COMPASS-7325 (#5007)

  • WIP
  • WIP
  • WIP
  • tweaks
  • WIP
  • fix existing tests
  • run the update
  • one line filter
  • style tweaks
  • tests
  • tweak copy/pasted message..
  • add updateMany type
  • add a test for updateMany
  • deps
  • dep
  • same styling for filter/query as delete modal
  • don't replace
  • align the preview and filter
  • just pass change.after
  • better hack
  • Revert "just pass change.after"

This reverts commit 2e386368db592f7e65a75e5ea7fde025c94d86e3.
Branch: beta-releases
https://github.com/mongodb-js/compass/commit/077e995bb93db228be08b3d949408382a8835d16

Comment by Githook User [ 03/Nov/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: feat: reset the bulk update modal when re-opened COMPASS-7325 (#5047)

  • reset the bulk update modal when re-opened
  • don't set updateText twice
  • demonstrate the oscillation problem
  • Revert "demonstrate the oscillation problem"

This reverts commit f3894d4576def847e8d83843a8a4c25bbc4c7e43.

Comment by Githook User [ 02/Nov/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: feat: reset the bulk update modal when re-opened COMPASS-7325 (#5047)

  • reset the bulk update modal when re-opened
  • don't set updateText twice
  • demonstrate the oscillation problem
  • Revert "demonstrate the oscillation problem"

This reverts commit f3894d4576def847e8d83843a8a4c25bbc4c7e43.

Comment by Githook User [ 02/Nov/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: feat: reset the bulk update modal when re-opened COMPASS-7325 (#5047)

  • reset the bulk update modal when re-opened
  • don't set updateText twice
  • demonstrate the oscillation problem
  • Revert "demonstrate the oscillation problem"

This reverts commit f3894d4576def847e8d83843a8a4c25bbc4c7e43.

Comment by Githook User [ 02/Nov/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: feat(crud): Bulk update modal COMPASS-7325 (#5007)

  • WIP
  • WIP
  • WIP
  • tweaks
  • WIP
  • fix existing tests
  • run the update
  • one line filter
  • style tweaks
  • tests
  • tweak copy/pasted message..
  • add updateMany type
  • add a test for updateMany
  • deps
  • dep
  • same styling for filter/query as delete modal
  • don't replace
  • align the preview and filter
  • just pass change.after
  • better hack
  • Revert "just pass change.after"

This reverts commit 2e386368db592f7e65a75e5ea7fde025c94d86e3.
Branch: feature/COMPASS-7335
https://github.com/mongodb-js/compass/commit/077e995bb93db228be08b3d949408382a8835d16

Comment by Githook User [ 01/Nov/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: feat: reset the bulk update modal when re-opened COMPASS-7325 (#5047)

  • reset the bulk update modal when re-opened
  • don't set updateText twice
  • demonstrate the oscillation problem
  • Revert "demonstrate the oscillation problem"

This reverts commit f3894d4576def847e8d83843a8a4c25bbc4c7e43.

Comment by Githook User [ 01/Nov/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: feat(crud): Bulk update modal COMPASS-7325 (#5007)

  • WIP
  • WIP
  • WIP
  • tweaks
  • WIP
  • fix existing tests
  • run the update
  • one line filter
  • style tweaks
  • tests
  • tweak copy/pasted message..
  • add updateMany type
  • add a test for updateMany
  • deps
  • dep
  • same styling for filter/query as delete modal
  • don't replace
  • align the preview and filter
  • just pass change.after
  • better hack
  • Revert "just pass change.after"

This reverts commit 2e386368db592f7e65a75e5ea7fde025c94d86e3.
Branch: main
https://github.com/mongodb-js/compass/commit/077e995bb93db228be08b3d949408382a8835d16

Generated at Wed Feb 07 22:46:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.