-
Notifications
You must be signed in to change notification settings - Fork 50
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
Avian flu restructure #811
Conversation
Thanks @lmoncla! I haven't tested this out, but a few thoughts (mainly things to do on our side, most pretty easy).
|
I've pushed a branch https://github.com/nextstrain/nextstrain.org/tree/flu-restructure which has this working - perhaps we could force-push it into this PR if people are comfortable with that? It consists of 5 commits.
If the resource listing index is regenerated from this branch then most things¹ are working well. There's a out-of-sync issue we need to be cognizant of whereby we merge this code but don't promote the site, then when the resource listing updates (it's on a daily schedule) then the /pathogens page will show /seasonal-flu & /avian-flu URLs which will all 404, and any ¹ Ahh. I've forgotten to update the error-handling pages for flu ( |
c8bb121
to
1a2ae73
Compare
@lmoncla I've updated this branch - if you wish to check this out locally the following commands should work:
@joverlee521 & @victorlin would you mind reviewing the PR? I think the changes on the server side are complete, but we still need to consider the index getting out-of-sync (see #829) as well as changing the pathogen repos to upload the new filenames. |
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.
Changes here look reasonable to me 👍
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.
Looked through commits and tested a bit locally. Will test more when the PR is updated with the temporary resource index.
1a2ae73
to
9d05894
Compare
Re-pushed with the indexer added as a drop commit. @joverlee521, @victorlin thanks for your reviews so far, very helpful! Tests are failing (I believe) because the zika root-sequence has been deleted in nextstrain/zika#57. I'll make a separate PR to fix that now & we can rebase onto that. Update: #831 Have changed the PR to a "draft" just to avoid a mistake merge before we drop the final commit. |
To match the two salient changes in the previous handful of commits: 1. flu/seasonal/* URLs are now seasonal-flu/* 2. seasonal-flu/* URLs which are invalid (i.e. no dataset) now 404 As part of this I copied `flu_seasonal_*2y.json` on the staging bucket to `seasonal-flu_*2y.json` so we can continue using staging datasets in tests. Includes patches from <#811 (comment)> Co-authored-by: Victor Lin <[email protected]>
9d05894
to
75f89a5
Compare
Merged #831 into master & rebased this PR. Tests should now pass 🤞 |
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.
Clicked around the review app, looks good. One more small suggestion
…r the flu/avian and flu/seasonal structure, and into their own groups. avian-flu and seasonal-flu are now separate entities at the same level as ebola, mpox, and dengue
Our core influenza builds are now shifted to different path prefixes (seasonal-flu and avian-flu). "flu/..." URLs will be redirected before they hit this layer of routing, so they don't need to be handled. The URL `/flu` (with or without a version attached) is also redirected (via this commit) so our core build routing layer no longer needs to handle /flu routes.
I searched for 'seasonal' in the repo and updated where I thought was appropriate
for the move from /flu/... urls to /seasonal-flu/... and /avian-flu/...
To use the full paths rather than paths which will be redirected. I changed to full paths to avoid what I felt was an unnecessary redirect cycle. The upside is faster loading pages, although the actual improvement may be tiny. The downside is decoupling the manifest seasonal-flu default from the splash page tile dataset. (Although I see this as another upside, not a downside.)
The original thinking behind this page was motivated by our /sars-cov-2 page, but the influenza page never progressed past a small set of tiles. (The /sars-cov-2 page has similarly fallen out of date, but that's another story.) The (new) /pathogens page contains all the information that was on /influenza plus a whole lot more, so we redirect here. There is one (minor) functional change, URLs /flu/* and /influenza/* which are not backed by a dataset will now go to our generic 404 page rather than to the influenza page with a 404-like banner. This matches the behaviour of all other "coreBuildPaths" routes which aren't backed by a dataset _except for_ `/ncov/*` URLs See also slack discussion: <https://bedfordlab.slack.com/archives/C7SDVPBLZ/p1713122853502539>
To match the two salient changes in the previous handful of commits: 1. flu/seasonal/* URLs are now seasonal-flu/* 2. seasonal-flu/* URLs which are invalid (i.e. no dataset) now 404 As part of this I copied `flu_seasonal_*2y.json` on the staging bucket to `seasonal-flu_*2y.json` so we can continue using staging datasets in tests. Includes patches from <#811 (comment)> Co-authored-by: Victor Lin <[email protected]>
75f89a5
to
256c0b9
Compare
Rebased onto latest master & @victorlin's fix incorporated. Tomorrow I plan to:
Any final testing prior to then is of course welcome |
256c0b9
to
0948595
Compare
Description of proposed changes
This pull request separates
avian-flu
fromseasonal-flu
and sets them to the be at the same hierarchy.Original structure:
flu/seasonal/
andflu/avian
New structure:
seasonal-flu/
andavian-flu/
This was accomplished by editing 3 files:
data/manifest_core.json
:seasonal-flu
andavian-flu
now exist at the same header level.h5nx
is set as the default foravian-flu
.redirects.js
: I added in redirects for the seasonal flu and avian flu urls. These should be double checked.static-site/src/components/Cards/pathogenCards.js
: added in a pathogen card for Avian Influenza.Checklist
I would like help with testing out these changes to make sure that all the necessary edits have been made, and that the changes work as intended. Specific things that should be double checked are the redirects,
manifest_core.json
structure, and that the splash card works as intended.