Skip to content

fix: Show rfc documents via document_main view - #5919

Merged
jennifer-richards merged 8 commits into
ietf-tools:feat/rfcfrom
jennifer-richards:rfc-document-main
Jul 5, 2023
Merged

fix: Show rfc documents via document_main view#5919
jennifer-richards merged 8 commits into
ietf-tools:feat/rfcfrom
jennifer-richards:rfc-document-main

Conversation

@jennifer-richards

Copy link
Copy Markdown
Member

This restores basic displaying of RFC documents, adding a separate path in the view for the rfc document type. Makes a first pass at removing irrelevant information from the view.

Does not yet fix up the document timeline or rearrange the display of the document stream.

Comment thread ietf/doc/views_doc.py
augment_docs_and_user_with_user_info([doc], request.user)

published = doc.latest_event(type="published_rfc")
published = doc.latest_event(type="published_rfc") # todo rethink this now that published_rfc is on rfc

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.

Correct - this should always be None for a document of type draft. If we want the draft view to say anything about when the rfc it became was published we should be looking through the relationship.

<td class="edit"></td>
<td>
{% if doc.get_state_slug == "rfc" and not snapshot %}
{% if doc.is_rfc %}

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.

In the long run, I think we can remove is_rfc() in favor of looking at type.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ok - I'd started on this road and saw you were going the type route. Decided to stick with this for this PR rather than mixing things up. I'll add switching these to the todo list.

Comment thread ietf/templates/doc/document_info.html
@rjsparks

rjsparks commented Jul 5, 2023

Copy link
Copy Markdown
Member

This looks to be on the right track to me.

@jennifer-richards
jennifer-richards merged commit 5d9d878 into ietf-tools:feat/rfc Jul 5, 2023
@jennifer-richards
jennifer-richards deleted the rfc-document-main branch July 5, 2023 20:30
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 9, 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