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

Bugfixed/further cli functionality #147

Conversation

AneequeZubair9
Copy link
Contributor

Fixed
Descriptions for the CLI parameters:
--allow-amend: Whether the deployed VM image may be changed and deployed on the same URL
--use-latest: Whether to use latest version of the base docker image
--reproducible: Not Implemented
--internet: Whether the VM should have internet connectivity
--aleph_api: Whether the VM needs access to Aleph messages API

Copy link
Member

@MHHukiewitz MHHukiewitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, minor changes required. Try to use https://black.readthedocs.io/en/stable/ to format all the modified files according to the style as the repository is formatted in

api_server: str = settings.API_HOST,
content,
session: Optional[ClientSession] = None,
api_server: str = settings.API_HOST,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use https://black.readthedocs.io/en/stable/ instead for auto-formatting code.

use_latest: bool,
reproducible: bool,
internet: bool,
aleph_api: bool,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could assign default values here the same as the hardcoded ones before:

Suggested change
aleph_api: bool,
aleph_api: bool = True,

private_key_file: Optional[Path] = typer.Option(
settings.PRIVATE_KEY_FILE, help=help_strings.PRIVATE_KEY_FILE
),
debug: bool = False,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same goes for formatting here

use_latest: bool = typer.Option(True, help='Use latest version of the base docker image'),
reproducible: bool = typer.Option(False, help=' (Not Implemented)--> Check output is same for other nodes'),
internet: bool = typer.Option(True, help='VM should have internet connectivity'),
aleph_api: bool = typer.Option(True, help='VM needs access to Aleph messages AP'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
aleph_api: bool = typer.Option(True, help='VM needs access to Aleph messages AP'),
aleph_api: bool = typer.Option(True, help='VM needs access to Aleph messages'),



if __name__ == '__main __':
unittest.main()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert changes here, we don't use unittest

@MHHukiewitz
Copy link
Member

Changes here need to be reimplemented in aleph-sdk-python. Closed.

@MHHukiewitz MHHukiewitz closed this Mar 6, 2023
@hoh
Copy link
Member

hoh commented Mar 6, 2023

Changes here need to be reimplemented in aleph-sdk-python. Closed.

Everything related to the CLI should be implemented in aleph-client, aleph-sdk-python is limited to libraries.

@MHHukiewitz
Copy link
Member

Superseded by aleph-im/aleph-sdk-python#77 and a future PR including the new parameters in the CLI.

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