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

Fix typos in dataloader docs / improve grammatical consistency #7645

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

lemonez
Copy link

@lemonez lemonez commented Oct 24, 2024

Summary of the changes (Less than 80 chars)

  • documentation-only change that fixes typos / makes capitalization and wording consistent for data loaders

Closes #bugnumber (in this specific format)

@CLAassistant
Copy link

CLAassistant commented Oct 24, 2024

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the 📚 documentation This issue is about working on our documentation. label Oct 24, 2024
Copy link
Member

@michaelstaib michaelstaib left a comment

Choose a reason for hiding this comment

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

DataLoader is a fixed term:
https://github.com/graphql/DataLoader

lemonez and others added 9 commits October 24, 2024 14:03
implement suggested comment for capitalization

Co-authored-by: Michael Staib <[email protected]>
implement suggested comment for capitalization

Co-authored-by: Michael Staib <[email protected]>
implement suggested comment for capitalization

Co-authored-by: Michael Staib <[email protected]>
fix capitalization
fix capitalization
fix capitalization
fix capitalization
@glen-84 glen-84 changed the title fix typos in dataloader docs / improve grammatical consistency Fix typos in dataloader docs / improve grammatical consistency Oct 25, 2024
Copy link
Contributor

@bbrandt bbrandt left a comment

Choose a reason for hiding this comment

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

It will be up to the team to decide if this change is useful or not, but I noted a few places pluralization should be used.

@@ -113,13 +113,13 @@ It executes resolvers until the queue is empty and then triggers the data loader

# Data Consistency

Dataloader do not only batch calls to the database, they also cache the database response.
DataLoader do not only batch calls to the database, they also cache the database response.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be plural, Dataloaders

Copy link
Author

Choose a reason for hiding this comment

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

Yeah these changes are literally what I originally suggested and I got feedback to NOT make them plural and instead use the PascalCase version. I don't have a horse in the race nor do I know what the correct usage is; I was just trying to help out and make things more consistent because this store out to me when I was reading the docs. I'm happy to go through and make changes with some overall guidance; didn't mean to take a bunch of resources with a casing change.

Copy link
Contributor

Choose a reason for hiding this comment

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

Gotcha! I was just tossing in an opinion. I'm not the one to give the official guidance.

Copy link
Collaborator

Choose a reason for hiding this comment

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

According to Michael, it's an invariant noun (like middleware), so there's no plural form with an s suffix. 🤷‍♂️

Copy link
Author

Choose a reason for hiding this comment

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

Thanks both; so I think Michael would still need to approve since it's blocked with "changes requested"? Or maybe that's not an accurate interpretation? I'm a little rusty on this GitHub workflow.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Michael will merge this when he gets a chance. Thanks.

A data loader guarantees data consistency in a single request.
If you load an entity with a data loader in your request more than once, it is given that these two entities are equivalent.

Data loaders do not fetch an entity if there is already an entity with the requested key in the cache.

# Types of Data loaders
# Types of DataLoader
Copy link
Contributor

Choose a reason for hiding this comment

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

It could be argued that this is conceptually referring to a "Data Loader" thing, but not THE DataLoader identifier. Either way, should be plural.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 documentation This issue is about working on our documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants