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

make is_configured more rebust #474

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

giovanni-guidini
Copy link
Contributor

Recently an enterprise customer had a ghapp instance of the default
app change names to unconfigured_app even though it is the default
app.

One possible explanation is that in the YAML the default app id is a string,
not a number. This small change is to catch that case.

The motivation is:

>>> 10 == 10
True
>>> 10 == '10'
False
>>> str(10) == str('10')
True

Purpose/Motivation

What is the feature? Why is this being done?

Links to relevant tickets

What does this PR do?

Include a brief description of the changes in this PR. Bullet points are your friend.

Notes to Reviewer

Anything to note to the team? Any tips on how to review, or where to start?

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.

Recently an enterprise customer had a ghapp instance of the default
app change names to `unconfigured_app` even though it is the default
app.

One possible explanation is that in the YAML the default app id is a string,
not a number. This small change is to catch that case.

The motivation is:
```
>>> 10 == 10
True
>>> 10 == '10'
False
>>> str(10) == str('10')
True
```
@codecov-notifications
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@codecov-qa
Copy link

codecov-qa bot commented Mar 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.05%. Comparing base (1cb55a2) to head (ca1e080).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #474   +/-   ##
=======================================
  Coverage   96.05%   96.05%           
=======================================
  Files         643      643           
  Lines       17127    17127           
=======================================
  Hits        16451    16451           
  Misses        676      676           
Flag Coverage Δ
unit 96.05% <100.00%> (ø)
unit-latest-uploader 96.05% <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

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1cb55a2) 96.05% compared to head (ca1e080) 96.05%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #474   +/-   ##
=======================================
  Coverage   96.05%   96.05%           
=======================================
  Files         643      643           
  Lines       17127    17127           
=======================================
  Hits        16451    16451           
  Misses        676      676           
Flag Coverage Δ
unit 96.05% <100.00%> (ø)
unit-latest-uploader 96.05% <100.00%> (ø)

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

Files Coverage Δ
codecov_auth/models.py 98.97% <100.00%> (ø)

Impacted file tree graph

Copy link

codecov bot commented Mar 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.78%. Comparing base (1cb55a2) to head (ca1e080).

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #474   +/-   ##
=====================================
  Coverage   95.78   95.78           
=====================================
  Files        765     765           
  Lines      17713   17713           
=====================================
  Hits       16965   16965           
  Misses       748     748           
Flag Coverage Δ
unit 96.05% <100.00%> (ø)
unit-latest-uploader 96.05% <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.

@giovanni-guidini giovanni-guidini merged commit ace339a into main Mar 28, 2024
21 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/robust-is-configured branch March 28, 2024 18:08
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

2 participants