-
Notifications
You must be signed in to change notification settings - Fork 378
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: Show rfc documents via document_main view #5919
fix: Show rfc documents via document_main view #5919
Conversation
@@ -494,7 +594,7 @@ def document_main(request, name, rev=None, document_html=False): | |||
|
|||
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 |
There was a problem hiding this comment.
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.
@@ -11,15 +11,15 @@ | |||
<th scope="row">{% if document_html %}Document type{% else %}Type{% endif %}</th> | |||
<td class="edit"></td> | |||
<td> | |||
{% if doc.get_state_slug == "rfc" and not snapshot %} | |||
{% if doc.is_rfc %} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
This looks to be on the right track to me. |
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.