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: support iab and iesg statements. Import iab statements. #5895

Merged
merged 19 commits into from
Jun 30, 2023

Conversation

rjsparks
Copy link
Member

@rjsparks rjsparks commented Jun 29, 2023

I think we should merge this into a feature branch first and let the secretariat explore it before merging it to main, but would like some review before we do even that.

@codecov
Copy link

codecov bot commented Jun 29, 2023

Codecov Report

❗ No coverage uploaded for pull request base (feat/iabstatements@53b5e23). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 052e575 differs from pull request most recent head cbfc597. Consider uploading reports for the commit cbfc597 to get more accurate results

@@                  Coverage Diff                  @@
##             feat/iabstatements    #5895   +/-   ##
=====================================================
  Coverage                      ?   88.67%           
=====================================================
  Files                         ?      290           
  Lines                         ?    40166           
  Branches                      ?        0           
=====================================================
  Hits                          ?    35619           
  Misses                        ?     4547           
  Partials                      ?        0           

Copy link
Member

@jennifer-richards jennifer-richards left a comment

Choose a reason for hiding this comment

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

I have a handful of comments, all minor, inline, and optional.

@@ -40,7 +40,7 @@
# 'ietf.context_processors.sql_debug',
# ]

DOCUMENT_PATH_PATTERN = '/assets/ietf-ftp/{doc.type_id}/'
DOCUMENT_PATH_PATTERN = '/assets/ietfdata/doc/{doc.type_id}/'
Copy link
Member

Choose a reason for hiding this comment

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

These sorts of files are still in /assets/ietf-ftp on my system - do we need to update the dev images to match this?

Copy link
Member Author

Choose a reason for hiding this comment

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

There will be other fallout for the dev system, but this needs to happen.

ietf/doc/views_doc.py Show resolved Hide resolved
ietf/doc/models.py Show resolved Hide resolved
ietf/doc/views_statement.py Outdated Show resolved Hide resolved
try:
_ = markdown.markdown(markdown_content)
except Exception as e:
raise forms.ValidationError(f"Markdown processing failed: {e}")
Copy link
Member

Choose a reason for hiding this comment

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

Might be better to log the exception instead of (or in addition to) exposing it to the UI, particularly if you're catching Exception instead of something more specific.

Copy link
Member Author

Choose a reason for hiding this comment

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

well, what Exception might get thrown in this case that isn't "Markdown processing failed"?
It's exposed in the UI so the submitter can edit whatever they're sending in that markdown is blowing up on.

ietf/doc/views_statement.py Show resolved Hide resolved
ietf/doc/views_statement.py Outdated Show resolved Hide resolved
@@ -0,0 +1,29 @@
$(document)
Copy link
Member

Choose a reason for hiding this comment

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

Adding jQuery makes @NGPixel cry. I don't object to duplicating a small bit like this, but better to wrap it in $(...) instead of the deprecated $(document).ready(...).

Copy link
Member Author

Choose a reason for hiding this comment

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

The existing thing that this is just a copy/paste of would also need to be changed.
A later refactor to remove the duplication would be useful.

Copy link
Member

Choose a reason for hiding this comment

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

image

@rjsparks rjsparks changed the base branch from main to feat/iabstatements June 30, 2023 18:09
@rjsparks rjsparks merged commit 44ff9d1 into ietf-tools:feat/iabstatements Jun 30, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 5, 2023
@rjsparks rjsparks deleted the iabstatements branch August 11, 2023 15:10
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.

3 participants