Skip to content
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

Merged
merged 75 commits into from
Dec 6, 2023

Conversation

ianf-mongodb
Copy link
Contributor

@ianf-mongodb ianf-mongodb commented Nov 20, 2023

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:

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

  • Is this free of any warnings or errors in the RST?
  • Is this free of spelling errors?
  • Is this free of grammatical errors?
  • Is this free of staging / rendering issues?
  • Are all the links working?

External Review Requirements

What's expected of an external reviewer?

@ianf-mongodb
Copy link
Contributor Author

Hi @kmruiz , @lerouxb the docs for Compass bulk updates are ready for tech review.

Pinging @jaoppenheim as optional / for visibility.

@ianf-mongodb
Copy link
Contributor Author

@lerouxb @kmruiz Just bringing this to the top of your inbox.

@kmruiz
Copy link
Collaborator

kmruiz commented Dec 5, 2023

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.

@lerouxb
Copy link
Collaborator

lerouxb commented Dec 6, 2023

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>`,
Copy link
Collaborator

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.

Copy link
Contributor Author

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?

Copy link
Collaborator

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

@ianf-mongodb
Copy link
Contributor Author

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>`,
Copy link
Collaborator

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
Copy link
Collaborator

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.
Copy link
Collaborator

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"

The number of documents affected by the update displays in
the top of the :guilabel:`Update Documents` modal in
parentheses.
Copy link
Collaborator

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.
Copy link
Collaborator

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
Copy link
Collaborator

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.
Copy link
Collaborator

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`
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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)

@ianf-mongodb
Copy link
Contributor Author

Thanks for the review @jaoppenheim, this is ready for another look.

Copy link
Collaborator

@jaoppenheim jaoppenheim left a 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

@ianf-mongodb ianf-mongodb merged commit d30474b into mongodb:bulk-operations Dec 6, 2023
1 check failed
@docs-builder-bot
Copy link

jason-price-mongodb pushed a commit that referenced this pull request Feb 5, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants