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

Simplifies get_installation_name a bit #749

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Conversation

Swatinem
Copy link
Contributor

This concept is only relevant for github, so move an appropriate check inside.

Also removes the superfluous dbsession parameter, and removes the caching which is quite the overkill for this very simple query:

image

@Swatinem Swatinem requested a review from a team September 30, 2024 14:12
@Swatinem Swatinem self-assigned this Sep 30, 2024
Copy link

codecov bot commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.08%. Comparing base (32e4f7f) to head (9f5f7b9).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #749      +/-   ##
==========================================
- Coverage   98.08%   98.08%   -0.01%     
==========================================
  Files         432      432              
  Lines       36292    36292              
==========================================
- Hits        35598    35596       -2     
- Misses        694      696       +2     
Flag Coverage Δ
integration 98.08% <100.00%> (-0.01%) ⬇️
unit 98.08% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
NonTestCode 95.99% <100.00%> (-0.02%) ⬇️
OutsideTasks 98.13% <100.00%> (+<0.01%) ⬆️
Files with missing lines Coverage Δ
helpers/github_installation.py 100.00% <100.00%> (ø)
helpers/tests/unit/test_github_installation.py 100.00% <100.00%> (ø)
services/repository.py 96.78% <100.00%> (+0.02%) ⬆️
services/tests/test_repository_service.py 99.78% <ø> (ø)
tasks/bundle_analysis_notify.py 95.00% <ø> (ø)
tasks/commit_update.py 100.00% <100.00%> (ø)
tasks/compute_comparison.py 100.00% <ø> (ø)
tasks/notify.py 95.18% <100.00%> (-0.78%) ⬇️
tasks/preprocess_upload.py 98.14% <ø> (ø)
tasks/save_report_results.py 98.79% <ø> (ø)
... and 4 more

@codecov-staging
Copy link

codecov-staging bot commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #749      +/-   ##
==========================================
- Coverage   98.08%   98.08%   -0.01%     
==========================================
  Files         432      432              
  Lines       36292    36292              
==========================================
- Hits        35598    35596       -2     
- Misses        694      696       +2     
Flag Coverage Δ
integration 98.08% <100.00%> (-0.01%) ⬇️
unit 98.08% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
NonTestCode 95.99% <100.00%> (-0.02%) ⬇️
OutsideTasks 98.13% <100.00%> (+<0.01%) ⬆️
Files with missing lines Coverage Δ
helpers/github_installation.py 100.00% <100.00%> (ø)
helpers/tests/unit/test_github_installation.py 100.00% <100.00%> (ø)
services/repository.py 96.78% <100.00%> (+0.02%) ⬆️
services/tests/test_repository_service.py 99.78% <ø> (ø)
tasks/bundle_analysis_notify.py 95.00% <ø> (ø)
tasks/commit_update.py 100.00% <100.00%> (ø)
tasks/compute_comparison.py 100.00% <ø> (ø)
tasks/notify.py 95.18% <100.00%> (-0.78%) ⬇️
tasks/preprocess_upload.py 98.14% <ø> (ø)
tasks/save_report_results.py 98.79% <ø> (ø)
... and 4 more

@codecov-qa
Copy link

codecov-qa bot commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.08%. Comparing base (32e4f7f) to head (9f5f7b9).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #749      +/-   ##
==========================================
- Coverage   98.08%   98.08%   -0.01%     
==========================================
  Files         432      432              
  Lines       36292    36292              
==========================================
- Hits        35598    35596       -2     
- Misses        694      696       +2     
Flag Coverage Δ
integration 98.08% <100.00%> (-0.01%) ⬇️
unit 98.08% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
NonTestCode 95.99% <100.00%> (-0.02%) ⬇️
OutsideTasks 98.13% <100.00%> (+<0.01%) ⬆️
Files with missing lines Coverage Δ
helpers/github_installation.py 100.00% <100.00%> (ø)
helpers/tests/unit/test_github_installation.py 100.00% <100.00%> (ø)
services/repository.py 96.78% <100.00%> (+0.02%) ⬆️
services/tests/test_repository_service.py 99.78% <ø> (ø)
tasks/bundle_analysis_notify.py 95.00% <ø> (ø)
tasks/commit_update.py 100.00% <100.00%> (ø)
tasks/compute_comparison.py 100.00% <ø> (ø)
tasks/notify.py 95.18% <100.00%> (-0.78%) ⬇️
tasks/preprocess_upload.py 98.14% <ø> (ø)
tasks/save_report_results.py 98.79% <ø> (ø)
... and 4 more

Copy link

codecov-public-qa bot commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.08%. Comparing base (32e4f7f) to head (9f5f7b9).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #749      +/-   ##
==========================================
- Coverage   98.08%   98.08%   -0.01%     
==========================================
  Files         432      432              
  Lines       36292    36292              
==========================================
- Hits        35598    35596       -2     
- Misses        694      696       +2     
Flag Coverage Δ
integration 98.08% <100.00%> (-0.01%) ⬇️
unit 98.08% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
NonTestCode 95.99% <100.00%> (-0.02%) ⬇️
OutsideTasks 98.13% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
helpers/github_installation.py 100.00% <100.00%> (ø)
helpers/tests/unit/test_github_installation.py 100.00% <100.00%> (ø)
services/repository.py 96.78% <100.00%> (+0.02%) ⬆️
services/tests/test_repository_service.py 99.78% <ø> (ø)
tasks/bundle_analysis_notify.py 95.00% <ø> (ø)
tasks/commit_update.py 100.00% <100.00%> (ø)
tasks/compute_comparison.py 100.00% <ø> (ø)
tasks/notify.py 95.18% <100.00%> (-0.78%) ⬇️
tasks/preprocess_upload.py 98.14% <ø> (ø)
tasks/save_report_results.py 98.79% <ø> (ø)
... and 4 more

This concept is only relevant for github, so move an appropriate check inside.
Also removes the superfluous `dbsession` parameter, and removes the caching which is quite the overkill for this very simple query.
@Swatinem Swatinem added this pull request to the merge queue Sep 30, 2024
Merged via the queue into main with commit 7607091 Sep 30, 2024
25 of 31 checks passed
@Swatinem Swatinem deleted the swatinem/installation branch September 30, 2024 15:00
Swatinem added a commit that referenced this pull request Sep 30, 2024
Swatinem added a commit that referenced this pull request Sep 30, 2024
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