Skip to content

feat: support iab and iesg statements. Import iab statements.#5895

Merged
rjsparks merged 19 commits intoietf-tools:feat/iabstatementsfrom
rjsparks:iabstatements
Jun 30, 2023
Merged

feat: support iab and iesg statements. Import iab statements.#5895
rjsparks merged 19 commits intoietf-tools:feat/iabstatementsfrom
rjsparks:iabstatements

Conversation

@rjsparks
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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.

# ]

DOCUMENT_PATH_PATTERN = '/assets/ietf-ftp/{doc.type_id}/'
DOCUMENT_PATH_PATTERN = '/assets/ietfdata/doc/{doc.type_id}/'
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.

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
Copy Markdown
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.

Comment thread ietf/doc/management/commands/import_iab_statements.py
Comment thread ietf/doc/views_doc.py
Comment thread ietf/doc/models.py
Comment thread ietf/doc/views_statement.py Outdated
try:
_ = markdown.markdown(markdown_content)
except Exception as e:
raise forms.ValidationError(f"Markdown processing failed: {e}")
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.

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
Copy Markdown
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.

Comment thread ietf/doc/views_statement.py
Comment thread ietf/doc/views_statement.py Outdated
@@ -0,0 +1,29 @@
$(document)
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.

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
Copy Markdown
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
Copy Markdown
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