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: Remove repositoryDeprecated from api tests #2872

Merged

Conversation

nicholas-codecov
Copy link
Contributor

Description

This PR updates the api util file to TS, as well as removing the repositoryDeprecated field in the api tests.

Notable Changes

  • Update api to TS
  • Update tests and remove repositoryDeprecated

@codecov-qa
Copy link

codecov-qa bot commented May 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.47%. Comparing base (34bbe06) to head (0cb3b7b).

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2872      +/-   ##
==========================================
- Coverage   98.48%   98.47%   -0.02%     
==========================================
  Files         879      879              
  Lines       12954    12954              
  Branches     3408     3451      +43     
==========================================
- Hits        12758    12756       -2     
- Misses        192      194       +2     
  Partials        4        4              
Files Coverage Δ
src/shared/api/api.ts 94.00% <100.00%> (ø)
Components Coverage Δ
Assets 54.54% <ø> (ø)
Layouts 97.26% <ø> (ø)
Pages 99.28% <ø> (ø)
Services 99.47% <ø> (ø)
Shared 99.68% <100.00%> (-0.16%) ⬇️
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 34bbe06...0cb3b7b. Read the comment docs.

Copy link

codecov-public-qa bot commented May 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.47%. Comparing base (34bbe06) to head (0cb3b7b).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2872      +/-   ##
==========================================
- Coverage   98.48%   98.47%   -0.02%     
==========================================
  Files         879      879              
  Lines       12954    12954              
  Branches     3469     3408      -61     
==========================================
- Hits        12758    12756       -2     
- Misses        192      194       +2     
  Partials        4        4              
Files Coverage Δ
src/shared/api/api.ts 94.00% <100.00%> (ø)
Components Coverage Δ
Assets 54.54% <ø> (ø)
Layouts 97.26% <ø> (ø)
Pages 99.28% <ø> (ø)
Services 99.47% <ø> (ø)
Shared 99.68% <100.00%> (-0.16%) ⬇️
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 34bbe06...0cb3b7b. Read the comment docs.

@codecov-notifications
Copy link

codecov-notifications bot commented May 10, 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    #2872      +/-   ##
==========================================
- Coverage   98.48%   98.47%   -0.02%     
==========================================
  Files         879      879              
  Lines       12954    12954              
  Branches     3469     3409      -60     
==========================================
- Hits        12758    12756       -2     
- Misses        192      194       +2     
  Partials        4        4              
Files Coverage Δ
src/shared/api/api.ts 94.00% <100.00%> (ø)
Components Coverage Δ
Assets 54.54% <ø> (ø)
Layouts 97.26% <ø> (ø)
Pages 99.28% <ø> (ø)
Services 99.47% <ø> (ø)
Shared 99.68% <100.00%> (-0.16%) ⬇️
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 34bbe06...0cb3b7b. Read the comment docs.

Copy link

codecov bot commented May 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.47%. Comparing base (34bbe06) to head (0cb3b7b).

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #2872     +/-   ##
=======================================
- Coverage   98.49   98.47   -0.02     
=======================================
  Files        879     879             
  Lines      12954   12954             
  Branches    3451    3469     +18     
=======================================
- Hits       12758   12756      -2     
- Misses       192     194      +2     
  Partials       4       4             
Files Coverage Δ
src/shared/api/api.ts 94.00% <100.00%> (ø)
Components Coverage Δ
Assets 54.54% <ø> (ø)
Layouts 97.26% <ø> (ø)
Pages 99.28% <ø> (ø)
Services 99.47% <ø> (ø)
Shared 99.68% <100.00%> (-0.16%) ⬇️
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 34bbe06...0cb3b7b. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented May 10, 2024

Bundle Report

Changes will decrease total bundle size by 152 bytes ⬇️

Bundle name Size Change
gazebo-staging-array-push 6.61MB 152 bytes ⬇️

Copy link

codecov bot commented May 10, 2024

Bundle Report

Changes will decrease total bundle size by 152 bytes ⬇️

Bundle name Size Change
gazebo-production-array-push 6.61MB 152 bytes ⬇️

@codecov-releaser
Copy link
Contributor

codecov-releaser commented May 10, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Commit Created Cloud Enterprise
cbf3d2b Fri, 10 May 2024 14:47:45 GMT Expired Expired
77b9685 Tue, 14 May 2024 11:05:34 GMT Expired Expired
cda5695 Tue, 14 May 2024 13:05:18 GMT Expired Expired
0cb3b7b Tue, 14 May 2024 14:50:05 GMT Cloud Enterprise

@@ -407,6 +433,7 @@ describe('when using a graphql mutation', () => {

beforeAll(() => {
const location = window.location
// @ts-expect-error - test magic
Copy link
Contributor

Choose a reason for hiding this comment

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

🧙

function prefillMethod(method) {
return (config) =>
function prefillMethod(method: string) {
return (config: any) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

There's no type we can use here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Config isn't typed yet ... and until we can ... I'd rather this just be any for the time being ... even tho it hurts every bone in my body.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok as long as you feel bad about it 😆

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Feeling absolutely sick to my stomach about it

@nicholas-codecov nicholas-codecov added this pull request to the merge queue May 14, 2024
Merged via the queue into main with commit ec8f628 May 14, 2024
56 of 60 checks passed
@nicholas-codecov nicholas-codecov deleted the gh-eng-355-remove-repositoryDeprecated-from-api-test branch May 14, 2024 14: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.

None yet

3 participants