-
Notifications
You must be signed in to change notification settings - Fork 28
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
[feat] Hide Codecov tokens from non admins if YAML setting is enabled #923
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #923 +/- ##
=======================================
Coverage 96.23% 96.24%
=======================================
Files 823 823
Lines 18953 18968 +15
=======================================
+ Hits 18240 18255 +15
Misses 713 713
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
@@ -24,6 +25,8 @@ | |||
from services.profiling import CriticalFile, ProfilingSummary | |||
from services.redis_configuration import get_redis_connection | |||
|
|||
TOKEN_UNAVAILABLE = "Token Unavailable" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the plan for UI just to show this instead of the token? Or check the value and do something special?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just updated the PR and copy. Since this work is just for a single customer, we are just going to render the value directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool sounds good. I prefer this approach given this is not an official feature.
@codecov-ai-reviewer review |
if should_hide_tokens and not is_current_user_admin: | ||
return TOKEN_UNAVAILABLE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The command
variable is being redefined. The second definition is redundant and should be removed to avoid confusion.
if should_hide_tokens and not is_current_user_admin: | |
return TOKEN_UNAVAILABLE | |
if should_hide_tokens and not is_current_user_admin: | |
return TOKEN_UNAVAILABLE | |
return command.get_upload_token(repository) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow good point
This PR includes changes to |
Test Failures Detected: Due to failing tests, we cannot provide coverage reports at this time. ❌ Failed Test Results:Completed 2643 tests with View the full list of failed testspytest
|
❌ 4 Tests Failed:
View the top 3 failed tests by shortest run time
To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard |
Purpose/Motivation
What is the feature? Why is this being done?
Relies on codecov/shared#397
Parent issue: https://github.com/codecov/internal-issues/issues/491
Also bumps shared.