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

Warn when ghapps flip names #487

Merged
merged 2 commits into from
Apr 3, 2024
Merged

Conversation

giovanni-guidini
Copy link
Contributor

We had again a situation in staging that the default app flipped names to 'unconfigured_app'.
Not sure why exactly, but it's anoying and disruptive.

These changes emit a warning when the app flips name to unconfigured so we can track better
that situation (but we hope it doesn't happen much) and hopefully get better understanding
on why it's happening.

I also made a change to the is_configured function that an app unconfigured is never configured.

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.

We had again a situation in staging that the default app flipped names to 'unconfigured_app'.
Not sure why exactly, but it's anoying and disruptive.

These changes emit a warning when the app flips name to unconfigured so we can track better
that situation (but we hope it doesn't happen much) and hopefully get better understanding
on why it's happening.

I also made a change to the `is_configured` function that an app unconfigured is never configured.
@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 Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.05%. Comparing base (0f1ac17) to head (ab83bbd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #487   +/-   ##
=======================================
  Coverage   96.04%   96.05%           
=======================================
  Files         644      644           
  Lines       17163    17166    +3     
=======================================
+ Hits        16485    16488    +3     
  Misses        678      678           
Flag Coverage Δ
unit 96.05% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 96.05% <100.00%> (+<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-public-qa bot commented Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0f1ac17) 96.04% compared to head (ab83bbd) 96.05%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #487   +/-   ##
=======================================
  Coverage   96.04%   96.05%           
=======================================
  Files         644      644           
  Lines       17163    17166    +3     
=======================================
+ Hits        16485    16488    +3     
  Misses        678      678           
Flag Coverage Δ
unit 96.05% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 96.05% <100.00%> (+<0.01%) ⬆️

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

Files Coverage Δ
codecov_auth/models.py 98.98% <100.00%> (+<0.01%) ⬆️
webhook_handlers/views/github.py 99.05% <100.00%> (+<0.01%) ⬆️

Impacted file tree graph

@giovanni-guidini giovanni-guidini merged commit b8eb29a into main Apr 3, 2024
16 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/ghapps-keep-flipping-names branch April 3, 2024 17:43
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