Skip to content

(DOCSP-19330) Update source constants in Node v3.6 branch #273

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

Merged
merged 5 commits into from
Jan 7, 2022

Conversation

zach-carr
Copy link
Contributor

@zach-carr zach-carr commented Jan 6, 2022

Pull Request Info

  • Fixed version constant
  • Added constants from master
  • Updated the API link to use new constant

Issue JIRA link:

https://jira.mongodb.org/browse/DOCSP-19330

Snooty build log:

https://workerpool-boxgs.mongodbstitch.com/pages/job.html?collName=queue&jobId=61d75d7f41accb36337011e7
Snooty build logs aren't working at the moment

Docs staging link (requires sign-in on MongoDB Corp SSO):

https://docs-mongodbcom-staging.corp.mongodb.com/node/docsworker-xlarge/DOCSP-19330/

Self-Review Checklist

  • Is this free of any warnings or errors in the RST?
  • Did you run a spell-check?
  • Did you run a grammar-check?
  • Does it render on staging correctly?
  • Are all the links working?
  • Are the staging and workerpool job links in the PR description updated?

If your page documents a concept, does it meet the following criteria?

Copy link
Contributor

@biniona-mongodb biniona-mongodb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall. One bigger question around constant replacement.

snooty.toml Outdated
Comment on lines 10 to 11
mongosh = "``mongosh``"
driver = "node"
Copy link
Contributor

@biniona-mongodb biniona-mongodb Jan 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment: As these source constants are not used, should these be removed? This is sort of related to this PR discussion around constants (may fall under YAGNI).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good - removing them. Thanks for the context 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be quoted.

source/index.txt Outdated
Comment on lines 67 to 68
Node.js driver, see the `MongoDB Node.js driver API documentation
<{+api+}>`__ .
Copy link
Contributor

@biniona-mongodb biniona-mongodb Jan 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: The :node-api-3.6: constant seems to still be used a good bit throughout the docs. It seems like it could cause confusion to have some links use :node-api-3.6: and some links use the constant, but I could be incorrect. Should all :node-api-3.6: links be updated? If not, would it make sense to make another ticket to perform this replacement?

I read the A/C for the ticket and it seemed sparse (did not include TOC update), so not sure if this should or should not be a part of this ticket.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, there are many more uses of :node-api-3.6: and I do think we should keep it consistent.

I tested a handful of the :node-api-3.6: links and they all work, which raises the YAGNI-esque question for me - why replace these with a new api constant?

I reverted the change on the index page back to using :node-api-3.6: - this seems like the simplest solution. I'll bring it up in standup and please let me know what you think.

@zach-carr
Copy link
Contributor Author

Created a ticket to swap instances of the Snooty directive :node-api-3.6: with the newer api source constant:
https://jira.mongodb.org/browse/DOCSP-20263

@zach-carr zach-carr merged commit 6726d43 into mongodb:v3.6 Jan 7, 2022
ccho-mongodb pushed a commit that referenced this pull request Sep 23, 2022
* (DOCSP-19330) Update source constants in Node v3.6 branch
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.

3 participants