Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Add utilities to cleanup product listings or components in one-off scenarios#32

Merged
komish merged 1 commit into
opdev:mainfrom
komish:imperative-cleanup
Jun 17, 2025
Merged

Add utilities to cleanup product listings or components in one-off scenarios#32
komish merged 1 commit into
opdev:mainfrom
komish:imperative-cleanup

Conversation

@komish
Copy link
Copy Markdown
Collaborator

@komish komish commented Jun 16, 2025

This PR adds the delete-productlisting and archive-component subcommands.

These commands take individual IDs and do not execute any additional operations other than
toggling the project_status to "archived" (components), and the deleted value to "true" (product listings).

In doing this work, I noticed an error in how product listings are represented on disk. Specifically
product listings would reflect archived components within their cert_project lists. For this reason,
logic has been implemented to replace the value of that field with only the value coming from the call
to receive all active components tied to the listing.

Logs are emitted at the "debug" log-level to capture the replacement.

Signed-off-by: Jose R. Gonzalez komish@flutes.dev

…enarios

Signed-off-by: Jose R. Gonzalez <komish@flutes.dev>
@exe-prow-github-app
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: komish

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@exe-prow-github-app exe-prow-github-app Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 16, 2025
@komish komish merged commit df183ed into opdev:main Jun 17, 2025
1 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant