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

Backend to return plugin sections data for home page #1035

Closed
Tracked by #1005
codemonkey800 opened this issue May 8, 2023 · 4 comments
Closed
Tracked by #1005

Backend to return plugin sections data for home page #1035

codemonkey800 opened this issue May 8, 2023 · 4 comments
Assignees
Labels

Comments

@codemonkey800
Copy link
Collaborator

codemonkey800 commented May 8, 2023

Create a backend endpoint to return various sections of the homepage consistently.

@codemonkey800 codemonkey800 mentioned this issue May 8, 2023
28 tasks
@manasaV3
Copy link
Collaborator

manasaV3 commented May 15, 2023

How often do we refresh the sections?

We would utilize the 5-minute cache of API response to handle the data refresh

How do we handle duplicates across the sections? What is the priority for sections?

We build out sections that don't require random sampling first and use that to remove duplicates in the randomly sampled section.

@codemonkey800
Copy link
Collaborator Author

reminder: we're not including theme as part one of the random plugin data types

@manasaV3
Copy link
Collaborator

@manasaV3
Copy link
Collaborator

manasaV3 commented May 22, 2023

The endpoint should be API key protected.

curl -X GET --header "X-API-Key: secret-api-key" https://api.napari-hub.org/plugin/home/sections/foo,bar,baz

The API key will be made accessible to the frontend at runtime.

@richaagarwal richaagarwal moved this from Backlog to Ready in napari hub backlog May 24, 2023
@richaagarwal richaagarwal assigned manasaV3 and unassigned manasaV3 May 26, 2023
@manasaV3 manasaV3 moved this from Ready to In Progress in napari hub backlog Jul 3, 2023
@manasaV3 manasaV3 moved this from In Progress to Pending QA & Release in napari hub backlog Jul 12, 2023
@manasaV3 manasaV3 moved this from Pending QA & Release to Done in napari hub backlog Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

3 participants