open-horizon / anax

Horizon agent control system
https://open-horizon.github.io/docs/anax/docs/
Apache License 2.0
70 stars 99 forks source link

Bug: Eventlog cleanup changes #4033

Open dlarson04 opened 2 months ago

dlarson04 commented 2 months ago

Describe the bug.

Seeing a typo in the eventlog help

# hzn eventlog delete --help
usage: hzn eventlog | ev delete | del [<flags>]

Delete the all event logs or those matching the provided selectors.

^^ The "Delete the all event logs" is incorrect...
Also, no a big deal, but can we say "Delete all the event log entries or those... "

Doing something like

# hzn eventlog delete -s agreement_id=e59c8a847b0c8cdc91d5df2d76daeed402d2b65555962e727e88793cfed390c8
Are you sure you want to remove all event logs matching the given selectors? [y/N]: y
Successfully deleted the selected eventlogs.

Here too can we say "Successfully deleted the selected event log entries" instead of eventlogs ?

Or an enhancement:

Or is there anyway you can return how many rows were deleted and include that in the message?

Describe the steps to reproduce the behavior.

No response

Expected behavior.

No response

Screenshots.

No response

Operating Environment

Linux

Additional Information

No response