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

feat(export): add number of mappings in analyze and redownload report button #152

Merged
merged 7 commits into from
Feb 16, 2022

Conversation

mehaase
Copy link
Contributor

@mehaase mehaase commented Feb 11, 2022

Cherry picked from @bsnyder70's PR #129 to merge with linted code.

closes #87
closes #43

ben and others added 3 commits February 11, 2022 12:10
… button

1. In analyze mode, show the number of mappings to the left of each
   sentence.
2. Add a button to download the original report file, i.e. verbatim
   copy of what the user uploaded.
… button

* Change this feature to use doc_id instead of doc name.
* Escape doc name in header value
* Don't show download button for docs that can't be downloaded (e.g. the
  bootstrap training data) as this introduces brittle edge cases.
@mehaase mehaase requested a review from emmanvg February 11, 2022 17:15
@mehaase mehaase self-assigned this Feb 11, 2022
@codecov
Copy link

codecov bot commented Feb 11, 2022

Codecov Report

Merging #152 (dbbe0f4) into master (9d55d42) will decrease coverage by 0.17%.
The diff coverage is 84.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #152      +/-   ##
==========================================
- Coverage   95.81%   95.63%   -0.18%     
==========================================
  Files           9        9              
  Lines         836      848      +12     
==========================================
+ Hits          801      811      +10     
- Misses         35       37       +2     
Impacted Files Coverage Δ
src/tram/tram/serializers.py 95.16% <ø> (ø)
src/tram/tram/urls.py 100.00% <ø> (ø)
src/tram/tram/views.py 93.02% <84.61%> (-1.00%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d55d42...dbbe0f4. Read the comment docs.

@mehaase mehaase changed the title feat(export): add number of mappings in analyze and redownload report button WIP feat(export): add number of mappings in analyze and redownload report button Feb 11, 2022
… button

Rename function and add test coverage. (The new test exposed another
test having some brittle code that assumes only one doc upload, so I
made that test less brittle.)
@mehaase mehaase changed the title WIP feat(export): add number of mappings in analyze and redownload report button feat(export): add number of mappings in analyze and redownload report button Feb 15, 2022
@sonarcloud
Copy link

sonarcloud bot commented Feb 16, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@emmanvg emmanvg mentioned this pull request Feb 16, 2022
Copy link
Contributor

@emmanvg emmanvg left a comment

Choose a reason for hiding this comment

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

Tested the changes. Both work as expected!

@emmanvg emmanvg added this to the v1.1.3 milestone Feb 16, 2022
@mehaase mehaase merged commit 01c8912 into master Feb 16, 2022
@mehaase mehaase deleted the download-orig-report branch February 16, 2022 16:39
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.

Display Mapped Technique Counts Download original report
2 participants