Skip to content

fix: Properly set AD as action holder when submitting to IESG for publication - #6854

Merged
rjsparks merged 3 commits into
ietf-tools:mainfrom
pselkirk:fix-5227
Jan 3, 2024
Merged

fix: Properly set AD as action holder when submitting to IESG for publication#6854
rjsparks merged 3 commits into
ietf-tools:mainfrom
pselkirk:fix-5227

Conversation

@pselkirk

Copy link
Copy Markdown
Contributor

Fixes #5227

The clear intent of to_iesg is that
a) the document AD should be the group AD, if not already set, and b) the document Action Holder should be the document AD; but there was an order-of-operation error,
such that the Action Holder remained empty.

…lication (ietf-tools#5227)

The clear intent of `to_iesg` is that
a) the document AD should be the group AD, if not already set, and
b) the document Action Holder should be the document AD;
but there was an order-of-operation error,
such that the Action Holder remained empty.
@codecov

codecov Bot commented Dec 28, 2023

Copy link
Copy Markdown

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (f3a574c) 88.78% compared to head (2a8ba89) 88.79%.
Report is 15 commits behind head on main.

Files Patch % Lines
ietf/doc/views_draft.py 75.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6854      +/-   ##
==========================================
+ Coverage   88.78%   88.79%   +0.01%     
==========================================
  Files         285      285              
  Lines       40324    40374      +50     
==========================================
+ Hits        35800    35852      +52     
+ Misses       4524     4522       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rjsparks rjsparks left a comment

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.

Small adjustment requested.

Comment thread ietf/doc/views_draft.py Outdated

@rjsparks rjsparks left a comment

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.

One more nit:

Comment thread ietf/doc/views_draft.py Outdated
Comment on lines +567 to +569
e = DocEvent(type=type, by=by, doc=doc, rev=doc.rev, desc=desc)
e.save()
return e

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.

Suggested change
e = DocEvent(type=type, by=by, doc=doc, rev=doc.rev, desc=desc)
e.save()
return e
return DocEvent.objects.create(type=type, by=by, doc=doc, rev=doc.rev, desc=desc)

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.

Or
return doc.docevent_set.create(type=type, by=by, rev=doc.rev, desc=desc)

@rjsparks
rjsparks merged commit b445119 into ietf-tools:main Jan 3, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 7, 2024
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.

Action Holder is empty when draft is in IESG State "Publication Requested"

2 participants