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

Ensure that language validation works on all supported languages #459

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michelletran-codecov
Copy link
Contributor

@michelletran-codecov michelletran-codecov commented Dec 20, 2024

The database has a set of enum validation which is different from the in-code validation that we do when checking that the language is valid. This should ensure that the language set looks the same.

Resolves this issue: codecov/engineering-team#2061

Might want to try this in worker/staging before merging because it uses a Django property.

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.

The database has a set of enum validation which is different from the
in-code validation that we do when checking that the language is valid.
This should ensure that the language set looks the same.
Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.97%. Comparing base (abc6b36) to head (7424e4b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #459      +/-   ##
==========================================
- Coverage   90.58%   89.97%   -0.61%     
==========================================
  Files         401      324      -77     
  Lines       12508     9211    -3297     
  Branches     2103     1634     -469     
==========================================
- Hits        11330     8288    -3042     
+ Misses       1069      860     -209     
+ Partials      109       63      -46     
Flag Coverage Δ
shared-docker-uploader ?

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.

@michelletran-codecov michelletran-codecov requested a review from a team December 20, 2024 21:12
Copy link
Contributor

@adrian-codecov adrian-codecov left a comment

Choose a reason for hiding this comment

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

Ooooh interesting, yeah lets give it a shot in staging and see how it goes! Great catch.

Is there something in this list that isn't in the DB?

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