Skip to content
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

CSV output: consolidate the header with the fields provided by the JSON output #201

Open
pmarini-nc opened this issue Jan 5, 2024 · 0 comments

Comments

@pmarini-nc
Copy link
Contributor

Run the following command and observe the output:

# occ usage-report:generate --verbose | head -1
"user-id","date as 'c'","assigned quota (5 GB)","used quota (500 MB)",number of files,number of shares,number of uploads,number of downloads

The header of the CSV file contains spaces and other characters ( (, ), ') that should be in general be avoided as they make it trickier to parse and process the data by a program.

In addition it is not clear why the values 5 GB and 500 MB are there.

My proposal is to name the fields in the header of the CSV output as the fields of the JSON output

  • user_id
  • date
  • quota
  • used
  • files
  • shares
  • uploads
  • downloads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant