Skip to content

fix: restore display of additional resources.#4956

Merged
rjsparks merged 2 commits intoietf-tools:mainfrom
rjsparks:fix4948
Jan 10, 2023
Merged

fix: restore display of additional resources.#4956
rjsparks merged 2 commits intoietf-tools:mainfrom
rjsparks:fix4948

Conversation

@rjsparks
Copy link
Copy Markdown
Member

@rjsparks rjsparks commented Jan 6, 2023

This fixes #4948

@larseggert - I couldn't find why the lines I removed from document_info.html had come in - the logic in them made no sense - what were they for?

The resources are not showing on the htmlized page because the view always passes in a DocHistory object, which has no docextresource_set. If we're willing to show what the current resources are even when looking at an older document, the view could decorate the history being passed to the template with it (but this may cause confusion).

We may want to consider capturing the external resources each time a DocHistory is created (similar to RelatedDocHistory) at some point in the future.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 6, 2023

Codecov Report

Merging #4956 (c570fa9) into main (0f35f5d) will decrease coverage by 0.00%.
The diff coverage is 94.73%.

@@            Coverage Diff             @@
##             main    #4956      +/-   ##
==========================================
- Coverage   88.47%   88.47%   -0.01%     
==========================================
  Files         296      296              
  Lines       39805    39818      +13     
==========================================
+ Hits        35219    35229      +10     
- Misses       4586     4589       +3     
Impacted Files Coverage Δ
ietf/utils/fields.py 91.20% <75.00%> (-0.37%) ⬇️
ietf/ipr/views.py 87.72% <100.00%> (ø)
ietf/meeting/models.py 86.49% <100.00%> (+0.11%) ⬆️
ietf/meeting/views.py 90.57% <100.00%> (+<0.01%) ⬆️
ietf/doc/views_search.py 89.02% <0.00%> (-0.42%) ⬇️

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

@rjsparks rjsparks merged commit 0cc907f into ietf-tools:main Jan 10, 2023
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 15, 2023
@rjsparks rjsparks deleted the fix4948 branch February 2, 2023 23:22
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.

Additional Resources field missing from datatracker listing for drafts

3 participants