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:
[X] 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
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.useFetchWithAuth
(among other things) as therootURL
does not come through with a protocol in prod.modifyQuery
util's that also includeparseURL
andbuildURL
for the underlying fetch utility that is performing relay requests. It is also being similarly used to generate a redirect url in theCommentPane
.Fixing the rate limit issues when searching
Load more
and don't get results due to rate limiting, but that's less likely to happenThese changes will impact:
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?
dev1
and test posting tenor gifs in a prod-like environmenthttp://...
through in itsrootURL
Were any tests migrated to React Testing Library?
No
How do we deploy this PR?
develop