Skip to content

Fix: corrects the IESG evaluation record summary for approved docs#4261

Merged
rjsparks merged 3 commits into
ietf-tools:mainfrom
Spectre17:feature-1
Jul 24, 2022
Merged

Fix: corrects the IESG evaluation record summary for approved docs#4261
rjsparks merged 3 commits into
ietf-tools:mainfrom
Spectre17:feature-1

Conversation

@Spectre17

Copy link
Copy Markdown
Collaborator

Fixes #3962.

This is done by extracting the IESG state (if applicable) and checking the state for approved (announced or not announced) documents. Documents in this state are made to works like documents in the "rfcqueue" or "pub" states, i.e., they list the status of the last ballot.

…nts where the IESG state is approved (announced or not).
This is a correction to a previous fix that didn't pass all the tests
for some documents
Corrects the previous fix by removing commented out code. Sigh. At least
these are free.
@codecov

codecov Bot commented Jul 24, 2022

Copy link
Copy Markdown

Codecov Report

Merging #4261 (eeda19c) into main (fe1f51a) will increase coverage by 0.01%.
The diff coverage is 97.14%.

@@            Coverage Diff             @@
##             main    #4261      +/-   ##
==========================================
+ Coverage   88.40%   88.41%   +0.01%     
==========================================
  Files         294      294              
  Lines       39197    39200       +3     
==========================================
+ Hits        34652    34659       +7     
+ Misses       4545     4541       -4     
Impacted Files Coverage Δ
ietf/doc/urls.py 100.00% <ø> (ø)
ietf/utils/markdown.py 100.00% <ø> (ø)
ietf/doc/views_draft.py 91.98% <93.75%> (ø)
ietf/doc/views_ballot.py 91.86% <100.00%> (+0.10%) ⬆️
ietf/doc/views_doc.py 90.53% <100.00%> (+0.04%) ⬆️
ietf/doc/views_status_change.py 93.36% <100.00%> (+0.20%) ⬆️
ietf/utils/text.py 85.97% <100.00%> (+0.26%) ⬆️
ietf/group/utils.py 94.59% <0.00%> (+0.90%) ⬆️

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 de4f1fe...eeda19c. Read the comment docs.

@rjsparks rjsparks self-requested a review July 24, 2022 12:49
Comment thread ietf/doc/views_doc.py
else:
position_groups.append(g)

iesg = doc.get_state("draft-iesg")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is a get_state_slug function that would have done the same as these two lines

{% endif %}
{% endif %}
{% if not ballot_open %}
{% if not ballot_open or iesg_state == "ann" or iesg_state == "approved" %}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm a little uncomfortable that this now doesn't tell the truth - While in 'approved", the ballot is, in reality, still open as far as the datatracker is concerned, but the IESG will not make more changes to positions.It is in the transient phase waiting for the secretariat to clear, hence close, it at the time of announcement.
But the subtlety isn't really useful to the consumer of this message, so we'll go with this as is.

@rjsparks rjsparks merged commit 3a1d8b3 into ietf-tools:main Jul 24, 2022
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't show needed ballot counts on documents that have already been approved

2 participants