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

fix: perform login redirect automatically #137

Merged
merged 1 commit into from
Jan 12, 2021
Merged

Conversation

schottra
Copy link
Contributor

flyteorg/flyte#525

This is a small update to remove the dialog we show when we detect that the session has expired and just perform the redirect automatically.

Has been tested on latest Chrome, Firefox, and Safari.

  • Removed LoginExpiredHandler
  • Added small effect hook to apiContext to detect when expiration state changes and redirect to the login url

@codecov-io
Copy link

Codecov Report

Merging #137 (9cf12ce) into master (d8daf6c) will decrease coverage by 0.13%.
The diff coverage is 20.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #137      +/-   ##
==========================================
- Coverage   74.43%   74.30%   -0.14%     
==========================================
  Files         415      414       -1     
  Lines        7310     7304       -6     
  Branches     1154     1155       +1     
==========================================
- Hits         5441     5427      -14     
- Misses       1869     1877       +8     
Impacted Files Coverage Δ
src/components/App/App.tsx 85.71% <ø> (-0.50%) ⬇️
src/components/data/QueryAuthorizationObserver.tsx 29.41% <ø> (ø)
src/components/hooks/useFetchableData.ts 91.07% <ø> (-1.79%) ⬇️
src/components/data/apiContext.ts 61.90% <20.00%> (-32.22%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e18623...9cf12ce. Read the comment docs.

@service-github-lyft-semantic-release
Copy link
Contributor

🎉 This PR is included in version 0.19.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@schottra schottra deleted the auto-login-redirect branch January 12, 2021 00:36
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.

4 participants