Skip to content

Properties popup loading previously loaded values #1495

@imichaelv

Description

@imichaelv

Current Behavior

When switching between versions of a project, and inspecting the properties values, you will see the previous values of the previous version you have opened.

Steps to Reproduce

prerequirements:
create 2 or 3 projects.
version 1.0.0 with property value 123
version 1.0.1 with property value 456
version 1.0.2 with property value 789

  1. navigate to version 1.0.0 of the project.

  2. Click "View Details >"

  3. Click "Properties"

  4. Validate that the value is "123"

  5. Close all modals, and select version 1.0.1

  6. Click "View Details >"

  7. Click "Properties"

  8. Validate that the value is "456" <- This is not, because it still shows 123

  9. Closing all modals and selecting version 1.0.2

  10. repeat the steps

  11. Validate the value that should be "678" but see "456"

Page refresh after switching versions fixes this issue. but this needs to be done every time you switch version.
Sometimes when opening fresh, the properties could be shown as empty, since it hasn't been loaded before

Expected Behavior

When switching versions, the proper property values are expected.
Work around is doing a page-refresh, but this should not be the case.
(I think this is a async component loading issue)

Dependency-Track Frontend Version

4.14.0

Browser

Mozilla Firefox

Browser Version

148.0.2

Operating System

Windows

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions