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(api): add :email unsubscribe/:email to the deprecated #50497

Merged

Conversation

Sboonny
Copy link
Member

@Sboonny Sboonny commented May 24, 2023

Checklist:

These endpoints are depercated in the old api too, so I have added them.

@Sboonny Sboonny added the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label May 24, 2023
@Sboonny Sboonny requested a review from a team as a code owner May 24, 2023 13:01
@github-actions github-actions bot added the platform: api Server application that needs familiarity with Express, Loopback, MongoDB etc. label May 24, 2023
@codesee-maps
Copy link
Contributor

codesee-maps bot commented May 24, 2023

👀 Review this PR in a CodeSee Review Map

View the CodeSee Map of this change

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

Copy link
Contributor

@ojeytonwilliams ojeytonwilliams left a comment

Choose a reason for hiding this comment

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

They don't get much use, but they are still getting traffic so I think it's worth keeping the custom response, unsubscribeDeprecated

@Sboonny Sboonny removed the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label May 24, 2023
@Sboonny Sboonny marked this pull request as draft May 24, 2023 14:46
@Sboonny Sboonny marked this pull request as ready for review May 24, 2023 21:39
@Sboonny Sboonny added the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label May 24, 2023
Copy link
Contributor

@ojeytonwilliams ojeytonwilliams left a comment

Choose a reason for hiding this comment

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

These endpoints do not respond with JSON. They redirect the browser to the client with a query param that includes the flash message.

There's some discussion here: #50426 but I think we should talk about it again in today's meeting.

@Sboonny
Copy link
Member Author

Sboonny commented May 25, 2023

I am adding block label, until the issue is triaged.

@Sboonny Sboonny added status: blocked Is waiting on followup from either the Opening Poster of the issue or PR, or a maintainer. and removed status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. labels May 25, 2023
@ojeytonwilliams
Copy link
Contributor

@Sboonny since we've confirmed the "clone the old api wherever possible" plan, we should use the redirects here.

If you like, I'd be happy to create a quick PR/push a commitw redirectWithFlash.

@ojeytonwilliams
Copy link
Contributor

Once #50525 is in, we can update this to use redirectWithMessage

@ojeytonwilliams ojeytonwilliams force-pushed the feat/add-two-email-deprecated-endpoint branch from 944d3b2 to 745c8fb Compare June 15, 2023 11:10
@Sembauke Sembauke removed the status: blocked Is waiting on followup from either the Opening Poster of the issue or PR, or a maintainer. label Jun 15, 2023
@moT01 moT01 added the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label Jun 16, 2023
@moT01 moT01 merged commit ea45dc8 into freeCodeCamp:main Jun 22, 2023
18 checks passed
@Sboonny Sboonny deleted the feat/add-two-email-deprecated-endpoint branch June 29, 2023 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: api Server application that needs familiarity with Express, Loopback, MongoDB etc. status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants