[SERVER-59883] Have mongo shell message about using mongosh respect the --quiet flag Created: 10/Sep/21  Updated: 29/Oct/23  Resolved: 23/Sep/21

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 5.0.0
Fix Version/s: 5.0.4, 5.1.0-rc0

Type: Bug Priority: Critical - P2
Reporter: Daniel Gottlieb (Inactive) Assignee: Zituo Jin
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
is caused by SERVER-55525 Show a warning in the legacy shell th... Closed
Related
related to SERVER-70416 add legacy shell --quiet test Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: STM 2021-10-04
Participants:

 Description   

As a user I expect the --quiet flag to suppress messages unrelated to the programs input. Filing this ticket to have it double checked whether the deprecation message regarding the mongo shell is intentional or an oversight.



 Comments   
Comment by Githook User [ 29/Oct/21 ]

Author:

{'name': 'Zituo Jin', 'email': 'zituo.jin@mongodb.com', 'username': 'zituo-jin'}

Message: SERVER-59883 suppress deprecation message with quiet flag

(cherry picked from commit 2861a64889384880a2f25c93fa3e7ced80805b0d)
Branch: v5.0
https://github.com/mongodb/mongo/commit/c93e59cbc8882eed24cfc4046e55c82561f75ee8

Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 22/Sep/21 ]

Author:

{'name': 'Zituo Jin', 'email': 'zituo.jin@mongodb.com', 'username': 'zituo-jin'}

Message: SERVER-59883 suppress deprecation message with quiet flag
Branch: master
https://github.com/mongodb/mongo/commit/2861a64889384880a2f25c93fa3e7ced80805b0d

Comment by Daniel Gottlieb (Inactive) [ 14/Sep/21 ]

Can we add a compiler flag that suppresses it? This breaks scripts.

Comment by Brooke Miller [ 14/Sep/21 ]

We got direction from Product that this message should be shown every time the shell is started, so that we keep reminding users to switch over until they do so. (See comment here.) 

Generated at Thu Feb 08 05:48:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.