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

Add Self Hosted License Expiration Date to Config Resolver #283

Merged
merged 8 commits into from
Dec 5, 2023

Conversation

adrian-codecov
Copy link
Contributor

Purpose/Motivation

We want to surface a banner in the client to show self-hosted customers a CTA to renew their license. This PR surfaces that information to the client

Links to relevant tickets

codecov/engineering-team#849

What does this PR do?

  • Adds license resolver to the config file, and a license type to return its expiration date

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 Dec 1, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (fcab60a) 95.64% compared to head (e058a47) 95.64%.

Files Patch % Lines
...i/types/self_hosted_license/self_hosted_license.py 90.90% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #283   +/-   ##
=======================================
  Coverage   95.64%   95.64%           
=======================================
  Files         608      610    +2     
  Lines       15687    15710   +23     
=======================================
+ Hits        15004    15026   +22     
- Misses        683      684    +1     
Flag Coverage Δ
unit 95.64% <95.65%> (+<0.01%) ⬆️
unit-latest-uploader 95.64% <95.65%> (+<0.01%) ⬆️

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

codecov bot commented Dec 1, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (fcab60a) 95.55% compared to head (e058a47) 95.55%.

Files Patch % Lines
...i/types/self_hosted_license/self_hosted_license.py 90.90% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #283   +/-   ##
=====================================
  Coverage   95.55   95.55           
=====================================
  Files        722     724    +2     
  Lines      16094   16117   +23     
=====================================
+ Hits       15378   15400   +22     
- Misses       716     717    +1     
Flag Coverage Δ
unit 95.64% <95.65%> (+<0.01%) ⬆️
unit-latest-uploader 95.64% <95.65%> (+<0.01%) ⬆️

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.



@self_hosted_license_bindable.field("expirationDate")
def resolve_expiration_date(license: LicenseInformation, info) -> datetime.date:
Copy link
Contributor

Choose a reason for hiding this comment

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

returns Optional[..]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch!

@adrian-codecov adrian-codecov merged commit 9f4c387 into main Dec 5, 2023
16 of 17 checks passed
@adrian-codecov adrian-codecov deleted the 849-self-hosted-license-investigation branch December 5, 2023 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.

2 participants