-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
fix: redirect to home page after posting a highlight #203
fix: redirect to home page after posting a highlight #203
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Compliance Checks Passed!
d348f6d
to
f0a5060
Compare
f0a5060
to
b71005c
Compare
One thing i noticed is the highlights aren't updated immediately on the home page of the extension because I think it's cached. Is there a function i can call to invalidate or update the cache? |
Or do you think it's fine to let it update once it expires |
You are correct. The highlights are cached for 300 seconds. Lines 37 to 40 in 311f456
ai/src/utils/fetchOpenSaucedApiData.ts Lines 174 to 187 in 311f456
The |
We can parameterize the Home component with a Line 112 in 311f456
The value will govern whether to do a force refresh when getting the highlights. The |
Thanks for the detailed overview! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. Thanks for working on this @marcusgchan.
## [1.12.0-beta.3](v1.12.0-beta.2...v1.12.0-beta.3) (2023-07-20) ### π Bug Fixes * redirect to home page after posting a highlight ([#203](#203)) ([4ebd2d1](4ebd2d1))
π This PR is included in version 1.12.0-beta.3 π The release is available on GitHub release Your semantic-release bot π¦π |
## [1.12.0-beta.3](open-sauced/ai@v1.12.0-beta.2...v1.12.0-beta.3) (2023-07-20) ### π Bug Fixes * redirect to home page after posting a highlight ([#203](open-sauced/ai#203)) ([4ebd2d1](open-sauced/ai@4ebd2d1))
* feat: view repos on opensauced (#218) * feat: view repos on opensauced * change var names * chore(minor): release 1.12.0-beta.1 on beta channel [skip ci] ## [1.12.0-beta.1](v1.11.1...v1.12.0-beta.1) (2023-07-18) ### π Features * view repos on opensauced ([#218](#218)) ([f33d9fd](f33d9fd)) * fix: post highlights from the extension (#223) * chore(patch): release 1.12.0-beta.2 on beta channel [skip ci] ## [1.12.0-beta.2](v1.12.0-beta.1...v1.12.0-beta.2) (2023-07-19) ### π Bug Fixes * post highlights from the extension ([#223](#223)) ([7d91011](7d91011)) * fix: redirect to home page after posting a highlight (#203) * fix: redirect to home page after posting a highligh * Added forceRefresh param to force cache invalidation * chore: default val forceRefresh, typo --------- Co-authored-by: Anush008 <[email protected]> * chore(patch): release 1.12.0-beta.3 on beta channel [skip ci] ## [1.12.0-beta.3](v1.12.0-beta.2...v1.12.0-beta.3) (2023-07-20) ### π Bug Fixes * redirect to home page after posting a highlight ([#203](#203)) ([4ebd2d1](4ebd2d1)) * fix: view on open sauced location (#225) * bug-fix: view on open sauced location * fix: change classname to constant name * fix: remove unwanted lint changes in constants * feat: change variable name * fix: remove element cast Co-authored-by: Nick Taylor <[email protected]> --------- Co-authored-by: Nick Taylor <[email protected]> * chore(patch): release 1.12.0-beta.4 on beta channel [skip ci] ## [1.12.0-beta.4](v1.12.0-beta.3...v1.12.0-beta.4) (2023-07-25) ### π Bug Fixes * view on open sauced location ([#225](#225)) ([0ecfef0](0ecfef0)) * feat: Login with pkce (#230) * chore(minor): release 1.12.0-beta.5 on beta channel [skip ci] ## [1.12.0-beta.5](v1.12.0-beta.4...v1.12.0-beta.5) (2023-07-28) ### π Features * Login with pkce ([#230](#230)) ([42e8d4a](42e8d4a)) --------- Co-authored-by: Divyansh Singh <[email protected]> Co-authored-by: Marcus Chan <[email protected]> Co-authored-by: Anush008 <[email protected]> Co-authored-by: Pratham <[email protected]> Co-authored-by: Nick Taylor <[email protected]>
## [1.12.0](v1.11.1...v1.12.0) (2023-07-31) ### π Features * Login with pkce ([#230](#230)) ([42e8d4a](42e8d4a)) * view repos on opensauced ([#218](#218)) ([f33d9fd](f33d9fd)) ### π Bug Fixes * manual release.yml ([a41de3f](a41de3f)) * post highlights from the extension ([#223](#223)) ([7d91011](7d91011)) * redirect to home page after posting a highlight ([#203](#203)) ([4ebd2d1](4ebd2d1)) * view on open sauced location ([#225](#225)) ([0ecfef0](0ecfef0))
π This PR is included in version 1.12.0 π The release is available on GitHub release Your semantic-release bot π¦π |
What type of PR is this? (check all applicable)
Description
This PR redirects the users to the home page after creating a highlight.
Related Tickets & Documents
Fixes #178
Mobile & Desktop Screenshots/Recordings
Added tests?
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?