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: Show enable button in components/flags for activated users only #3145

Merged
merged 3 commits into from
Aug 26, 2024

Conversation

RulaKhaled
Copy link
Contributor

@RulaKhaled RulaKhaled commented Aug 26, 2024

Description

We show enable anayltics button for non logged in users, this fixes so that if current user is not part of org, we don't show the enabled button.

issue: codecov/feedback#452

Notable Changes

  • Update to reflect is current user part of the org
  • Fix tests

Screenshots

Screenshot 2024-08-26 at 5 19 45 PM Screenshot 2024-08-26 at 5 19 39 PM

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 Aug 26, 2024

Bundle Report

Changes will decrease total bundle size by 65.14kB ⬇️

Bundle name Size Change
gazebo-staging-array-push 5.71MB 65.14kB ⬇️

Copy link

codecov bot commented Aug 26, 2024

Bundle Report

Changes will decrease total bundle size by 65.14kB ⬇️

Bundle name Size Change
gazebo-production-array-push 5.71MB 65.14kB ⬇️

Copy link

codecov-public-qa bot commented Aug 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.31%. Comparing base (7d7c0cb) to head (06acd57).
Report is 9 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3145      +/-   ##
==========================================
- Coverage   98.31%   98.31%   -0.01%     
==========================================
  Files         919      923       +4     
  Lines       14177    14400     +223     
  Branches     3921     3910      -11     
==========================================
+ Hits        13938    14157     +219     
- Misses        234      238       +4     
  Partials        5        5              
Files Coverage Δ
...poPage/CoverageTab/ComponentsTab/ComponentsTab.tsx 100.00% <100.00%> (ø)
...c/pages/RepoPage/CoverageTab/FlagsTab/FlagsTab.jsx 100.00% <100.00%> (ø)
src/services/repo/useRepoSettingsTeam.tsx 100.00% <ø> (ø)

... and 20 files with indirect coverage changes

Components Coverage Δ
Assets 54.05% <ø> (ø)
Layouts 98.80% <ø> (ø)
Pages 99.03% <100.00%> (-0.01%) ⬇️
Services 99.51% <ø> (+<0.01%) ⬆️
Shared 99.71% <ø> (+<0.01%) ⬆️
UI 94.51% <ø> (-0.03%) ⬇️

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 7d7c0cb...06acd57. Read the comment docs.

@codecov-notifications
Copy link

codecov-notifications bot commented Aug 26, 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    #3145      +/-   ##
==========================================
- Coverage   98.31%   98.31%   -0.01%     
==========================================
  Files         919      923       +4     
  Lines       14177    14400     +223     
  Branches     3840     3936      +96     
==========================================
+ Hits        13938    14157     +219     
- Misses        234      238       +4     
  Partials        5        5              
Files Coverage Δ
...poPage/CoverageTab/ComponentsTab/ComponentsTab.tsx 100.00% <100.00%> (ø)
...c/pages/RepoPage/CoverageTab/FlagsTab/FlagsTab.jsx 100.00% <100.00%> (ø)
src/services/repo/useRepoSettingsTeam.tsx 100.00% <ø> (ø)

... and 20 files with indirect coverage changes

Components Coverage Δ
Assets 54.05% <ø> (ø)
Layouts 98.80% <ø> (ø)
Pages 99.03% <100.00%> (-0.01%) ⬇️
Services 99.51% <ø> (+<0.01%) ⬆️
Shared 99.71% <ø> (+<0.01%) ⬆️
UI 94.51% <ø> (-0.03%) ⬇️

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 7d7c0cb...06acd57. Read the comment docs.

Copy link

codecov bot commented Aug 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.31%. Comparing base (7d7c0cb) to head (06acd57).
Report is 10 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main      #3145    +/-   ##
============================================
  Coverage   98.31000   98.31000            
============================================
  Files           919        923     +4     
  Lines         14177      14400   +223     
  Branches       3926       3855    -71     
============================================
+ Hits          13938      14157   +219     
- Misses          234        238     +4     
  Partials          5          5            
Files Coverage Δ
...poPage/CoverageTab/ComponentsTab/ComponentsTab.tsx 100.00% <100.00%> (ø)
...c/pages/RepoPage/CoverageTab/FlagsTab/FlagsTab.jsx 100.00% <100.00%> (ø)
src/services/repo/useRepoSettingsTeam.tsx 100.00% <ø> (ø)

... and 20 files with indirect coverage changes

Components Coverage Δ
Assets 54.05% <ø> (ø)
Layouts 98.80% <ø> (ø)
Pages 99.03% <100.00%> (-0.01%) ⬇️
Services 99.51% <ø> (+<0.01%) ⬆️
Shared 99.71% <ø> (+<0.01%) ⬆️
UI 94.51% <ø> (-0.03%) ⬇️

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 7d7c0cb...06acd57. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Aug 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.31%. Comparing base (7d7c0cb) to head (06acd57).
Report is 10 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3145      +/-   ##
==========================================
- Coverage   98.31%   98.31%   -0.01%     
==========================================
  Files         919      923       +4     
  Lines       14177    14400     +223     
  Branches     3921     3936      +15     
==========================================
+ Hits        13938    14157     +219     
- Misses        234      238       +4     
  Partials        5        5              
Files Coverage Δ
...poPage/CoverageTab/ComponentsTab/ComponentsTab.tsx 100.00% <100.00%> (ø)
...c/pages/RepoPage/CoverageTab/FlagsTab/FlagsTab.jsx 100.00% <100.00%> (ø)
src/services/repo/useRepoSettingsTeam.tsx 100.00% <ø> (ø)

... and 20 files with indirect coverage changes

Components Coverage Δ
Assets 54.05% <ø> (ø)
Layouts 98.80% <ø> (ø)
Pages 99.03% <100.00%> (-0.01%) ⬇️
Services 99.51% <ø> (+<0.01%) ⬆️
Shared 99.71% <ø> (+<0.01%) ⬆️
UI 94.51% <ø> (-0.03%) ⬇️

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 7d7c0cb...06acd57. Read the comment docs.

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Aug 26, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
58605c6 Mon, 26 Aug 2024 10:39:10 GMT Expired Expired
9bd8046 Mon, 26 Aug 2024 12:47:28 GMT Expired Expired
06acd57 Mon, 26 Aug 2024 15:56:00 GMT Cloud Enterprise

@RulaKhaled RulaKhaled marked this pull request as ready for review August 26, 2024 15:45
Copy link
Contributor

@ajay-sentry ajay-sentry left a comment

Choose a reason for hiding this comment

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

looks good!

@@ -64,9 +63,6 @@ query GetRepoSettingsTeam($name: String!, $repo: String!) {
... on NotFoundError {
message
}
... on OwnerNotActivatedError {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is handled in the /repo page level

@RulaKhaled RulaKhaled added this pull request to the merge queue Aug 26, 2024
Merged via the queue into main with commit 703b34b Aug 26, 2024
61 of 62 checks passed
@RulaKhaled RulaKhaled deleted the fix-enable-components-access branch August 26, 2024 17:41
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