Skip to content

[BYOS] Reload Catalog Items and integrate with APIs - #1301

Open
mayuka-c wants to merge 5 commits into
IBM:mainfrom
mayuka-c:bundles-catalog-reload
Open

[BYOS] Reload Catalog Items and integrate with APIs#1301
mayuka-c wants to merge 5 commits into
IBM:mainfrom
mayuka-c:bundles-catalog-reload

Conversation

@mayuka-c

@mayuka-c mayuka-c commented Aug 21, 2026

Copy link
Copy Markdown
Member
  • This is required to reload the Catalog Items cache which holds both embedded and custom assets info.
  • Changes to ServiceParams, ComponentParams, ListServices to work with custom assets.

Note:

  • There is nil assignment in cmd package (catalog.NewCatalogProvider(nil)) which would be fixed when we move to using APIs as CLI cannot directly access the assets present inside volumes (Will be taken up later)

Signed-off-by: mayuka-c <Mayuka.C@ibm.com>
…m assets

Signed-off-by: mayuka-c <Mayuka.C@ibm.com>
Signed-off-by: mayuka-c <Mayuka.C@ibm.com>
Signed-off-by: mayuka-c <Mayuka.C@ibm.com>
Signed-off-by: mayuka-c <Mayuka.C@ibm.com>
@mayuka-c
mayuka-c marked this pull request as ready for review August 21, 2026 12:00
@mayuka-c
mayuka-c requested a review from yussufsh August 21, 2026 12:00
ctx := context.Background()

if err := svc.catalogReloader.Reload(ctx); err != nil {
svc.markFailed(ctx, fixedID, err.Error())

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is it marking it as failed in the test?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is just a DB mocking. svc.markFailed calls the method defined at line 1463 which does the update of capturedFailUpdate Status to failed

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am confused. On looking closely, I think this should have been handled in the service itself.
markFailed is getting called in ProcessBundle() but not getting called in ReplaceBundle() and DeleteBundle().
Don't we need to update the row.ID during the replace flow?

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.

2 participants