DOCSP-45972: clarification regarding Database Trigger update endpoint#886
DOCSP-45972: clarification regarding Database Trigger update endpoint#886hunter-mongo merged 3 commits intomongodb:masterfrom
Conversation
✅ Deploy Preview for docs-app-services ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
dacharyc
left a comment
There was a problem hiding this comment.
Congrats on successfully testing the endpoint and making a PR to this very long, very confusing document! 🎉 I think we can provide better guidance for users who run into this issue, though, so I'd like to see us refine the wording here, please!
source/openapi-admin-v3.yaml
Outdated
| omit this parameter, the Source Type changes to | ||
| "Deployment," unless you are on a shared tier, in which | ||
| case App Services will not let you save the trigger. | ||
| "Deployment," unless you are on a shared tier. If you are, |
There was a problem hiding this comment.
I think, per the ticket, we could be a little more explicit with our guidance here. It might be helpful to actually list the specific error message a user will get if they omit the database param. That way, a user can search for the specific error message and will find a result that explains the issue and how to resolve the problem.
Can you update this to include the error message, and advise shared-tier users to specify the database param to resolve this error?
There was a problem hiding this comment.
Thanks for making this change, @hunter-mongo ! I think we can probably refine the wording further.
First, based on the error message we're documenting, I think the "unless you are on a shared tier" element is not quite accurate. Based on the error message, it seems that even on a shared tier, when you omit the DB param the Source Type still attempts to change to "Deployment." But because shared tier infrastructure does not support deployment changestreams, we reject the change. This may be pedantic, but I would say we could reword this description to something like:
If you omit this parameter, the Source Type changes to "Deployment." However, shared tier infrastructure does not support deployment changestreams. If you omit the
databaseparameter, you receive thedeployment changestreams are not supported on shared tier clusterserror. Supply thedatabaseparameter to resolve this error.
It's more verbose, but I also think it's clearer and more accurate. What do you think?
There was a problem hiding this comment.
That is great and I agree that it is clearer!
dacharyc
left a comment
There was a problem hiding this comment.
LGTM - thanks for working through this series of changes! Nice work!
Looks like the branch is now out-of-date with the base branch since I already merged my PR. If you need help working through that, let me know!
Pull Request Info
Jira ticket: https://jira.mongodb.org/browse/DOCSP-45972
Staged changes
Changed description of 'database' param in Database Trigger to clarify that on the shared tier you must include the 'database' parameter or it cannot be saved.