apache / gravitino

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
https://gravitino.apache.org
Apache License 2.0
1.09k stars 343 forks source link

[Improvement] Display audit information on other entities in the Gravitino CLI #5477

Closed justinmclean closed 2 weeks ago

justinmclean commented 2 weeks ago

What would you like to be improved?

Now that audit info is displayed on metalakes, display audit info for other entities.

How should we improve?

See above.

justinmclean commented 2 weeks ago

@orenccl do you want to work on this?

orenccl commented 2 weeks ago

I'd like to take this on. :rocket:

justinmclean commented 2 weeks ago

Thanks, I've assigned it to you.

orenccl commented 2 weeks ago

Hi @justinmclean,

Could I add a function called csvFormat() in Audit.java and use it like this:

String output = audit.csvFormat();

Or, alternatively, something like this:

String output = new CSVFormat(audit).handle();
justinmclean commented 2 weeks ago

You could add that function to a base AuditCommand and have all the other Audit commands extend that.