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

Improvements around comments #1220

Merged
merged 10 commits into from
Nov 24, 2019
Merged

Improvements around comments #1220

merged 10 commits into from
Nov 24, 2019

Conversation

atodorov
Copy link
Member

No description provided.

@coveralls
Copy link

coveralls commented Nov 24, 2019

Pull Request Test Coverage Report for Build 4895

  • 19 of 32 (59.38%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 74.214%

Changes Missing Coverage Covered Lines Changed/Added Lines %
tcms/signals.py 5 6 83.33%
tcms/rpc/api/testexecution.py 4 9 44.44%
tcms/rpc/api/testcase.py 6 13 46.15%
Totals Coverage Status
Change from base Build 4893: 0.1%
Covered Lines: 3751
Relevant Lines: 4798

💛 - Coveralls

@codecov-io
Copy link

codecov-io commented Nov 24, 2019

Codecov Report

Merging #1220 into master will increase coverage by 0.05%.
The diff coverage is 56.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1220      +/-   ##
==========================================
+ Coverage   73.83%   73.88%   +0.05%     
==========================================
  Files         121      121              
  Lines        4788     4798      +10     
  Branches      596      595       -1     
==========================================
+ Hits         3535     3545      +10     
+ Misses       1048     1046       -2     
- Partials      205      207       +2
Impacted Files Coverage Δ
tcms/urls.py 76.47% <ø> (ø) ⬆️
tcms/core/contrib/comments/views.py 57.14% <ø> (+20.1%) ⬆️
tcms/testcases/apps.py 100% <100%> (ø) ⬆️
tcms/testruns/apps.py 100% <100%> (ø) ⬆️
tcms/rpc/api/testexecution.py 78.57% <44.44%> (-5.04%) ⬇️
tcms/rpc/api/testcase.py 58.18% <46.15%> (-1.62%) ⬇️
tcms/signals.py 75.36% <66.66%> (-0.83%) ⬇️
tcms/core/history.py 90.69% <0%> (ø) ⬆️

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 89853fe...a1e2894. Read the comment docs.

@atodorov atodorov changed the title Improvements around comment deletion Improvements around comments Nov 24, 2019
- this field is not used when removing comments. Only comment_id
  is actually used!
- get_details_case_run.html was displaying the wrong value for
  object_pk: it was showing TC.pk instead of TE.pk
instead of flagging comments as removed delete them from DB
we do this with a pre-delete signal b/c the object_pk field
isn't a FK relationship but rather an integer field so we can't
rely on a cascading delete!
previously this method didn't check for the necessary permissions
allows to remove 1 or all comments associated with TestExecution
replaces a view which we don't really need and want to delete
so we can unblock #959
@atodorov atodorov merged commit 5c54e4b into master Nov 24, 2019
@atodorov atodorov deleted the next_release branch November 24, 2019 19:00
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.

3 participants