Skip to content

Conversation

@tdruez
Copy link
Contributor

@tdruez tdruez commented May 30, 2025

Changes:

  • A new is_locked "Locked inventory" added to the ProductStatus model

When is_locked=True status is set on a Product:

  • In the Product list: A "lock" icon is displayed with "Inventory is locked" as title
  • In the Product details: a warning is displayed on top of the page: "This product version is marked as read-only, preventing any modifications to its inventory."
  • In the Product details: The "Manage" and "Action" dropdown are disabled
  • In the Product details Inventory/Hierarchy tabs: All the "edit" and "delete" link icons are hidden
  • In the Package/Component list and details view, the "Add to Product" will not list the "locked" Products.

tdruez added 4 commits May 30, 2025 11:25
Signed-off-by: tdruez <tdruez@nexb.com>
Also, remove edit permissions when Product is_locked

Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
@DennisClark
Copy link
Member

@tdruez Everything looks good and works fine in Staging, both nexB and Starship. Your help text for the new indicator is excellent. No problems found.

Signed-off-by: tdruez <tdruez@nexb.com>
@tdruez tdruez merged commit b144b89 into main Jun 2, 2025
4 checks passed
@tdruez tdruez deleted the 310-product-is-locked branch June 2, 2025 08:05
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