Skip to content

Allow updating library on a single app.#83

Merged
stavros-k merged 7 commits intomasterfrom
single-app-lib
Dec 1, 2025
Merged

Allow updating library on a single app.#83
stavros-k merged 7 commits intomasterfrom
single-app-lib

Conversation

@stavros-k
Copy link
Contributor

@stavros-k stavros-k commented Nov 27, 2025

Currently, when running the hash generate it does so for all apps.
And if all the apps has the "latest" library set, it will take ~15-20s to complete.
But doing this for only a single app takes <2s.

This helps a lot when doing local dev or CI, as the lib update is part of the CI script I run to render the app.


Also cleans up older libraries, as we only use a single version per app.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds the ability to update the library on a single app instead of updating all apps in the catalog. It introduces optional --train and --app command-line arguments that must be specified together to target a specific app.

Key changes:

  • Added train_name and app_name parameters to the update_catalog_hashes function with validation requiring both to be specified together
  • Implemented filtering logic to process only the specified app when single-app mode is active
  • Changed library cleanup behavior to remove all old library versions instead of just the target version

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@stavros-k stavros-k requested a review from sonicaj November 27, 2025 18:43
@stavros-k stavros-k merged commit 6fb63e3 into master Dec 1, 2025
1 of 2 checks passed
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