[COMPASS-5583] Use $collStats/$currentOp instead of command forms Created: 14/Mar/22  Updated: 08/May/23  Resolved: 05/May/23

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

Type: Task Priority: Major - P3
Reporter: Anna Henningsen Assignee: Alena Khineika
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by COMPASS-5931 Opening performance tab in COMPASS do... Closed
Related
related to MONGOSH-1157 Use $collStats/$currentOp instead of ... Closed
Story Points: 5
Documentation Changes: Not Needed
Sprint: Iteration Velvet Crab, Iteration Whale, Iteration Zebrafish, Iteration Ankylosaurus

 Description   

Both Compass and mongosh use the collStats and currentOp commands, which are being deprecated in PM-2362. We should migrate both of them to use the $collStats and $currentOp stages instead. This is the Compass ticket for that.

Note that the legacy shell has a fallback for $currentOp in place due to missing Atlas support for the aggregation form (CLOUDP-89361): https://github.com/mongodb/mongo/blob/237b218974e4fc09104c81fe0bb1ba83688d8035/src/mongo/shell/db.js#L810-L815



 Comments   
Comment by Githook User [ 08/May/23 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: refactor: use $collStats/$currentOp instead of command forms COMPASS-5583 (#4311)

  • refactor: use $collStats/$currentOp instead of command forms COMPASS-5583
  • refactor: remove time-series part
  • refactor: remove extra props
  • refactor: remove unused fields
  • refactor: use Anna's aggregation for collStats
  • fix: use agg operators supported in server 4.0
Comment by Githook User [ 05/May/23 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: refactor: use $collStats/$currentOp instead of command forms COMPASS-5583 (#4311)

  • refactor: use $collStats/$currentOp instead of command forms COMPASS-5583
  • refactor: remove time-series part
  • refactor: remove extra props
  • refactor: remove unused fields
  • refactor: use Anna's aggregation for collStats
  • fix: use agg operators supported in server 4.0
Comment by Githook User [ 05/May/23 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: refactor: use $collStats/$currentOp instead of command forms COMPASS-5583 (#4311)

  • refactor: use $collStats/$currentOp instead of command forms COMPASS-5583
  • refactor: remove time-series part
  • refactor: remove extra props
  • refactor: remove unused fields
  • refactor: use Anna's aggregation for collStats
  • fix: use agg operators supported in server 4.0
Comment by Githook User [ 05/May/23 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: refactor: use $collStats/$currentOp instead of command forms COMPASS-5583 (#4311)

  • refactor: use $collStats/$currentOp instead of command forms COMPASS-5583
  • refactor: remove time-series part
  • refactor: remove extra props
  • refactor: remove unused fields
  • refactor: use Anna's aggregation for collStats
  • fix: use agg operators supported in server 4.0
Comment by Githook User [ 04/May/23 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-5583-use-aggregation-collStats-currentOp
Branch: COMPASS-5583-use-aggregation-collStats-currentOp
https://github.com/mongodb-js/compass/commit/61ef0a90c837d6a1109f72294dc3ca2270ca1e68

Comment by Githook User [ 04/May/23 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-5583-use-aggregation-collStats-currentOp
Branch: COMPASS-5583-use-aggregation-collStats-currentOp
https://github.com/mongodb-js/compass/commit/bdb68d701881831239e86196994cfcd794673f86

Comment by Githook User [ 03/May/23 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-5583-use-aggregation-collStats-currentOp
Branch: COMPASS-5583-use-aggregation-collStats-currentOp
https://github.com/mongodb-js/compass/commit/540c82bcf25ea225e2b15f28ebba4a4a3f140d31

Comment by Githook User [ 03/May/23 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-5583-use-aggregation-collStats-currentOp

  1. Conflicts:
  2. packages/data-service/src/data-service.ts
    Branch: COMPASS-5583-use-aggregation-collStats-currentOp
    https://github.com/mongodb-js/compass/commit/fcac523d0a8d24d07f768259f09717a316ddbaa1
Comment by Githook User [ 02/May/23 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: Merge remote-tracking branch 'origin/main' into COMPASS-5583-use-aggregation-collStats-currentOp
Branch: COMPASS-5583-use-aggregation-collStats-currentOp
https://github.com/mongodb-js/compass/commit/fbdea144ea33c246604aa6ffe7c4737f78bfc2b8

Comment by Githook User [ 28/Apr/23 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: refactor: use $collStats/$currentOp instead of command forms COMPASS-5583
Branch: COMPASS-5583-use-aggregation-collStats-currentOp
https://github.com/mongodb-js/compass/commit/b2fed46f7f76c1aa1969739e1919cbad2401ccef

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