Skip to content

feat: Give AD the action in ad-f-up doc state - #6272

Merged
rjsparks merged 10 commits into
ietf-tools:mainfrom
jennifer-richards:ad-actionholder
Sep 12, 2023
Merged

feat: Give AD the action in ad-f-up doc state#6272
rjsparks merged 10 commits into
ietf-tools:mainfrom
jennifer-richards:ad-actionholder

Conversation

@jennifer-richards

Copy link
Copy Markdown
Member

Submitting as a draft PR because I have not updated any tests, but would like feedback on the basic premise here.

Python-wise, I'm using a dataclass, a Python feature we have not used much if at all yet. It has been around since 3.7 and cuts down on boilerplate for a use like this.

In terms of the functional change, this adds the AD to the action holders when the ad-f-up state is added. It does not remove them when that tag is removed. It could if this is going to be needed, but will take some care because it will interact more strongly with action holder updates on other state changes. I.e., it may not be as easy to consider the substate tags separately from the states when deciding who the next action holder are.

Fixes #6266

@codecov

codecov Bot commented Sep 3, 2023

Copy link
Copy Markdown

Codecov Report

Merging #6272 (7f06819) into main (b3a5354) will decrease coverage by 0.01%.
Report is 14 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #6272      +/-   ##
==========================================
- Coverage   88.69%   88.69%   -0.01%     
==========================================
  Files         290      290              
  Lines       40390    40404      +14     
==========================================
+ Hits        35825    35836      +11     
- Misses       4565     4568       +3     
Files Changed Coverage Δ
ietf/doc/utils.py 87.38% <100.00%> (+0.23%) ⬆️
ietf/doc/views_search.py 89.09% <100.00%> (ø)

... and 2 files with indirect coverage changes

Comment thread ietf/doc/utils.py
if tags.removed("need-rev"):
# Removed the 'need-rev' tag - drop authors from the action holders list
DocumentActionHolder.objects.filter(document=doc, person__in=doc.authors()).delete()
elif tags.added("need-rev"):

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.

Only a few seconds thought given to it, but I'm not seeing a case where this tag being added shouldn't relieve the AD of being an action holder. (In case that's too many nested nots, I think the ad should be removed as an action holder when this tag is added.

@larseggert - am I missing any use cases that say the AD should remain as an action holder when this tag is added?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sounds reasonable to me - I'll add

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

When which tag is added?

@jennifer-richards jennifer-richards Sep 5, 2023

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

the "need-rev" (identified as the "Revised I-D needed" in the UI) tag

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

When that is added, IMO the AD should never remain an action holder.

@rjsparks

rjsparks commented Sep 3, 2023

Copy link
Copy Markdown
Member

Python-wise, I'm using a dataclass, a Python feature we have not used much if at all yet. It has been around since 3.7 and cuts down on boilerplate for a use like this.

No objection.

@jennifer-richards
jennifer-richards marked this pull request as ready for review September 5, 2023 15:04
Comment thread ietf/doc/utils.py
# Add new action holders
if doc.ad:
# AD is an action holder unless specified otherwise for the new state
if iesg_state_changed and new_state.slug not in DocumentActionHolder.CLEAR_ACTION_HOLDERS_STATES:

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 think this needs a test around it proving that #6266 has been addressed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

You're right, thanks for catching that. I've added a test.

@rjsparks
rjsparks merged commit 8bc4507 into ietf-tools:main Sep 12, 2023
@jennifer-richards
jennifer-richards deleted the ad-actionholder branch September 12, 2023 14:53
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 16, 2023
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.

Review action holder manipulation on draft-revision submission.

3 participants