nodejs.org icon indicating copy to clipboard operation
nodejs.org copied to clipboard

feat: add streams guide

Open Ceres6 opened this issue 1 year ago • 14 comments

Description

This PR adds a stream guide for the learn section

Validation

Lint passing and checked visually

Related Issues

Closes nodejs/node#8646

Check List

  • [x] I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • [x] I have run npm run format to ensure the code follows the style guide.
  • [x] I have run npm run test to check if all tests are passing.
  • [x] I have run npx turbo build to check if the website builds without errors.
  • [x] I've covered new added functionality with unit tests if necessary.

Ceres6 avatar Oct 16 '24 08:10 Ceres6

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Nov 17, 2024 11:15am

vercel[bot] avatar Oct 16 '24 08:10 vercel[bot]

I'm missing translation for the titles as I didn't want to use translator ones

Ceres6 avatar Oct 16 '24 08:10 Ceres6

I'm missing translation for the titles as I didn't want to use translator ones

You mustn't touch to translation fille it's handle with crowdin

AugustinMauroy avatar Oct 16 '24 10:10 AugustinMauroy

I'm missing translation for the titles as I didn't want to use translator ones

You mustn't touch to translation fille it's handle with crowdin

So should I remove the en.json change?

Ceres6 avatar Oct 16 '24 13:10 Ceres6

I'm missing translation for the titles as I didn't want to use translator ones

You mustn't touch to translation fille it's handle with crowdin

So should I remove the en.json change?

I mean you just have to update en.json and don't touch to translated file

AugustinMauroy avatar Oct 16 '24 19:10 AugustinMauroy

cc @mcollina @Trott

Ceres6 avatar Oct 21 '24 10:10 Ceres6

Can you please add a sentence at the beginning or end saying that this guide is a derivative of https://blog.platformatic.dev/a-guide-to-reading-and-writing-nodejs-streams?

mcollina avatar Oct 21 '24 11:10 mcollina

@mcollina do we want any corporate references to material that lands on the Node.js website? Asking because, in a similar vein, the article was reviewed by multiple people at Nearform, including myself, and we weren't going to ask @Ceres6 to attribute us.

On the other hand, we were considering to publish the very same article on our company's blog, with a reference to the official documentation, as the authoring has in practice being supported by us.

simoneb avatar Oct 22 '24 12:10 simoneb

@mcollina do we want any corporate references to material that lands on the Node.js website? Asking because, in a similar vein, the article was reviewed by multiple people at Nearform, including myself, and we weren't going to ask @Ceres6 to attribute us.

@simoneb You can see there are very few original contributions to what has been added here compared to what I wrote in the article, as multiple paragraphs were taken verbatim, including the whole of the introduction.

By all intents and purposes, I'm the primary author of this PR, and I gave permission to use my original piece if I was included as a co-author of it and kindly asked for a backlink if possible.

Adding a backlink is not unreasonable to ask. It's also ok if it's not added, but I would prefer it.


do we want any corporate references to material that lands on the Node.js website?

I think the question for the @nodejs/tsc is:

Should we add a backlink in case existing material is used in the Learn section of the website?

(We should not be using existing material without the author permission anyway).

mcollina avatar Oct 25 '24 15:10 mcollina

Here is a proposal, how about you include in the commit description:

  1. a link of the original piece
  2. a mention of all people at NearForm that reviewed it

So we keep a record of the origin of this content.

mcollina avatar Oct 25 '24 15:10 mcollina

@mcollina I'm happy to add the backlink. I'm guessing now the TSC is tagged we should wait until that gets discussed, right?

EDIT: I saw that some resources in the learn section have an authors frontmatter prop, maybe that's another option to consider?

Ceres6 avatar Oct 25 '24 15:10 Ceres6

I think it's good if the TSC discuss this because I suspect it would come out more and more.

@Ceres6 you should definitely fill in the authors block in the frontmatter. It should appear something like:

Screenshot 2024-10-25 at 17 59 53

mcollina avatar Oct 25 '24 16:10 mcollina

Cool! I'll add authors then and wait for the TSC discussion on the backlink. Just one doubt, should I add Nearform reviewers as authors or are those not considered as such? @mcollina

Ceres6 avatar Oct 25 '24 16:10 Ceres6

I would list them all.

mcollina avatar Oct 25 '24 16:10 mcollina

Hey folks 👋 are we happy here?

ovflowd avatar Oct 28 '24 21:10 ovflowd

Lighthouse Results

URL Performance Accessibility Best Practices SEO Report
/en 🟢 100 🟢 100 🟢 100 🟢 91 🔗
/en/about 🟢 100 🟢 100 🟢 100 🟢 91 🔗
/en/about/previous-releases 🟢 99 🟢 100 🟢 100 🟢 92 🔗
/en/download 🟢 100 🟢 100 🟢 100 🟢 91 🔗
/en/blog 🟢 100 🟢 100 🟢 96 🟢 92 🔗

github-actions[bot] avatar Oct 28 '24 21:10 github-actions[bot]

Unit Test Coverage Report

Lines Statements Branches Functions
Coverage: 91%
90.38% (592/655) 75.43% (172/228) 94.26% (115/122)

Unit Test Report

Tests Skipped Failures Errors Time
132 0 :zzz: 0 :x: 0 :fire: 5.118s :stopwatch:

github-actions[bot] avatar Oct 28 '24 21:10 github-actions[bot]

Hey @ovflowd, I think we're waiting on the next TSC meeting for the backlink issue.

Ceres6 avatar Oct 29 '24 17:10 Ceres6

@ovflowd do you know if we have a policy for content that was published elsewhere and brought in? That's what is missing in this case.

mcollina avatar Oct 29 '24 23:10 mcollina

@ovflowd do you know if we have a policy for content that was published elsewhere and brought in? That's what is missing in this case.

The only content-related policy we have is this one https://github.com/nodejs/nodejs.org/blob/main/CONTENT_VS_CODE.md

Nothing else, such as content sourced from different places.

ovflowd avatar Oct 29 '24 23:10 ovflowd

@mcollina Should I add the backlink so we can merge this and we can revisit it if the tsc votes otherwise?

Ceres6 avatar Nov 06 '24 12:11 Ceres6

My opinion is that we should include something like "This content was originally shared by Y in X"

mhdawson avatar Nov 13 '24 16:11 mhdawson

I think we should also document in the collaborator guide for the Node.js website that we should include references when pulling in content from other sources. That process should also be to make sure we document that the original author is ok with the content being pulled in, possibly through approving the PR that pulls it in.

mhdawson avatar Nov 13 '24 16:11 mhdawson

Authors and original attribution added. Are we good to go, @mcollina?

Ceres6 avatar Nov 14 '24 07:11 Ceres6

Content-wise (first glance) it looks great. @nodejs/tsc I see this is still in the TSC agenda. Any blocker here?

According to the minutes from November 13th, they are still? deliberating on the policy of external content attribution.

avivkeller avatar Nov 17 '24 01:11 avivkeller

Content-wise (first glance) it looks great. @nodejs/tsc I see this is still in the TSC agenda. Any blocker here?

According to the minutes from November 13th, they are still? deliberating on the policy of external content attribution.

As far as I can see there were only opinions in favour of adding them, not sure if there should be a formal ruling or something

Ceres6 avatar Nov 17 '24 09:11 Ceres6

It'll be discussed at every-ish meeting while it's on the agenda. Once they remove the label, they should come to a formal dicision.

(Also BTW this isn't the first time we've reposted external content with permission, see https://github.com/nodejs/nodejs.org/blob/83081efa4cde77626228c2709d2585cd554431af/apps/site/pages/en/blog/module/multi-server-continuous-deployment-with-fleet.md?plain=1#L9)

avivkeller avatar Nov 17 '24 21:11 avivkeller

@mcollina did you have time to review it?

Ceres6 avatar Nov 26 '24 21:11 Ceres6

@mcollina did you have time to review it?

Bump, @mcollina

ovflowd avatar Dec 16 '24 12:12 ovflowd

Hey folks, this has been here for a couple of months, can we try to move it forward? It's just a guide to be added to the docs.

I believe we agreed that we're going to credit @mcollina and Platformatic explicitly in the content, and myself and @codyzu in the markdown metadata.

I'm happy with that, so unless anybody disagrees, I would suggest to move this forward.

simoneb avatar Dec 18 '24 10:12 simoneb