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: check whoami before other requests #1103

Merged
merged 2 commits into from
Aug 2, 2024
Merged

feat: check whoami before other requests #1103

merged 2 commits into from
Aug 2, 2024

Conversation

artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented Aug 1, 2024

Closes #935

Stand: https://nda.ya.ru/t/6x0jcgOt77KX7s

CI Results

Test Status: βœ… PASSED

πŸ“Š Full Report

Total Passed Failed Flaky Skipped
38 38 0 0 0

Bundle Size: πŸ”½

Current: 78.85 MB | Main: 78.91 MB
Diff: 0.05 MB (-0.07%)

βœ… Bundle size decreased.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • πŸ“Š indicates links to detailed reports.
  • πŸ”Ί indicates increase, πŸ”½ decrease, and βœ… no change in bundle size.

@artemmufazalov artemmufazalov force-pushed the 935-whoami branch 2 times, most recently from 2763e83 to a92e94c Compare August 1, 2024 16:38
@@ -78,7 +78,7 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
// authUrl - external auth service link, after successful auth additional cookies will be appended
// that will allow access to clusters where OIDC proxy is a balancer
if (response && response.status === 401 && response.data?.authUrl) {
return window.location.assign(response.data.authUrl);
window.location.assign(response.data.authUrl);
Copy link
Member Author

Choose a reason for hiding this comment

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

window.location.assign doesn't happen immediately, return error so some normal error will be shown in between

src/containers/App/Content.tsx Outdated Show resolved Hide resolved
src/store/utils.ts Outdated Show resolved Hide resolved
ValeraS
ValeraS previously approved these changes Aug 2, 2024
ValeraS
ValeraS previously approved these changes Aug 2, 2024
@artemmufazalov artemmufazalov force-pushed the 935-whoami branch 2 times, most recently from ea2dcce to 551812d Compare August 2, 2024 14:46
@artemmufazalov
Copy link
Member Author

I will fix flaky tenants test in a separate PR. It seems, since page content is now loaded only after whoami finish, test needs more time

@artemmufazalov artemmufazalov merged commit 70b6dc3 into main Aug 2, 2024
6 checks passed
@artemmufazalov artemmufazalov deleted the 935-whoami branch August 2, 2024 14:57
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.

Check /whoami before other request when open cluster.
2 participants