-
Notifications
You must be signed in to change notification settings - Fork 378
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
fix: Shows requested reviews for doc fixes #6022
Conversation
@@ -351,6 +351,9 @@ | |||
{% for review_assignment in review_assignments %} | |||
{% include "doc/review_assignment_summary.html" with current_doc_name=doc.name current_rev=doc.rev %} | |||
{% endfor %} | |||
{% for review_request in review_requests %} | |||
{% include "doc/review_request_summary.html" with current_doc_name=doc.name current_rev=doc.rev %} |
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.
{% include "doc/review_request_summary.html" with current_doc_name=doc.name current_rev=doc.rev %} | |
{% include "doc/review_request_summary.html" with current_doc_name=doc.name current_rev=doc.rev only %} |
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.
I have no idea what that change would do so can't really comment on that.
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.
it passes only the current_doc_name and current_rev to the review_request_summary template instead of the full context available to the template you are calling {% include
from.
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.
but I'm really confused - review_request_summary.html only uses review_request
, why are you passing current_doc_name and current_rev to it?
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.
Because it is cut & paste from the above where it was giving same parameters to the doc/review_assignment_symmary.html.
I copied the review_assignment_summary.html as a base for the review_request_summary.html and at that point I did not know whether the lines using current_doc stays in or not.
In the end I did not need them as they are used to remove the version number from the line telling which version the review was done for in case it is current revision and document.
So most likely I should simply change it to
{% include "doc/review_request_summary.html" with review_request only %}
or do I need to use review_request=review_request before only?
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.
you need to use review_request=review_request
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.
Ok, now this should be done. I also did the same for the review_assignment_summary include.
Codecov Report
@@ Coverage Diff @@
## main #6022 +/- ##
==========================================
- Coverage 88.67% 88.67% -0.01%
==========================================
Files 288 288
Lines 40001 40009 +8
==========================================
+ Hits 35471 35476 +5
- Misses 4530 4533 +3
|
Adds requested reviews to the document information page. Moved the due date of the incomplete reviews out from the badge to the actual text.
Fixes #4881.