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

refactor: Refactor build_file_urls() #5886

Conversation

jennifer-richards
Copy link
Member

No description provided.

# As of 2022-12-14, there are 1463 Document and 3136 DocHistory records with type='draft' and rev=''.
# All of these are in the rfc state and are covered by the above cases.
log.unreachable('2022-12-14')
if doc.type_id == "draft":
Copy link
Member

Choose a reason for hiding this comment

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

Why this if?

Copy link
Member Author

Choose a reason for hiding this comment

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

It recreates the original logic (unless I blew it). This else block now handles what used to be the short-circuit for non-draft/non-rfc documents. This if causes it to also log the unreachable should a draft without a rev get through.

Copy link
Member

Choose a reason for hiding this comment

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

Ah - its because of the refactor of the original L1003-1004. Got it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that seemed just begging to skew out of sync with the if cases and turn into a bug later.

@jennifer-richards jennifer-richards merged commit 877bc02 into ietf-tools:feat/rfc Jun 27, 2023
1 check passed
@jennifer-richards jennifer-richards deleted the build-file-urls-refactor branch June 27, 2023 14:14
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 1, 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