AdminMassimiliano
(Admin, MongoDB)
My feedback
-
12 votes
An error occurred while saving the comment An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
Starting from Compass 1.21, the password for favorites is hidden by default.
-
0 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
With mongosh, this is pretty easy to achieve by adding an exit() call in a setTimeout that gets reset every time the prompt is rendered. This can be done in ~/.mongoshrc.js.
Here is an example: https://gist.github.com/mmarcon/ee6440fc34df05923e76b9b3587b593a
AdminMassimiliano (Admin, MongoDB) shared this idea ·
-
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
From Compass' perspective, exporting data is the same as running a query and is therefore subject to the same permissions at the db level.
Who is the "admin" this your scenario? The admin of the computer? If yes, then I suppose they could restrict the user from writing to disk on the machine where Compass runs. We do have customers that make their users to use Compass installed on a sandboxed VM for this type of restricted access use cases.
-
2 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
Admittedly, we currently don't have a shortcut to run the current line.
We do, however, have shortcuts to run the whole playground (Ctrl + Alt + R on Win/Linux and Cmd + Option + R on macOS) or the current selection (Ctrl + Alt + R on Win/Linux and Cmd + Option + S on macOS).
Shortcuts are also customizable from VS Code's global shortcuts config screen. Just search for MongoDB.
-
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
It's already possible to set a custom name for favorite connections: https://docs.mongodb.com/compass/current/connect/favorite-connections/
-
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
After typing a query, just pressing Enter is enough to execute it.
Is there a reason for preferring Ctrl+Enter over just Enter?
-
6 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
We intentionally made playgrounds stateless so they are more flexible and each run is repeatable and does not depend on a database being or not being selected.
However, I see how that can become a pain point for the "run selected lines" use case. For those situations you currently have 2 options:
1. you repeat use('db') multiple times.
2. you use db.getSiblingDB('db').getCollection('coll')... so then you can run the specific statement/command only. -
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
How would you imagine that to work? Is it just the convenience of the entry point in the collection menu that would take you to an editor or were you thinking of something else?
-
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
Thank you for bringing that up.
We are actually in the process to remove all offensive terminology from all products.
The new MongoDB Shell currently still includes isMaster() for backwards compatibility as it's probably one of the most used commands. However, the new command to do the same thing is db.hello()/rs.hello().
Properties like slaveDelay will be gone from the server response too.
-
2 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
Thank you for your suggestion, Andrew. Let us look into how we can improve that – especially the sorting order.
In the meantime, I just wanted to mention that there is a way to search for a db or collection. Please see the screenshot attached.
-
5 votes
AdminMassimiliano (Admin, MongoDB) shared this idea ·
-
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
It is possible to export the schema: https://docs.mongodb.com/compass/current/schema/export. Is that close enough to what you are looking for or are you thinking of something different?
-
2 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
How would you expect that to work?
If it's just about displaying in your local time zone, in mongosh you could do something like in the screenshot below, by taking advantage of JS' Date object.
-
3 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
If this suggestion refers to autosuggestion when typing a query, that already works (see screenshot attached).
-
2 votes
AdminMassimiliano (Admin, MongoDB) supported this idea ·
-
7 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
Just wanted to mention that MongoDB for VS Code could be a viable option for this, if you are looking for an environment that is more editor based: https://www.mongodb.com/products/vs-code.
We are debating whether we should have similar functionality in Compass though.
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
Compass 1.22 comes with an embedded shell. Is that close enough to what you are looking for?
-
1 vote
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
This is already possible. In the aggregation builder, you can click on the arrow next to the "+" button, select "Create new pipeline from text" and paste your pipeline into the dialog that appears (docs here: https://docs.mongodb.com/compass/current/import-pipeline-from-text)
-
12 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
Right now we don't have a built-in formatter. However, there is a workaround: with the beautify extension (https://marketplace.visualstudio.com/items?itemName=HookyQR.beautify) you can format the file without changing the file extension (Cmd/Ctrl + Shift + P > Beautify file > JS).
-
4 votesplanned · 5 comments · Compass » Aggregation pipeline builder · Flag idea as inappropriate… · Admin →
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
It is possible, with Compass, to copy your aggregation from code and paste it into the tool for debugging: https://docs.mongodb.com/compass/master/import-pipeline-from-text. Once you are done debugging it, you can export it back to code and paste into your code editor.
While this might not be exactly the UX you'd expect, I thought I'd mention that a flavor of this functionality is available in Compass.
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
The aggregation pipeline builder in Compass was designed to simplify the task of building complex pipelines with realtime feedback stage by stage.
If you are looking for something that is text-based, perhaps playgrounds in MongoDB for VS Code are what you are looking for: https://www.mongodb.com/products/vs-code.
Another alternative could be the integrated shell (Compass 1.22+) although the editing experience in VS Code playgrounds is much smoother.
-
6 votes
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
I investigated this further. Looks like the server does not return the reason for the document to be invalid. The server team is working on it, targeting MongoDB 4.6: https://jira.mongodb.org/browse/SERVER-20547. Once that is available in the server's response, we will surface it in Compass.
An error occurred while saving the comment AdminMassimiliano (Admin, MongoDB) commented
Thank you for the feedback. Let us see what we can do about this. If the server gives us more information back along with the error we can see how to surface it best in the UI.
With Compass 1.31 (currently in beta), we have a solution for all the pain points described in the original suggestion, even though the solution is different from the suggested one:
- As we've done since Compass 1.21, the connection string text field keeps keeping the password hidden unless the user explicitly chooses to show it
- Favorite connections with SSH tunneling or other settings will be saved correctly and all the options will be used when reusing the connection.