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

refactor(website): refactor search by extracting re-usable functions #2288

Merged
merged 10 commits into from
Jul 12, 2024

Conversation

theosanderson
Copy link
Member

@theosanderson theosanderson commented Jul 11, 2024

(did this stuff on a plane where I was limited on what tasks I could work on due to lack of internet)

This PR refactors search to extract a lot of re-usable functions. This improves the code in itself by providing smaller named modular functions. It also puts a lot of foundations in place to allow us to fetch search results server side as well as client side to restore SSR.

Note to reviewers: these changes are almost entirely simply moving code rather than fundamentally rewriting it. This is partly to help with visibility of actual changes, in a subsequent PR.

Preview: https://refactor-search.loculus.org/

@theosanderson theosanderson changed the title wip: refactor search towards SSR wip: refactor search towards SSR alongside CSR Jul 11, 2024
@theosanderson theosanderson added the preview Triggers a deployment to argocd label Jul 11, 2024
@theosanderson theosanderson marked this pull request as draft July 11, 2024 22:04
@theosanderson theosanderson changed the title wip: refactor search towards SSR alongside CSR refactor(website): refactor search by extracting re-usable functions Jul 11, 2024
@theosanderson theosanderson marked this pull request as ready for review July 11, 2024 22:44
@theosanderson theosanderson added the review please PR waiting for final review label Jul 12, 2024
@theosanderson theosanderson merged commit 0069ec0 into main Jul 12, 2024
13 checks passed
@theosanderson theosanderson deleted the refactor-search branch July 12, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Triggers a deployment to argocd review please PR waiting for final review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants