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

fix: Move rfcdiff-latest-json API call from /doc to /api #5155

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

kesara
Copy link
Member

@kesara kesara commented Feb 15, 2023

No description provided.

@kesara kesara force-pushed the fix/move-rfcdiff-latest-json branch 2 times, most recently from 1b3574d to a58a253 Compare February 15, 2023 22:14
@codecov
Copy link

codecov bot commented Feb 15, 2023

Codecov Report

Merging #5155 (57f80bd) into main (e280b25) will increase coverage by 0.03%.
The diff coverage is 82.96%.

❗ Current head 57f80bd differs from pull request most recent head f114b00. Consider uploading reports for the commit f114b00 to get more accurate results

@@            Coverage Diff             @@
##             main    #5155      +/-   ##
==========================================
+ Coverage   88.50%   88.54%   +0.03%     
==========================================
  Files         295      295              
  Lines       40015    40030      +15     
==========================================
+ Hits        35415    35444      +29     
+ Misses       4600     4586      -14     
Impacted Files Coverage Δ
ietf/doc/expire.py 95.31% <ø> (ø)
ietf/doc/urls.py 100.00% <ø> (ø)
ietf/doc/views_ballot.py 92.86% <ø> (ø)
ietf/idindex/index.py 95.05% <ø> (ø)
ietf/ietfauth/utils.py 92.85% <ø> (ø)
ietf/ipr/utils.py 53.96% <0.00%> (ø)
ietf/meeting/views.py 90.70% <ø> (ø)
ietf/review/models.py 91.91% <ø> (ø)
ietf/stats/views.py 93.10% <ø> (ø)
ietf/utils/draft.py 72.26% <0.00%> (+0.51%) ⬆️
... and 34 more

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

@@ -56,6 +57,9 @@
url(r'^version/?$', api_views.version),
# Application authentication API key
url(r'^appauth/[authortools|bibxml]', api_views.app_auth),
# latest versions
url(r'^rfcdiff-latest-json/%(name)s(?:-%(rev)s)?(\.txt|\.html)?/?$' % settings.URL_REGEXPS, api_views.rfcdiff_latest_json),
Copy link
Member

Choose a reason for hiding this comment

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

Sorry to ask for multiple changes, but it occurs to me that this would be better as a permanent redirect in case there are other users of the endpoint we're not yet aware of.

Copy link
Member Author

Choose a reason for hiding this comment

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

No worries, I have updated the ietf/doc/urls.py URLs as permanent redirects.

Old /doc/rfcdiff-latest-json/ URL is changed to a permanent redirect to
/api/doc/rfcdiff-latest-json/
@kesara kesara force-pushed the fix/move-rfcdiff-latest-json branch from a58a253 to f114b00 Compare February 16, 2023 23:04
@rjsparks rjsparks merged commit f70ce3e into ietf-tools:main Feb 17, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 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