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: remove "AD is watching" state #7960

Merged

Conversation

jennifer-richards
Copy link
Member

@jennifer-richards jennifer-richards commented Sep 20, 2024

Migrates any docs in the watching state to idexists, updating their histories and adding a comment to their event log. Removes all references to the watching state from the code. Removes the create_in_state choice field from the edit_info() view used to begin the IESG process and instead uses the pub-req state exclusively.

Fixes #6316
Fixes #7583

@jennifer-richards
Copy link
Member Author

Created as draft because there are still a bunch of references to the "watching" state in code and tests that need to be dealt with.

@jennifer-richards
Copy link
Member Author

In deciding what to do with docs in the "AD is watching" state (of which there were 60 as of a ~week-old dev DB snapshot), I'm running into #5560 - my first pass at the migration put expired drafts into dead, but it is not clear whether that's the right thing to do. From the discussion there, it seems that perhaps idexists would be better. Relevant, the first few watching drafts I looked at were similar to https://datatracker.ietf.org/doc/draft-murata-kohn-lilley-xml/history/, where the history incorrectly indicates they're in the dead state.

@rjsparks
Copy link
Member

yes, many transitions to dead should now be transitions to idexist. I can't think of any place we should have code choosing the dead state - an AD should have to choose that explicitly.

The code that does is leftover from before we made an idexists state for the draft-iesg state machine

@jennifer-richards jennifer-richards marked this pull request as ready for review September 23, 2024 19:15
by=system_person,
doc=doc,
rev=doc.rev,
desc=f"{draft_iesg_state_type.label} changed to <b>{idexists_state.name}</b> from {watching_state.name}",
Copy link
Member

Choose a reason for hiding this comment

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

cringing at the html tags, but keeping the set of things to mutate later regular was a good call

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 share the cringe

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.

Once guidance to new ads change requested.

This document is in IESG state "Dead". It is unusual to change
this to anything other than "AD is watching", and this should
never be used as a replacement for Begin IESG Processing.
This document is in IESG state "Dead". It is unusual to change this to
Copy link
Member

Choose a reason for hiding this comment

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

Add back the "never be used as a replacement for Begin IESG Processing". (New IESG members assume that moving things into pubreq will have all the side-effects that the form/view for Begin IESG Processing applies, but that's not possible.

We could also consider not allowing the document to make any other transition in this particular case.

rjsparks
rjsparks previously approved these changes Sep 24, 2024
Copy link

codecov bot commented Sep 24, 2024

Codecov Report

Attention: Patch coverage is 96.15385% with 2 lines in your changes missing coverage. Please review.

Project coverage is 88.84%. Comparing base (c7f6bde) to head (b290071).
Report is 82 commits behind head on main.

Files with missing lines Patch % Lines
ietf/doc/views_draft.py 95.65% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7960      +/-   ##
==========================================
+ Coverage   88.78%   88.84%   +0.05%     
==========================================
  Files         296      304       +8     
  Lines       41320    41527     +207     
==========================================
+ Hits        36687    36893     +206     
- Misses       4633     4634       +1     

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

@rjsparks rjsparks merged commit fbcfa19 into ietf-tools:main Sep 24, 2024
7 checks passed
@jennifer-richards jennifer-richards deleted the remove-ad-is-watching-state branch September 24, 2024 18:17
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 2, 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.

Remove “AD is watching” state Remove the "AD is Watching" draft-iesg state.
2 participants