dominikbraun/timetrace

Include project modules in reports when using the `--project` option

dominikbraun opened this issue · 5 comments

Currently, project modules don't seem to be included when generating a report using timetrace report and specifying a --project filter. The logic for including modules of a project already exists for timetrace list projects - maybe this can be re-used.

So currently report lists projects and their submodules as different rows in the report. I guess the idea is to have the project as parent row with all its submodules? And the filter would look like -p grind@make-coffee filtering for only records belonging to the make-coffee project and grind module, right?

Also this means, that the table needs to be appended with a module column, right?

I opened a PR for this issue.

So currently report lists projects and their submodules as different rows in the report. I guess the idea is to have the project as parent row with all its submodules? And the filter would look like -p grind@make-coffee filtering for only records belonging to the make-coffee project and grind module, right?

Also this means, that the table needs to be appended with a module column, right?

I have yet to think about this tbh, but this doesn't sound bad.

In the PR I have provided some sample outputs to get a touch and feel. I think it somehow makes to provide this in the report sense since timetrace does support modules..

Closed by #143.