Skip to content

Synchronize heuristics of verdi work list and verdi calculation list#1819

Merged
sphuber merged 1 commit into
aiidateam:developfrom
sphuber:fix_1804_verdi_work_list_active_condition
Jul 31, 2018
Merged

Synchronize heuristics of verdi work list and verdi calculation list#1819
sphuber merged 1 commit into
aiidateam:developfrom
sphuber:fix_1804_verdi_work_list_active_condition

Conversation

@sphuber
Copy link
Copy Markdown
Contributor

@sphuber sphuber commented Jul 30, 2018

Fixes #1804

The logic for both these commands should be that for default values of
all the options, all entries are shown that are considered 'active'.
The -a/--all flag will cause all entries to be shown, independent
of their 'activeness'. Finally, this list can be limited by passing the
-p/--past-days flag. This issue was indirectly addressed by the move
of verdi to the click infrastructure as now both commands use the
same options, defined in aiida.cmdline.params.option.
This commit just updates the help text of the -a/--all flag to make
sure that it correctly reflects its behavior.

The logic for both these commands should be that for default values of
all the options, all entries are shown that are considered 'active'.
The `-a/--all` flag will cause all entries to be shown, independent
of their 'activeness'. Finally, this list can be limited by passing the
`-p/--past-days` flag. This issue was indirectly addressed by the move
of `verdi` to the `click` infrastructure as now both commands use the
same options, defined in `aiida.cmdline.params.option`.
This commit just updates the help text of the `-a/--all` flag to make
sure that it correctly reflects its behavior.
@sphuber sphuber requested a review from muhrin July 30, 2018 13:31
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #1819 into develop will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1819      +/-   ##
===========================================
- Coverage    66.64%   66.61%   -0.03%     
===========================================
  Files          317      317              
  Lines        32394    32394              
===========================================
- Hits         21588    21579       -9     
- Misses       10806    10815       +9
Impacted Files Coverage Δ
aiida/cmdline/commands/cmd_calculation.py 70.78% <100%> (ø) ⬆️
aiida/cmdline/commands/cmd_work.py 75.46% <100%> (ø) ⬆️
aiida/backends/djsite/globalsettings.py 81.57% <0%> (-5.27%) ⬇️
aiida/backends/djsite/db/models.py 75.34% <0%> (-0.89%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed481c4...6f3471f. Read the comment docs.

@sphuber sphuber merged commit 52b8a57 into aiidateam:develop Jul 31, 2018
@sphuber sphuber deleted the fix_1804_verdi_work_list_active_condition branch July 31, 2018 06:54
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

Successfully merging this pull request may close these issues.

3 participants