Hi, does anyone know if it is possible to filter a...
# troubleshoot
m
Hi, does anyone know if it is possible to filter aspects by its aspect name in searchAcrossEntities API? I can't find documentation about filtering aspect
e
Hey Kevin. Search always retrieves whole entities that match the query. Would you mind describing what you are trying to achieve through filtering by aspect names? See if we can guide you to a better endpoint
m
Hi @early-lamp-41924, I was thinking on how to get all EditableSchemaMetadata for any fields. Also I want to do this to every editable aspect types
Also I was thinking on making some kind of automated task to compare each aspect with its editable version, compare the date, and alert if it is newer
e
This doesn’t seem like a search type of query. So basically we want all the latest EditableSchemaMetadata aspect of all entities.
We don’t have such capabilities as of now, but we have been thinking about the
get-all endpoint that does such a thing
m
I see, looking forward to it. Is this already on the roadmap?
e
Very interesting. For the latter, I would suggest creating a consumer of the MetadataAuditEvent kafka topic
every time a new change comes in for the EditableSchemaMetadata aspect, you can query for the non-editable aspect and compare / alert if needed
In that case, you don’t have to loop through all editable aspects every time
m
That's also a good idea, thank you dexter