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

[CORL-3171] fix tenor search fetch's on prod #4647

Merged
merged 6 commits into from
Jul 16, 2024

Conversation

nick-funk
Copy link
Contributor

@nick-funk nick-funk commented Jul 15, 2024

What does this PR do?

  • Fixing the problem with missing protocol on tenor search queries

  • Updates useFetchWithAuth to use the framework url utilities to process url's.

    • This ensures that we set the protocol properly on useFetchWithAuth (among other things) as the rootURL does not come through with a protocol in prod.
    • This is quietly already being done for relay via the modifyQuery util's that also include parseURL and buildURL for the underlying fetch utility that is performing relay requests. It is also being similarly used to generate a redirect url in the CommentPane.
  • Fixing the rate limit issues when searching

    • Setting the debounce when typing to 1250 ms
    • Does not do anything for when users spam Load more and don't get results due to rate limiting, but that's less likely to happen

These changes will impact:

  • commenters
  • moderators
  • admins
  • developers

What changes to the GraphQL/Database Schema does this PR introduce?

None

Does this PR introduce any new environment variables or feature flags?

No

If any indexes were added, were they added to INDEXES.md?

N/A

How do I test this PR?

  • Head to dev1 and test posting tenor gifs in a prod-like environment
    • only way to easily test url protocol as Coral dev passes http://... through in its rootURL

Were any tests migrated to React Testing Library?

No

How do we deploy this PR?

  • Merge into develop

ensures that we set the protocol properly on `useFetchWithAuth`
as the `rootURL` does not come through with a protocol in prod.

this is quietly being done for relay via the `modifyQuery` util's
that also include `parseURL` and `buildURL` for the underlying
fetch utility that is performing relay requests.
Copy link

netlify bot commented Jul 15, 2024

Deploy Preview for gallant-galileo-14878c canceled.

Name Link
🔨 Latest commit 37036c4
🔍 Latest deploy log https://app.netlify.com/sites/gallant-galileo-14878c/deploys/66957618a9f52000084a0859

@nick-funk nick-funk marked this pull request as ready for review July 15, 2024 16:08
@tessalt tessalt merged commit 466fe54 into develop Jul 16, 2024
6 checks passed
@tessalt tessalt deleted the fix/CORL-3171-tenor-url-protocol branch July 16, 2024 12:25
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.

2 participants