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 scheduled details key w/ stripe version upgrade #563

Merged
merged 3 commits into from
May 14, 2024

Conversation

adrian-codecov
Copy link
Contributor

Purpose/Motivation

We recently majorly bumped our stripe version and some api calls stopped working. This fixes the scheduled detail serializer one.

What does this PR do?

  • adjusts tests + logic for scheduled phase serializer

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.

&& rm -rf frp.tar.gz \
&& mv frp_*_linux_amd64 /frp \
&& chown -R frp:frp /frp
SHELL ["/bin/bash", "-c"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unrelated change that helps run frp in api; doesn't break logic as it's only for local development



class ScheduleDetailSerializer(serializers.Serializer):
id = serializers.CharField()
scheduled_phase = serializers.SerializerMethodField()

def get_scheduled_phase(self, schedule):
print("le schedule", schedule)
Copy link
Contributor

Choose a reason for hiding this comment

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

le remove pls ;)

@codecov-notifications
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

Copy link

codecov-public-qa bot commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.32%. Comparing base (e8cbe70) to head (18dca8c).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #563   +/-   ##
=======================================
  Coverage   91.32%   91.32%           
=======================================
  Files         599      599           
  Lines       15940    15940           
=======================================
  Hits        14558    14558           
  Misses       1382     1382           
Flag Coverage Δ
unit 91.32% <100.00%> (ø)
unit-latest-uploader 91.32% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
api/internal/owner/serializers.py 99.01% <100.00%> (ø)
billing/views.py 94.57% <100.00%> (ø)
services/billing.py 92.45% <100.00%> (ø)

Impacted file tree graph

Copy link

codecov bot commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.82%. Comparing base (e8cbe70) to head (18dca8c).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #563   +/-   ##
=====================================
  Coverage   95.82   95.82           
=====================================
  Files        777     777           
  Lines      17258   17258           
=====================================
  Hits       16537   16537           
  Misses       721     721           
Flag Coverage Δ
unit 91.32% <100.00%> (ø)
unit-latest-uploader 91.32% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codecov-qa
Copy link

codecov-qa bot commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.32%. Comparing base (e8cbe70) to head (18dca8c).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #563   +/-   ##
=======================================
  Coverage   91.32%   91.32%           
=======================================
  Files         599      599           
  Lines       15940    15940           
=======================================
  Hits        14558    14558           
  Misses       1382     1382           
Flag Coverage Δ
unit 91.32% <100.00%> (ø)
unit-latest-uploader 91.32% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

lgtm

@adrian-codecov adrian-codecov added this pull request to the merge queue May 14, 2024
Merged via the queue into main with commit 83a5577 May 14, 2024
21 of 22 checks passed
@adrian-codecov adrian-codecov deleted the 561-fix-scheduled-details-plans branch May 14, 2024 23:46
JerrySentry pushed a commit that referenced this pull request May 15, 2024
* fix scheduled details key w/ stripe version upgrade

* add other test case

* remove print

Signed-off-by: JerrySentry <jerry.feng@sentry.io>
JerrySentry pushed a commit that referenced this pull request May 15, 2024
* fix scheduled details key w/ stripe version upgrade

* add other test case

* remove print

Signed-off-by: JerrySentry <jerry.feng@sentry.io>
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.

2 participants