-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOCSP-34569 Bulk Update Task Page #580
DOCSP-34569 Bulk Update Task Page #580
Conversation
Hi @kmruiz , @lerouxb the docs for Compass bulk updates are ready for tech review. Pinging @jaoppenheim as optional / for visibility. |
Hey, just checked and everything seems fine. I would still suggest to use Update Query, as it stores the whole query (filter + update specification) which is technically a query. I know it might feel weird, but this would be the correct naming (unless we want to use update command, but that wouldn't be consistent with the UI). However I leave @lerouxb and you folks to decide the better naming. |
I agree update query is better because these become recent/favourite queries once run or saved. |
:ref:`delete <compass-delete-documents>` documents in your selected | ||
collection or view. | ||
:ref:`modify <compass-modify-documents>`, | ||
:ref:`modify multiple <compass-bulk-update>`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. The documentation refers to this as "modify multiple" throughout and we refer to it as update or bulk update. And for single ones we refer to it as "edit". I don't know if this matters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could be a situation where we are describing the functionality vs the feature name. Similar to how we labeled the Generative AI stuff as "Query with Natural Language" to better articulate the use case. Do you have any preference here @jaoppenheim? Does it need to be labeled bulk updates or is "modify multiple" sufficient?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think modify is fine since that is the language that we already have in our docs today
Co-authored-by: Kevin Mas Ruiz <[email protected]>
Thanks for the feedback @kmruiz I have updated to "update query" based on both you and Le Rouxs feedback. |
:ref:`delete <compass-delete-documents>` documents in your selected | ||
collection or view. | ||
:ref:`modify <compass-modify-documents>`, | ||
:ref:`modify multiple <compass-bulk-update>`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think modify is fine since that is the language that we already have in our docs today
:style: normal | ||
|
||
.. step:: Open the bulk update modal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though this is listed in the table, I think it would make sense for the first step to be to filter the documents you want to update in the query bar. Chronologically, this has to happen first. We can say something like "if you would like to update all of the documents in the collection, skip this step and proceed to step 2."
- Any filter criteria specified on the | ||
:guilabel:`Query Bar` applies to the | ||
:guilabel:`Update Documents` modal. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add something along the lines of "You must return to the query bar to edit this field" or "you must exit the update modal to edit this field"
source/documents/modify-multiple.txt
Outdated
The number of documents affected by the update displays in | ||
the top of the :guilabel:`Update Documents` modal in | ||
parentheses. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove the "in parentheses" part. we changed this from the original designs to read more like a sentence in the UI.
|
||
The documents under the :guilabel:`Preview` header show how the | ||
:guilabel:`Update` syntax affects documents in your collection. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"syntax" makes sense above, because you are talking about the actual syntax that a user has to write. here (and below) it feels a little weird. We could say "Update command" or simply just the bolded "Update" (I may prefer the latter)
within the filter criteria in the :guilabel:`Filter` expression. | ||
|
||
Example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At some point in this section, would it make sense to show an example before and after document? I'll leave it up to you to decide but it felt natural to me as a reader since you mentioned the preview section
@@ -12,4 +12,22 @@ | |||
|
|||
.. step:: Click the :guilabel:`Favorites` button in the past queries pane. | |||
|
|||
Select favorite queries. | |||
Select your favorited syntax. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again I don't think syntax is the right word here. You could say "operation" but open to other ideas as long as it's consistent throughout
Select favorite queries. | ||
Select your favorited syntax. | ||
|
||
- If your favorited syntax is a query, only a :guilabel:`Filter` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to change the word syntax here
along with copy :icon-lg:`Copy` and delete :icon-lg:`Trash` | ||
icons. | ||
|
||
- If your favorited syntax is a bulk update statement, a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to change the word syntax here as well
|
||
.. note:: | ||
|
||
Clicking the open modal icon, opens the bulk update statement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this is true, I also think it it's worth noting above that clicking on a regular query will populate the filter bar and simply clicking on the update will open the model (you don't have to click an icon)
Thanks for the review @jaoppenheim, this is ready for another look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making those changes! LGTM
✨ Staging URL: https://preview-mongodbmongodb.gatsbyjs.io/compass/bulk-operations/ 🪵 Logs |
* DOCSP-34356 Staging Bulk Operations Content (#577) * DOCSP-34356 Staging Bulk Operations Content * DOCSP-34569 Bulk Update Task Page (#580) * DOCSP-34569 Bulk Update Task Page * DOCSP-34570 Bulk Deletes (#585) * DOCSP-34570 Bulk Deletes * DOCSP-35111 Compass 1.42.0 Release Notes * * * * * * * * * * * * * * * * * Apply suggestions from code review Co-authored-by: Alison Huh <[email protected]> --------- Co-authored-by: Alison Huh <[email protected]>
DESCRIPTION
Adding task page for the multiple update document workflow in Compass. This PR also includes a screenshot update for the query bar on the favorite query view page. It also includes additional context on the favorite queries page, since favorited queries can now be filter queries or bulk updates (filter + update).
You can download the latest version of the MongoDB Compass DEV version with the following links:
MacOS_x64
MacOS_arm64
STAGING
https://preview-mongodbianfmongodb.gatsbyjs.io/compass/DOCSP-34569/documents/
https://preview-mongodbianfmongodb.gatsbyjs.io/compass/DOCSP-34569/documents/modify-multiple/
https://preview-mongodbianfmongodb.gatsbyjs.io/compass/DOCSP-34569/query/queries/#std-label-saved-favorite-query-view
JIRA
https://jira.mongodb.org/browse/DOCSP-34569
BUILD LOG
https://workerpool-boxgs.mongodbstitch.com/pages/job.html?collName=queue&jobId=6570a72f7a5cb5fef575c30b
Self-Review Checklist
External Review Requirements
What's expected of an external reviewer?