Skip to content

Conversation

@DragaDoncila
Copy link
Contributor

Prior to this PR our retrieval of github URLs was missing many plugins because it did not inspect the project_url field. This PR updates the logic for fetching this information to include checking both the home_page and project_url. It also retrieves the PyPI url from the PyPI api information as this is likely to be more stable.

In future we should also add a link to the conda URL information (if present), and potentially parse documentation/bugtracker/etc. links for display. However that would require more icons/CSS/layout changes and I'd rather get #75 and #81 done first. I thought this was valuable enough to get it in asap.

@DragaDoncila
Copy link
Contributor Author

Example plugins with missing information before:

  • midi-app-controller
  • napari-3d-counter
  • napari-SAM4IS
    ...etc

@DragaDoncila DragaDoncila requested a review from willingc July 20, 2025 19:23
Copy link
Collaborator

@willingc willingc left a comment

Choose a reason for hiding this comment

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

Makes sense to me. Thanks @DragaDoncila. A few comment nitpicks. Feel free to 🚢

Returns
-------
None
The function modifies the `plugin_data` dictionary in place.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not a huge fan of modifying in-place but this follows the pattern in the repo so no worries.

@DragaDoncila DragaDoncila merged commit d02cd89 into main Jul 20, 2025
5 checks passed
@DragaDoncila DragaDoncila deleted the fix-urls branch July 20, 2025 22:39
willingc added a commit that referenced this pull request Jul 24, 2025
In #84 I introduced a bug with parsing the URLs for plugins that don't
declare a `project_url` field but use the old `homepage` spec. This PR
fixes that bug.

@willingc I'm pretty sure this closes #91 but I guess we'll have to
deploy to be certain 🙄
@DragaDoncila DragaDoncila mentioned this pull request Jul 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants