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: Update with self hosted specific layout #2746

Merged
merged 4 commits into from
Apr 8, 2024
Merged

Conversation

RulaKhaled
Copy link
Contributor

Description

Intended changes in the API block access to owner and redirect user to /login if they are guests aka unauthenticated users.

We ran into an issue where base layout is calling unnecessary requests to owner in self hosted landing page causing infinite loop in login page if user is not authenticated already, this change creates a separate header/layout for the login page for self hosted, allowing users to access login page on guest mode.

Previous infinite loop caused by base layout:

Screen.Recording.2024-04-05.at.1.38.21.PM.mov

New changes:

Screen.Recording.2024-04-05.at.1.33.29.PM.mov

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@codecov-staging
Copy link

codecov-staging bot commented Apr 5, 2024

Bundle Report

Changes will increase total bundle size by 1.5kB ⬆️

Bundle name Size Change
gazebo-staging-array-push 6.45MB 1.5kB ⬆️

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Apr 5, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Commit Created Cloud Enterprise
0994f13 Fri, 05 Apr 2024 12:00:17 GMT Expired Expired
0994f13 Fri, 05 Apr 2024 12:10:01 GMT Expired Expired
4e63d77 Fri, 05 Apr 2024 12:36:49 GMT Expired Expired
7af0cb7 Mon, 08 Apr 2024 18:00:53 GMT Cloud Enterprise

Copy link

codecov bot commented Apr 5, 2024

Bundle Report

Changes will increase total bundle size by 1.5kB ⬆️

Bundle name Size Change
gazebo-production-array-push 6.45MB 1.5kB ⬆️

@codecov-notifications
Copy link

codecov-notifications bot commented Apr 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2746   +/-   ##
=======================================
  Coverage   98.37%   98.37%           
=======================================
  Files         871      873    +2     
  Lines       12461    12471   +10     
  Branches     3246     3246           
=======================================
+ Hits        12258    12268   +10     
  Misses        194      194           
  Partials        9        9           
Files Coverage Δ
src/App.jsx 100.00% <100.00%> (ø)
...ts/EnterpriseLoginLayout/EnterpriseLoginLayout.tsx 100.00% <100.00%> (ø)
...rc/layouts/EnterpriseLoginLayout/Header/Header.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 55.55% <ø> (ø)
Layouts 97.25% <100.00%> (+0.08%) ⬆️
Pages 99.13% <ø> (ø)
Services 99.59% <ø> (ø)
Shared 99.84% <ø> (ø)
UI 94.18% <ø> (ø)

Continue to review full report in Codecov by Sentry.

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

@codecov-qa
Copy link

codecov-qa bot commented Apr 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.37%. Comparing base (991d715) to head (7af0cb7).

✅ All tests successful. No failed tests found ☺️

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2746   +/-   ##
=======================================
  Coverage   98.37%   98.37%           
=======================================
  Files         871      873    +2     
  Lines       12461    12471   +10     
  Branches     3286     3310   +24     
=======================================
+ Hits        12258    12268   +10     
  Misses        194      194           
  Partials        9        9           
Files Coverage Δ
src/App.jsx 100.00% <100.00%> (ø)
...ts/EnterpriseLoginLayout/EnterpriseLoginLayout.tsx 100.00% <100.00%> (ø)
...rc/layouts/EnterpriseLoginLayout/Header/Header.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 55.55% <ø> (ø)
Layouts 97.25% <100.00%> (+0.08%) ⬆️
Pages 99.13% <ø> (ø)
Services 99.59% <ø> (ø)
Shared 99.84% <ø> (ø)
UI 94.18% <ø> (ø)

Continue to review full report in Codecov by Sentry.

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

Copy link

codecov-public-qa bot commented Apr 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.37%. Comparing base (991d715) to head (7af0cb7).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2746   +/-   ##
=======================================
  Coverage   98.37%   98.37%           
=======================================
  Files         871      873    +2     
  Lines       12461    12471   +10     
  Branches     3309     3247   -62     
=======================================
+ Hits        12258    12268   +10     
  Misses        194      194           
  Partials        9        9           
Files Coverage Δ
src/App.jsx 100.00% <100.00%> (ø)
...ts/EnterpriseLoginLayout/EnterpriseLoginLayout.tsx 100.00% <100.00%> (ø)
...rc/layouts/EnterpriseLoginLayout/Header/Header.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 55.55% <ø> (ø)
Layouts 97.25% <100.00%> (+0.08%) ⬆️
Pages 99.13% <ø> (ø)
Services 99.59% <ø> (ø)
Shared 99.84% <ø> (ø)
UI 94.18% <ø> (ø)

Continue to review full report in Codecov by Sentry.

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

Copy link

codecov bot commented Apr 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.37%. Comparing base (991d715) to head (7af0cb7).

✅ All tests successful. No failed tests found ☺️

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2746   +/-   ##
=====================================
  Coverage   98.37   98.37           
=====================================
  Files        871     873    +2     
  Lines      12461   12471   +10     
  Branches    3246    3306   +60     
=====================================
+ Hits       12258   12268   +10     
  Misses       194     194           
  Partials       9       9           
Files Coverage Δ
src/App.jsx 100.00% <100.00%> (ø)
...ts/EnterpriseLoginLayout/EnterpriseLoginLayout.tsx 100.00% <100.00%> (ø)
...rc/layouts/EnterpriseLoginLayout/Header/Header.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 55.55% <ø> (ø)
Layouts 97.25% <100.00%> (+0.08%) ⬆️
Pages 99.13% <ø> (ø)
Services 99.59% <ø> (ø)
Shared 99.84% <ø> (ø)
UI 94.18% <ø> (ø)

Continue to review full report in Codecov by Sentry.

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

Copy link
Contributor

@nicholas-codecov nicholas-codecov left a comment

Choose a reason for hiding this comment

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

LGTM

@RulaKhaled RulaKhaled merged commit 68338fc into main Apr 8, 2024
59 checks passed
@RulaKhaled RulaKhaled deleted the self-hosted-layout branch April 8, 2024 18:55
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.

3 participants