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

ref: Move useRepoConfig off RepositoryDeprecated #2860

Merged
merged 3 commits into from May 14, 2024

Conversation

ajay-sentry
Copy link
Contributor

Description

moves useRepoConfig off repositoryDeprecated, adds UT's and updates other UT's

Screenshots

Screenshot 2024-05-08 at 10 12 24 AM

Link to Sample Entry

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-qa
Copy link

codecov-qa bot commented May 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.48%. Comparing base (0704cb9) to head (694d902).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2860   +/-   ##
=======================================
  Coverage   98.48%   98.48%           
=======================================
  Files         875      875           
  Lines       12914    12927   +13     
  Branches     3397     3461   +64     
=======================================
+ Hits        12718    12731   +13     
  Misses        192      192           
  Partials        4        4           
Files Coverage Δ
...hContents/branch/dir/usePrefetchBranchDirEntry.tsx 100.00% <ø> (ø)
.../pathContents/branch/dir/useRepoBranchContents.tsx 100.00% <ø> (ø)
src/services/repo/useRepoConfig.tsx 100.00% <100.00%> (ø)
src/services/repos/useRepos.tsx 100.00% <ø> (ø)

... and 3 files with indirect coverage changes

Components Coverage Δ
Assets 54.54% <ø> (ø)
Layouts 97.26% <ø> (ø)
Pages 99.27% <ø> (+<0.01%) ⬆️
Services 99.47% <100.00%> (+<0.01%) ⬆️
Shared 99.84% <ø> (ø)
UI 94.53% <ø> (ø)

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 0704cb9...694d902. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented May 8, 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    #2860   +/-   ##
=======================================
  Coverage   98.48%   98.48%           
=======================================
  Files         875      875           
  Lines       12914    12927   +13     
  Branches     3462     3461    -1     
=======================================
+ Hits        12718    12731   +13     
  Misses        192      192           
  Partials        4        4           
Files Coverage Δ
...hContents/branch/dir/usePrefetchBranchDirEntry.tsx 100.00% <ø> (ø)
.../pathContents/branch/dir/useRepoBranchContents.tsx 100.00% <ø> (ø)
src/services/repo/useRepoConfig.tsx 100.00% <100.00%> (ø)
src/services/repos/useRepos.tsx 100.00% <ø> (ø)

... and 3 files with indirect coverage changes

Components Coverage Δ
Assets 54.54% <ø> (ø)
Layouts 97.26% <ø> (ø)
Pages 99.27% <ø> (+<0.01%) ⬆️
Services 99.47% <100.00%> (+<0.01%) ⬆️
Shared 99.84% <ø> (ø)
UI 94.53% <ø> (ø)

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 0704cb9...694d902. Read the comment docs.

Copy link

codecov-public-qa bot commented May 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.48%. Comparing base (0704cb9) to head (694d902).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2860   +/-   ##
=======================================
  Coverage   98.48%   98.48%           
=======================================
  Files         875      875           
  Lines       12914    12927   +13     
  Branches     3396     3443   +47     
=======================================
+ Hits        12718    12731   +13     
  Misses        192      192           
  Partials        4        4           
Files Coverage Δ
...hContents/branch/dir/usePrefetchBranchDirEntry.tsx 100.00% <ø> (ø)
.../pathContents/branch/dir/useRepoBranchContents.tsx 100.00% <ø> (ø)
src/services/repo/useRepoConfig.tsx 100.00% <100.00%> (ø)
src/services/repos/useRepos.tsx 100.00% <ø> (ø)

... and 3 files with indirect coverage changes

Components Coverage Δ
Assets 54.54% <ø> (ø)
Layouts 97.26% <ø> (ø)
Pages 99.27% <ø> (+<0.01%) ⬆️
Services 99.47% <100.00%> (+<0.01%) ⬆️
Shared 99.84% <ø> (ø)
UI 94.53% <ø> (ø)

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 0704cb9...694d902. Read the comment docs.

Copy link

codecov bot commented May 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.48%. Comparing base (0704cb9) to head (694d902).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2860   +/-   ##
=====================================
  Coverage   98.48   98.48           
=====================================
  Files        875     875           
  Lines      12914   12927   +13     
  Branches    3457    3443   -14     
=====================================
+ Hits       12718   12731   +13     
  Misses       192     192           
  Partials       4       4           
Files Coverage Δ
...hContents/branch/dir/usePrefetchBranchDirEntry.tsx 100.00% <ø> (ø)
.../pathContents/branch/dir/useRepoBranchContents.tsx 100.00% <ø> (ø)
src/services/repo/useRepoConfig.tsx 100.00% <100.00%> (ø)
src/services/repos/useRepos.tsx 100.00% <ø> (ø)

... and 3 files with indirect coverage changes

Components Coverage Δ
Assets 54.54% <ø> (ø)
Layouts 97.26% <ø> (ø)
Pages 99.27% <ø> (+<0.01%) ⬆️
Services 99.47% <100.00%> (+<0.01%) ⬆️
Shared 99.84% <ø> (ø)
UI 94.53% <ø> (ø)

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 0704cb9...694d902. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented May 8, 2024

Bundle Report

Changes will increase total bundle size by 6.67kB ⬆️

Bundle name Size Change
gazebo-staging-array-push 6.58MB 6.67kB ⬆️

Copy link

codecov bot commented May 8, 2024

Bundle Report

Changes will increase total bundle size by 6.67kB ⬆️

Bundle name Size Change
gazebo-production-array-push 6.58MB 6.67kB ⬆️

@codecov-releaser
Copy link
Contributor

codecov-releaser commented May 8, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Commit Created Cloud Enterprise
ef8c549 Wed, 08 May 2024 14:23:00 GMT Expired Expired
a79f14b Wed, 08 May 2024 16:04:24 GMT Expired Expired
694d902 Fri, 10 May 2024 15:31:15 GMT Cloud Enterprise

@nicholas-codecov nicholas-codecov self-requested a review May 10, 2024 14:37
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.

One small comment to take a peak at

Comment on lines 45 to 46
// silence console errors
console.error = () => {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you move this into only tests that we expect things to log out in, that way incase a test fails that we don't expect we will be able to see the log and why it was failing and make it a bit easier to clean up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that's fair, made the change in 694d902

@ajay-sentry ajay-sentry force-pushed the Ajay/convert-use-repo-config branch from a79f14b to 694d902 Compare May 10, 2024 15:20
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.

Perfect ty ty 🙏

@ajay-sentry ajay-sentry added this pull request to the merge queue May 14, 2024
Merged via the queue into main with commit 5397322 May 14, 2024
59 of 60 checks passed
@ajay-sentry ajay-sentry deleted the Ajay/convert-use-repo-config branch May 14, 2024 16:29
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.

None yet

3 participants