Skip to content

Renaming and reorganizing some verdi commands#2204

Merged
giovannipizzi merged 3 commits into
aiidateam:provenance_redesignfrom
sphuber:fix_2175_verdi_commands_rename
Nov 16, 2018
Merged

Renaming and reorganizing some verdi commands#2204
giovannipizzi merged 3 commits into
aiidateam:provenance_redesignfrom
sphuber:fix_2175_verdi_commands_rename

Conversation

@sphuber
Copy link
Copy Markdown
Contributor

@sphuber sphuber commented Nov 15, 2018

Fixes #2175

giovannipizzi
giovannipizzi previously approved these changes Nov 15, 2018
@giovannipizzi
Copy link
Copy Markdown
Member

There is a weird error RuntimeError: Invalid connection state in the tests

Also, alerting @sphuber and @ConradJohnston to sync on this as here there are some changes on the QueryBuilder and @ConradJohnston is updating the kwargs, so depending on who merges first, at the end we should double check that the QB flags are always properly named.

…erdi calcjob`

The functionality that was in `verdi calculation` mostly applied only to calculation
jobs, and not to any other calculations as generated for example with the calcfunction
decorator. Other sub commands were generic enough to be put in `verdi process`. Here
we move this common functionality such as the commands `show` and `logshow` to the
`verdi process` command, renaming `logshow` to `report`.

The remaining commands that apply to job calculations `inputls`, `inputcat`, `outputls`,
`outputcat`, `gotocomputer` and `cleanworkdir` are moved to `verdi calcjob`. The old
commands in `verdi calculation` are all deprecated and automatically forwarded to the
new commands.
The majority of functionality in `verdi work` that was not already deprecated
and moved to `verdi process`, such as `status` and `report` are generally
applicable to all process types. Therefore it makes sense to move everything
there and deprecate the `verdi work` command.
@coveralls
Copy link
Copy Markdown

coveralls commented Nov 16, 2018

Coverage Status

Coverage increased (+0.02%) to 68.675% when pulling 419a4c5 on sphuber:fix_2175_verdi_commands_rename into 05113f8 on aiidateam:provenance_redesign.

This should serve as the central command to list registered plugins
for the various entry point groups, instead of each verdi command having
its own dedicated sub command. The existing sub commands for `verdi data`
`verdi calculation` and `verdi work` have been deprecated and piped through
to the new `verdi plugin` command.
@sphuber sphuber force-pushed the fix_2175_verdi_commands_rename branch from 669ac7b to 419a4c5 Compare November 16, 2018 09:40
@giovannipizzi giovannipizzi merged commit 9787be8 into aiidateam:provenance_redesign Nov 16, 2018
@sphuber sphuber deleted the fix_2175_verdi_commands_rename branch November 16, 2018 11:45
@sphuber sphuber mentioned this pull request Dec 3, 2018
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