Skip to content

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

@pmarini-nc

Description

@pmarini-nc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions