-
Notifications
You must be signed in to change notification settings - Fork 33
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
HDDS-10667. Improvements to spelling checks. #89
HDDS-10667. Improvements to spelling checks. #89
Conversation
* HDDS-9225-website-v2: HDDS-10351. Add GitHub Actions check for yaml formatting (apache#87) HDDS-9567. Add GitHub Actions license header check for relevant files. (apache#86) HDDS-10506. Reduce directory iterations in sidebar check (apache#85) HDDS-9866. Add GitHub Actions checks for consistent Docusaurus formatting. (apache#84)
This reverts commit 127d3fc.
- mis-replicate | ||
- mis-replication | ||
- mis-replicated |
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 misreplication
is one word, similar to other words with mis-
prefix.
CC @sodonnel
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.
Seems like it should be, although I think we have used mis-replicated in some headings in the source code. Eg the RM report has Mis-Replicated containers. I think we may have carried the spelling over from HDFS which I think spells it the same way.
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 actually saw the same wikipedia page when I was looking this up. The point of these configs is to make sure we use consistent spelling and capitalization of terms throughout the docs, so this is where we can decide whether we want to use misreplication
or mis-replication
across the whole site. cspell also doesn't recognize misreplication
so we can choose one to add and the other will be flagged as incorrect.
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.
As for which one to use, I'm not sure I have a preference. Misreplication looks more correct, although it would be used with overreplication and underreplication which look a little strange. As Stephen said, I'm pretty sure code and CLI output uses mis-replication, over-replication, and under-replication, so maybe it would be easiest just to keep using those?
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.
Saying as the code has mis-replication, I am happy to go with that. Otherwise we are going to have to make code changes just to facilitate the docs.
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.
Ok let's keep "mis-replication". "overreplication" and "underreplication" will already be flagged. CSpell doesn't support matching on spaces so we can't forbid "over replication" in favor of "over-replication" with cspell, although I could just add a grep
at the end of the spelling.sh
file that does this.
@adoroszlai @sodonnel are you ok with the spellings proposed in this PR, or do we need to discuss more? Currently the following are considered "correct":
|
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 am good with the hyphen separated words as we have them in the code already.
I guess I can live with them. :) |
Thanks for the reviews. If we need to revisit the plain-text versions of some of our Ozone terms in the future we can always use some combination of cspell and grep to fix and enforce changes in the future. |
* HDDS-9225-website-v2: Bump docusaurus to 3.3.2 (apache#93) HDDS-10667. Improvements to spelling checks. (apache#89) HDDS-10698. Bump skywalking-eyes to v0.6.0 (apache#90) HDDS-10449. Add quick start to the top of contributing guide. (apache#83) HDDS-10351. Add GitHub Actions check for yaml formatting (apache#87) HDDS-9567. Add GitHub Actions license header check for relevant files. (apache#86) HDDS-10506. Reduce directory iterations in sidebar check (apache#85) HDDS-9866. Add GitHub Actions checks for consistent Docusaurus formatting. (apache#84) HDDS-10254. Add GitHub Actions check for Markdown style. (apache#81) HDDS-10349. Add GitHub Actions check for consistent file name formatting. (apache#79) HDDS-10426. Crop ozone-logo.svg to a proper size (apache#80) HDDS-10353. Add GitHub Actions check of all generated URLs in the sitemap. (apache#77) HDDS-9868. Add GitHub Actions check for spelling. (apache#76) HDDS-10400. Fix event condition in website publish workflow (apache#78) HDDS-10352. Add GitHub Actions workflow to build and run the website. (apache#74) HDDS-10222. Add pnpm guide to contributing guide. (apache#64) HDDS-10313. Update "Redundant" to "Reliable" in new website. (apache#73)
What changes were proposed in this pull request?
What is the link to the Apache Jira?
HDDS-10667
How was this patch tested?