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

Simplify download URLs generated by Download button (exclude empty fields) #3625

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

theosanderson
Copy link
Member

@theosanderson theosanderson commented Feb 5, 2025

Fixes #3624

https://theosanderson-fix-downloa.loculus.org/

Update generateDownloadUrl method to exclude empty parameters from the generated download URLs.

  • Modify website/src/components/SearchPage/DownloadDialog/DownloadUrlGenerator.ts to check for empty values before appending them to the URL.
  • Add a test case in website/src/components/SearchPage/DownloadDialog/DownloadDialog.spec.tsx to verify that empty parameters are excluded from the generated download URLs.

For more details, open the Copilot Workspace session.

Fixes #3624

Update `generateDownloadUrl` method to exclude empty parameters from the generated download URLs.

* Modify `website/src/components/SearchPage/DownloadDialog/DownloadUrlGenerator.ts` to check for empty values before appending them to the URL.
* Add a test case in `website/src/components/SearchPage/DownloadDialog/DownloadDialog.spec.tsx` to verify that empty parameters are excluded from the generated download URLs.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/loculus-project/loculus/issues/3624?shareId=XXXX-XXXX-XXXX-XXXX).
@theosanderson theosanderson added the preview Triggers a deployment to argocd label Feb 5, 2025
@theosanderson theosanderson changed the title Simplify download URLs generated by Download button Simplify download URLs generated by Download button (exclude empty fields) Feb 5, 2025
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify download URLs generated by Download button (exclude empty fields)
1 participant