Skip to content

OCL Web: hide Changelog icon for the first version of a source (no previous_version) #2517

@filiperochalopes

Description

@filiperochalopes

User story

As a user, I want the Versions UI to show the Changelog icon only when a version has a previous version so I don’t trigger an invalid comparison that causes errors.

Use case

Open the Versions list in OCL Web and navigate changelogs only for versions that can be compared to a prior version.

Requirements

  • In OCL Web (frontend), display the Changelog icon only for versions that have a previous_version.
  • Do not show the Changelog icon for the first version of a source (no previous_version).
  • Prevent triggering changelog generation/comparison from the first version entry.

Acceptance criteria

  • Given a source’s first version has no previous_version, the Versions list does not show a Changelog icon for that version.
  • Given a version has previous_version, the Changelog icon is shown.
  • Users cannot trigger a changelog action for the first version from the UI (avoiding processing errors).

More details (collapsible)

Context
  • This is hard to reproduce locally because it tends to appear in sources with many versions; implement as a UI rule based on presence/absence of previous_version.
  • Goal: avoid invalid compare/changelog calls for the first version (nothing to compare against).

Metadata

Metadata

Labels

signal/low-riskSafe to execute with minimal downsidesignal/quick-winLow complexity, high clarity — easy winsignal/small-scopeLimited to a small part of the codebasesignal/well-specifiedClear requirements and acceptance criteriastage/triagedAI triage complete — scored and classifiedtype/bugSomething is broken

Type

No fields configured for Bug.

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions