-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Ingest Manager] Removal of requirements in packages breaks UI #70453
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
I don't know for sure what broke in Kibana, but the old golang struct https://github.com/elastic/package-registry/pull/574/files#diff-3c2c8ec3d107f7be6f8119cde040fbc0L63 says there will always be a So
or
but not missing entirely |
This is change is live on https://epr.elastic.co/ So it can be reproduced most places. Here's a failing dev cluster |
The fix for it is here. The part I missed when removing |
I don't understand what you mean by empty field. Can you say more or give a code sample? I'm new to golang but the TS types
match my understanding of the struct https://github.com/elastic/package-registry/blob/33c9f9df5881a879ced083cc626ba973f928b32d/util/package.go#L63 This seems like a breaking change on the registry response which means it impacts Kibana, but perhaps I'm misreading the code. Along those lines, I'll open a PR to update the OpenAPI spec |
@jfsiii You are correct here. It was kind of a "bug" on the registry side that it was required, agree its a breaking change. |
In elastic/package-registry#574 requirements were renamed to conditions. I did not expect this to break the UI as requirements could also be empty / missing. But it seems it breaks the UI when accessing an integrations details page.
Removing some code related to requirements solves the issue.
My suggestion for 7.9 is to remove the code and UI completely and we rethink it moving forward.
To reproduce it, you need to check out the registry from master and run it locally.
The text was updated successfully, but these errors were encountered: