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

feat: enable editorial stream adoption and balloting #5011

Merged
merged 12 commits into from
Jan 31, 2023

Conversation

rjsparks
Copy link
Member

@rjsparks rjsparks commented Jan 20, 2023

(edited): I had earlier suggested this become a feature branch. I don't think that's needed now, and propose this just be merged into main.

ietf/secr/sreq/tests.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jan 21, 2023

Codecov Report

Merging #5011 (1f998fd) into main (570bd14) will increase coverage by 0.01%.
The diff coverage is 92.74%.

❗ Current head 1f998fd differs from pull request most recent head 6c9e794. Consider uploading reports for the commit 6c9e794 to get more accurate results

@@            Coverage Diff             @@
##             main    #5011      +/-   ##
==========================================
+ Coverage   88.47%   88.49%   +0.01%     
==========================================
  Files         296      296              
  Lines       39818    40019     +201     
==========================================
+ Hits        35230    35414     +184     
- Misses       4588     4605      +17     
Impacted Files Coverage Δ
ietf/doc/urls.py 100.00% <ø> (ø)
ietf/urls.py 81.08% <ø> (ø)
ietf/doc/utils.py 87.38% <65.38%> (-0.68%) ⬇️
ietf/doc/templatetags/ballot_icon.py 84.56% <83.33%> (-0.27%) ⬇️
ietf/doc/mails.py 96.20% <86.66%> (-0.48%) ⬇️
ietf/doc/templatetags/ietf_filters.py 88.46% <91.66%> (+0.93%) ⬆️
ietf/doc/views_draft.py 91.94% <93.42%> (-0.03%) ⬇️
ietf/ietfauth/utils.py 92.85% <93.75%> (+0.09%) ⬆️
ietf/doc/views_ballot.py 92.86% <95.71%> (+0.31%) ⬆️
ietf/doc/views_doc.py 91.39% <97.22%> (+0.21%) ⬆️
... and 14 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@rjsparks
Copy link
Member Author

Fixes #5000

@rjsparks rjsparks marked this pull request as ready for review January 26, 2023 16:24
Copy link
Member

@jennifer-richards jennifer-richards left a comment

Choose a reason for hiding this comment

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

A few minor questions inline

return can_defer(user, doc)

@register.filter()
def can_request_rfc_publication(user, doc):
Copy link
Member

Choose a reason for hiding this comment

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

I don't see this used anywhere - is it likely to be needed (or perhaps a sign of something omitted)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, it's an artifact of discovering that the view is adding buttons to what's rendered late in the game. I think we should leave this, though, as those views/templates really should get refactored to put the display logic back in the template.

stream_id = 'editorial'

@factory.post_generation
def states(obj, create, extracted, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

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

Does the linter no longer complain about having the first parameter as obj instead of self?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've seen no complaints, and functionally, self makes less sense than obj given that this is a factory, and this is called by the factory engine at untypical times.

Copy link
Member

Choose a reason for hiding this comment

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

Ok - some places have pylint directives on these lines, but I guess they're obsolete

)
for slug, name, order in (
("repl", "Replaced editorial stream document", 0),
("active", "Active editorial stream document", 2),
Copy link
Member

Choose a reason for hiding this comment

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

No order=1 state? I guess it's a side effect of creating then deleting the rsab_review state and doesn't matter aside from the order.

Copy link
Member Author

Choose a reason for hiding this comment

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

order is almost a nuisance field. I think we'll have less confusion with this migration as is. We can make order look prettier (to no good effect otherwise) later.

ietf/doc/views_ballot.py Outdated Show resolved Hide resolved
@rjsparks rjsparks merged commit afac1f8 into ietf-tools:main Jan 31, 2023
@rjsparks rjsparks deleted the rsab-ballots branch January 31, 2023 19:51
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 4, 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.

2 participants