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: remove passThroughFeedback #1298

Merged
merged 8 commits into from
Mar 29, 2021
Merged

Conversation

jia1
Copy link
Member

@jia1 jia1 commented Mar 7, 2021

Problem

Closes #786

@jia1 jia1 self-assigned this Mar 7, 2021
@jia1 jia1 added the contribute free for contributors to pick up label Mar 7, 2021
@liangyuanruo liangyuanruo requested a review from karrui March 8, 2021 13:31
@liangyuanruo
Copy link
Contributor

Hey @jia1 , I think there should be a corresponding frontend change first to migrate off the backend API?

Copy link
Contributor

@karrui karrui left a comment

Choose a reason for hiding this comment

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

Don't think we can just mock all calls to feedback endpoint, since FormFeedback.postFeedback is still needed for legitimate, non-preview feedbacks

@jia1
Copy link
Member Author

jia1 commented Mar 23, 2021

Thank you Yuan Ruo and Kar Rui for your feedback.

@jia1 jia1 requested a review from karrui March 23, 2021 11:29
Copy link
Contributor

@karrui karrui left a comment

Choose a reason for hiding this comment

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

lgtm, but this change is not backwards compatible meaning old clients who preview feedback submission will see a failure instead.

For statistics, we get ~10 of such passthrough requests everyday. I'd reckon we can do this in a backwards incompatible way and just merge this PR in, instead of keeping the old endpoint in for a couple weeks.

Thoughts @liangyuanruo?

@liangyuanruo
Copy link
Contributor

Thanks @jia1 ... @karrui sounds ok to me.

@karrui karrui merged commit 78e1767 into develop Mar 29, 2021
@karrui karrui deleted the feat/remove-passThroughFeedback branch March 29, 2021 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribute free for contributors to pick up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove backend API call when previewing feedback submission
3 participants