Show npm package dist-tags in package UI #3121
Zak Siddiqui opened 10 hours ago

Problem

When publishing npm packages to the OneDev npm registry, dist-tags are correctly stored and resolvable via npm dist-tag ls, but they are not visible anywhere in the OneDev package UI.

The package page shows versions and their metadata, but there is no section showing which dist-tags (e.g. latest, dev-develop, dev-feature-branch) point to which versions.

Evidence

A build published @abc/[email protected] with tag dev-issue-1519-shared-codec-use-npm-dist-tags. The build log from npm dist-tag ls confirms three tags exist on the registry:

dev-develop: 1.1.1-20260914215547.0
dev-issue-1519-shared-codec-use-npm-dist-tags: 1.1.1-69fba31.0
latest: 1.1.1-20260914154602.0

The npm install @abc/shared-codec@dev-issue-1519-shared-codec-use-npm-dist-tags command also resolves correctly (11 packages installed).

However, when viewing the package in the OneDev UI, none of these dist-tags are shown. Users have no way to see which tags exist or which version each tag points to without CLI access.

Request

Add a dist-tags section to the package detail page in the OneDev UI that shows:

  • Tag name
  • The version each tag points to
  • When the tag was last updated

This would make the npm package management experience in OneDev comparable to other registries (e.g. npmjs.com shows dist-tags on the package versions tab).

  • Service Desk commented 10 hours ago

    OneDev currently does not display npm dist-tags in the package UI. The tags are stored on their target package versions and exposed through the npm registry API, which is why npm dist-tag ls <package> and installs by tag work correctly.

    At present, OneDev stores only the current tag-to-version association; it does not persist a separate last-updated timestamp for each tag. Therefore the requested UI, especially the “last updated” value, would require a product enhancement and additional tag-history metadata rather than enabling an existing view.

    For now, please use npm dist-tag ls <package> (or npm view <package> dist-tags) to inspect the current mappings.

  • Zak Siddiqui changed fields 10 hours ago
    Name Previous Value Current Value
    Type
    Question
    Improvement
  • Zak Siddiqui commented 10 hours ago

    @robin this is critical for us

  • Zak Siddiqui changed fields 6 hours ago
    Name Previous Value Current Value
    Priority
    Normal
    Critical
  • Robin Shen commented 5 hours ago

    @zaakiy I am busy handling customer request and may not able to address this recently.

  • Service Desk commented 5 hours ago

    As the assignee, I am relevant to taking this enhancement forward, but I cannot prepare the implementation because the servicedesk account does not have write-code permission in onedev/server (the issue checkout failed with HTTP 403). Please grant the required permission or reassign the implementation to someone with repository write access.

  • Zak Siddiqui commented 5 hours ago

    @robin any chance you could give me access to cwh?

  • Robin Shen commented 5 hours ago

    @zaakiy sorry i cannot give access to cwh as it means to give user write access to the repository.

1/1
Type
Improvement
Priority
Critical
Assignee
Labels
No labels
Issue Votes (0)
Watchers (5)
Reference
OD-3121
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover