Skip to content

fix: update discount schema with proper zod object - #2666

Merged
ajay-sentry merged 8 commits into
mainfrom
Ajay/discount-todo-fix
Mar 13, 2024
Merged

ajay-sentry merged 8 commits into
mainfrom
Ajay/discount-todo-fix

Conversation

@ajay-sentry

@ajay-sentry ajay-sentry commented Mar 7, 2024 •

Copy link
Copy Markdown
Contributor

Description

updates the discount schema used in the account-details rest endpoint with the proper keys

Related stripe documentation can be found here: https://docs.stripe.com/api/coupons/object

Code Example

Notable Changes

N/A, copied directly from the serializer here: https://github.com/codecov/codecov-api/blob/daacd21fe6982c5f53f941669299dbe086c58a75/api/internal/owner/serializers.py#L83-L102

Additionally updated the mocks for the UT to account for this update

Screenshots

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-public-qa

codecov-public-qa Bot commented Mar 7, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a234f6f) 98.43% compared to head (89eab85) 98.43%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2666   +/-   ##
=======================================
  Coverage   98.43%   98.43%           
=======================================
  Files         854      854           
  Lines       11919    11919           
  Branches     3139     3086   -53     
=======================================
  Hits        11733    11733           
  Misses        183      183           
  Partials        3        3           
Files Coverage Δ
src/services/account/useAccountDetails.ts 95.00% <ø> (ø)
Components Coverage Δ
Assets 55.55% <ø> (ø)
Layouts 97.13% <ø> (ø)
Pages 99.33% <ø> (ø)
Services 99.61% <ø> (ø)
Shared 99.83% <ø> (ø)
UI 94.17% <ø> (ø)

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 a234f6f...89eab85. Read the comment docs.

@codecov-staging

codecov-staging Bot commented Mar 7, 2024 •

Copy link
Copy Markdown

Test Failures Detected: Due to failing tests, we cannot provide coverage reports at this time.

❌ Failed Test Results:

Completed 3790 tests with 1 failed, 3789 passed and 0 skipped.

View the full list of failed tests
Test Description Failure message
Testsuite: useMyOrganizations
Test name: useMyOrganizations when qu
ery resolves there is was an api error returns the user::useMyOrganiza
tions when query resolves there is was an api error returns the user<b
r>Envs:
-
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: &quot;POST /graphql/gh net::ERR_FAILED&quot;

Number of calls: 0
at Object.&lt;anonymous&gt; (.../DefaultOrgSelector/hooks/useMyOrganizations.spec.tsx:210:28)

@codecov

codecov Bot commented Mar 7, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.44%. Comparing base (a234f6f) to head (89eab85).

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2666   +/-   ##
=====================================
  Coverage   98.44   98.44           
=====================================
  Files        854     854           
  Lines      11919   11919           
  Branches    3131    3086   -45     
=====================================
  Hits       11733   11733           
  Misses       183     183           
  Partials       3       3           
Files Coverage Δ
src/services/account/useAccountDetails.ts 95.00% <ø> (ø)
Components Coverage Δ
Assets 55.55% <ø> (ø)
Layouts 97.13% <ø> (ø)
Pages 99.33% <ø> (ø)
Services 99.61% <ø> (ø)
Shared 99.83% <ø> (ø)
UI 94.17% <ø> (ø)

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 a234f6f...89eab85. Read the comment docs.

@codecov-releaser

Copy link
Copy Markdown
Collaborator

@codecov-qa

codecov-qa Bot commented Mar 7, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.43%. Comparing base (a234f6f) to head (89eab85).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2666   +/-   ##
=======================================
  Coverage   98.43%   98.43%           
=======================================
  Files         854      854           
  Lines       11919    11919           
  Branches     3088     3121   +33     
=======================================
  Hits        11733    11733           
  Misses        183      183           
  Partials        3        3           
Files Coverage Δ
src/services/account/useAccountDetails.ts 95.00% <ø> (ø)
Components Coverage Δ
Assets 55.55% <ø> (ø)
Layouts 97.13% <ø> (ø)
Pages 99.33% <ø> (ø)
Services 99.61% <ø> (ø)
Shared 99.83% <ø> (ø)
UI 94.17% <ø> (ø)

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 a234f6f...89eab85. Read the comment docs.

@codecov-releaser

codecov-releaser commented Mar 13, 2024 •

Copy link
Copy Markdown
Collaborator

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Commit Created Cloud Enterprise
49c6c17 Wed, 13 Mar 2024 14:50:42 GMT Expired Expired
49c6c17 Wed, 13 Mar 2024 17:00:25 GMT Expired Expired
89eab85 Wed, 13 Mar 2024 17:17:49 GMT Cloud Enterprise

@nicholas-codecov
nicholas-codecov self-requested a review March 13, 2024 16:52

@nicholas-codecov nicholas-codecov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Alrighty, send it

@ajay-sentry
ajay-sentry merged commit dedba7f into main Mar 13, 2024
@ajay-sentry
ajay-sentry deleted the Ajay/discount-todo-fix branch March 13, 2024 17:56
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