-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(bulk-import): add import source #52
feat(bulk-import): add import source #52
Conversation
Signed-off-by: Dominika Zemanovicova <[email protected]>
Signed-off-by: Dominika Zemanovicova <[email protected]>
Signed-off-by: Dominika Zemanovicova <[email protected]>
Signed-off-by: Dominika Zemanovicova <[email protected]>
/cc @ciiay |
Thank you @dzemanov , your solution looks good 👍 I was able to test the cases where the request returns source of |
@ciiay I have added external provider -
|
Signed-off-by: Dominika Zemanovicova <[email protected]>
Signed-off-by: Dominika Zemanovicova <[email protected]>
workspaces/bulk-import/plugins/bulk-import-backend/src/schema/openapi.json
Outdated
Show resolved
Hide resolved
workspaces/bulk-import/plugins/bulk-import-backend/src/schema/openapi.yaml
Outdated
Show resolved
Hide resolved
workspaces/bulk-import/plugins/bulk-import-backend/src/catalog/types.ts
Outdated
Show resolved
Hide resolved
@dzemanov thanks for the reply. Is this |
Signed-off-by: Dominika Zemanovicova <[email protected]>
Signed-off-by: Dominika Zemanovicova <[email protected]>
Signed-off-by: Dominika Zemanovicova <[email protected]>
Signed-off-by: Dominika Zemanovicova <[email protected]>
@ciiay thanks for mentioning this. I changed 'other' to 'integration'. Entities can be ingested using GH integrations, so that could be multiple configured integrations under:
Or I guess other GH entity provider plugins besides These are all configured in 'app-config', so it makes sense to point the user there. To remove entities ingested by provider, one must remove the provider (which can remove a whole more bunch of entities) / update the repo in a way that provider removes it automatically in the next run, e.g removing |
Signed-off-by: Dominika Zemanovicova <[email protected]>
Hey, I just made a Pull Request!
Adds field
source
toGET /imports
endpoint indicating from which Catalog source the import came from (config
,location
,integration
). In case of duplicates, the first source is taken (in the order ofconfig
,location
,integration
), since there is no way of knowing if entity returned fromlocations
endpoint and fromentities
endpoint is a duplicate or only a location entity.This is needed so UI is able to show correct dialog when deleting bulk-import entities.
(Backstage in
unregister
shows dialog forlocation
entity, even if it is a duplicate for e.g. config. Then after unregistration of this entity, it will show again 'This entity does not seem to originate from a registered location.')Fixes
RHIDP-3931
How to test
app-config.yaml
locations accessible from GH integrations e.g.:Add some location manually via
Create...
-> Register Existing ComponentExample request/response:
Request:
Response:
✔️ Checklist