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

create new files section #109

Merged
merged 3 commits into from
Sep 25, 2023
Merged

create new files section #109

merged 3 commits into from
Sep 25, 2023

Conversation

dana-yaish
Copy link
Contributor

@dana-yaish dana-yaish commented Sep 21, 2023

This PR separates the legacy files table format and the new files table format. This way is cleaner that having if conditions all over the class and makes it easy to take the files section out of the drop down part

You can look at the designs here

Note that we're experimenting the new format with users by overriding their comment section in their yamls. After deploying this change, we'll need to change the overrode yaml from layout: "newheader, diff, flags, files, feedback, newfooter" to layout: "newheader, diff, flags, newfiles, feedback, newfooter"

depends on codecov/shared#43
after merging it, need to update the shared version in requirements

tested these changes in a PR
before changes:
Screenshot 2023-09-22 at 1 40 45 PM

after changes:
Screenshot 2023-09-22 at 2 34 30 PM

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.

@@ -190,7 +190,7 @@ def get_middle_layout_section_names(self, settings):
return [
section
for section in sections
if section not in ["header", "newheader", "newfooter"]
if section not in ["header", "newheader", "newfooter", "newfiles"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

adding this here because the new designs take out the files section from the drop down part

@codecov
Copy link

codecov bot commented Sep 22, 2023

Codecov Report

Merging #109 (f7c2035) into main (fdf5319) will increase coverage by 0.01%.
The diff coverage is 96.38%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #109      +/-   ##
==========================================
+ Coverage   98.47%   98.48%   +0.01%     
==========================================
  Files         364      364              
  Lines       26863    27412     +549     
==========================================
+ Hits        26453    26997     +544     
- Misses        410      415       +5     
Flag Coverage Δ
integration 98.42% <95.23%> (-0.02%) ⬇️
latest-uploader-overall 98.42% <95.23%> (-0.02%) ⬇️
unit 98.42% <95.23%> (-0.02%) ⬇️

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

Components Coverage Δ
NonTestCode 97.09% <96.25%> (-0.01%) ⬇️
OutsideTasks 98.20% <95.23%> (-0.02%) ⬇️
Files Changed Coverage Δ
.../notification/notifiers/mixins/message/sections.py 97.38% <95.45%> (-0.43%) ⬇️
.../notification/notifiers/mixins/message/__init__.py 100.00% <100.00%> (ø)
...s/notification/notifiers/mixins/message/helpers.py 92.00% <100.00%> (-0.60%) ⬇️
.../notification/notifiers/tests/unit/test_comment.py 100.00% <100.00%> (ø)
Related Entrypoints
run/app.tasks.notify.Notify

@codecov-staging
Copy link

codecov-staging bot commented Sep 22, 2023

Codecov Report

Merging #109 (f7c2035) into main (fdf5319) will decrease coverage by 0.02%.
The diff coverage is 95.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #109      +/-   ##
==========================================
- Coverage   98.43%   98.42%   -0.02%     
==========================================
  Files         343      343              
  Lines       26691    26703      +12     
==========================================
+ Hits        26274    26283       +9     
- Misses        417      420       +3     
Flag Coverage Δ
integration 98.42% <95.23%> (-0.02%) ⬇️
latest-uploader-overall 98.42% <95.23%> (-0.02%) ⬇️
unit 98.42% <95.23%> (-0.02%) ⬇️

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

Components Coverage Δ
NonTestCode 96.98% <95.00%> (-0.03%) ⬇️
OutsideTasks 98.20% <95.23%> (-0.02%) ⬇️
Files Patch % Lines
.../notification/notifiers/mixins/message/sections.py 93.47% 3 Missing ⚠️

@codecov-public-qa
Copy link

codecov-public-qa bot commented Sep 22, 2023

Codecov Report

Merging #109 (f7c2035) into main (fdf5319) will decrease coverage by 0.02%.
The diff coverage is 95.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #109      +/-   ##
==========================================
- Coverage   98.43%   98.42%   -0.02%     
==========================================
  Files         343      343              
  Lines       26691    26703      +12     
==========================================
+ Hits        26274    26283       +9     
- Misses        417      420       +3     
Flag Coverage Δ
integration 98.42% <95.23%> (-0.02%) ⬇️
latest-uploader-overall 98.42% <95.23%> (-0.02%) ⬇️
unit 98.42% <95.23%> (-0.02%) ⬇️

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

Components Coverage Δ
NonTestCode 96.98% <95.00%> (-0.03%) ⬇️
OutsideTasks 98.20% <95.23%> (-0.02%) ⬇️
Files Changed Coverage Δ
.../notification/notifiers/mixins/message/sections.py 96.93% <93.47%> (-0.88%) ⬇️
.../notification/notifiers/mixins/message/__init__.py 100.00% <100.00%> (ø)
...s/notification/notifiers/mixins/message/helpers.py 92.00% <100.00%> (-0.60%) ⬇️
.../notification/notifiers/tests/unit/test_comment.py 100.00% <100.00%> (ø)

@dana-yaish dana-yaish merged commit 916eabb into main Sep 25, 2023
20 of 31 checks passed
@dana-yaish dana-yaish deleted the dana/new-files-section branch September 25, 2023 17:10
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