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

feat(gatsby-plugin-feed): Allows to override default feed url generation #19869

Merged
merged 1 commit into from Dec 2, 2019

Conversation

matyo91
Copy link
Contributor

@matyo91 matyo91 commented Nov 28, 2019

Description

This add the possibility to configure a custom link for rss meta generation.

@matyo91 matyo91 requested review from a team as code owners November 28, 2019 22:54
@matyo91 matyo91 force-pushed the feat/gatsby-plugin-feed-output-link branch 3 times, most recently from e6da3ba to 0bf8502 Compare November 29, 2019 08:27
@matyo91 matyo91 requested a review from muescha November 29, 2019 09:09
@matyo91 matyo91 force-pushed the feat/gatsby-plugin-feed-output-link branch from 0bf8502 to cad4fcd Compare November 29, 2019 09:11
Copy link
Contributor

@pvdz pvdz left a comment

Choose a reason for hiding this comment

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

You can pass on output as is :)

packages/gatsby-plugin-feed/src/gatsby-ssr.js Show resolved Hide resolved
@matyo91 matyo91 requested a review from pvdz November 29, 2019 12:50
Copy link
Contributor

@pvdz pvdz left a comment

Choose a reason for hiding this comment

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

The only remark i see here is // TODO: remove for v3 :

You have a point here! However, I do believe being defensive about a v3 is not what we want here.

Can you please add a test for this feauture? That way, when v3 does arrive and that part of the code gets updated, the test will prompt us to deal with this problem (one way or the other).

With the test you can drop the (redundant) regular expression safely without having to worry about v3 :)

Thanks

@matyo91 matyo91 force-pushed the feat/gatsby-plugin-feed-output-link branch from d89a905 to eb87cc0 Compare December 2, 2019 09:31
@matyo91
Copy link
Contributor Author

matyo91 commented Dec 2, 2019

With the test you can drop the (redundant) regular expression safely without having to worry about v3 :)

I added more tests one for the feature and two for prefixes.
I made tests about what is done today for non-regression, not what V3 will be tomorrow.

So i didn't understand why I can in this PR drop regular expression and potentially break other projets using this plugin, as I have no idea if this PR will be released for V2 or for V3.

@matyo91 matyo91 requested a review from pvdz December 2, 2019 10:50
Copy link
Contributor

@pvdz pvdz left a comment

Choose a reason for hiding this comment

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

Ok nevermind. It's fine. Thanks for the adding the tests, that's super helpful.

Thank you for your effort!

@pvdz pvdz merged commit dd222d5 into gatsbyjs:master Dec 2, 2019
@gatsbot
Copy link

gatsbot bot commented Dec 2, 2019

Holy buckets, @matyo91 — we just merged your PR to Gatsby! 💪💜

Gatsby is built by awesome people like you. Let us say “thanks” in two ways:

  1. We’d like to send you some Gatsby swag. As a token of our appreciation, you can go to the Gatsby Swag Store and log in with your GitHub account to get a coupon code good for one free piece of swag. We’ve got Gatsby t-shirts, stickers, hats, scrunchies, and much more. (You can also unlock even more free swag with 5 contributions — wink wink nudge nudge.) See gatsby.dev/swag for details.
  2. We just invited you to join the Gatsby organization on GitHub. This will add you to our team of maintainers. Accept the invite by visiting https://github.com/orgs/gatsbyjs/invitation. By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests.

If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’.

Thanks again!

@matyo91 matyo91 deleted the feat/gatsby-plugin-feed-output-link branch December 2, 2019 14:43
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.

None yet

3 participants