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

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

Merged
merged 3 commits into from
Jan 3, 2024

Conversation

pselkirk
Copy link
Collaborator

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.
Copy link

codecov bot commented Dec 28, 2023

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.

Copy link
Member

@rjsparks rjsparks left a comment

Choose a reason for hiding this comment

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

Small adjustment requested.

ietf/doc/views_draft.py Outdated Show resolved Hide resolved
Copy link
Member

@rjsparks rjsparks left a comment

Choose a reason for hiding this comment

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

One more nit:

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
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
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
9 checks passed
@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