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

added files to create demo collaboration #624

Merged
merged 36 commits into from Aug 15, 2023

Conversation

intGRen
Copy link
Contributor

@intGRen intGRen commented Apr 13, 2023

Create demo collaboration that includes server configuration and server import as well as node configurations. These files will create N nodes for single server with a collaboration and organizations as well. Only one user is created.

@frankcorneliusmartin

Copy link
Contributor

@frankcorneliusmartin frankcorneliusmartin left a comment

Choose a reason for hiding this comment

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

vantage6/vantage6/cli/node_config.j2 Outdated Show resolved Hide resolved
vantage6/vantage6/cli/server_config.j2 Outdated Show resolved Hide resolved
vantage6/vantage6/cli/server_config.j2 Outdated Show resolved Hide resolved
vantage6/vantage6/cli/server_import_config.j2 Outdated Show resolved Hide resolved
vantage6/vantage6/cli/setup.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/template_generator.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/template_generator.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/template_generator.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/template_generator.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/template_generator.py Outdated Show resolved Hide resolved
Copy link
Contributor Author

@intGRen intGRen left a comment

Choose a reason for hiding this comment

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

Changes:

  • Removed setup.py
  • Renamed template_generator.py -> dummy_collaboration.py
  • Added trim_blocks and lstrp_blocks options to all the templates
  • Added ticks about argument names in docstrings

…6/vantage6/cli, added 'demo' folder to store the server-import YAML file created, saves node and server configurations in default paths i.e. AppData or ProgramData as well as few other fixes.
docs/server/use.rst Show resolved Hide resolved
vantage6/vantage6/cli/dummy_collaboration.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/dummy_collaboration.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/dummy_collaboration.py Outdated Show resolved Hide resolved
@frankcorneliusmartin
Copy link
Contributor

Also rename the function to vdev create-demo-network

@bartvanb bartvanb changed the base branch from release/3.9 to release/3.11 July 3, 2023 12:07
@intGRen
Copy link
Contributor Author

intGRen commented Jul 4, 2023

  • Org-id 0 -> start count at one in vdev create-demo-network
  • rename demo -> dev. Also for server/node folders
  • shell=True seems to be required on some systems but doesn't work on others. Need to figure out why
  • other nodes with part name demo_ or dev_ may be started/stopped/removed etc in the demo commands. Find a solution for this. Either clarify in docs, add warning to vnode new or find elegant solution so no naming conflicts may arise.

@bartvanb check latest push

@intGRen intGRen closed this Jul 4, 2023
@intGRen intGRen reopened this Jul 4, 2023
Copy link
Member

@bartvanb bartvanb left a comment

Choose a reason for hiding this comment

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

We're getting there. Let's address the comments this afternoon

.gitignore Outdated Show resolved Hide resolved
docs/server/use.rst Show resolved Hide resolved
vantage6-common/vantage6/common/__init__.py Show resolved Hide resolved
vantage6/vantage6/cli/dev.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/dev.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/dev.py Show resolved Hide resolved
vantage6/vantage6/cli/dev.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/dev.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/node.py Show resolved Hide resolved
@bartvanb
Copy link
Member

Fix #625 - just linking this to the right issue

Copy link
Member

@bartvanb bartvanb left a comment

Choose a reason for hiding this comment

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

One further comment: the node dummy datasets are not removed yet

@intGRen
Copy link
Contributor Author

intGRen commented Aug 1, 2023

@frankcorneliusmartin @bartvanb Codacy complains about things we cannot change at the moment...

Copy link
Contributor

@frankcorneliusmartin frankcorneliusmartin left a comment

Choose a reason for hiding this comment

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

Some final comments.

A few other notes, I find it acceptable to release it without these comments but lets create a separate issue for all of these.

  • when running vdev *-demo-network I get all server configurations. I would prefer to only have demo network configurations.
  • vdev remove-demo-network prompts

vantage6/vantage6/cli/dev.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/dev.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/dev.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/dev.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/server.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/utils.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/utils.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/server.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/server.py Outdated Show resolved Hide resolved
vantage6/vantage6/cli/node.py Outdated Show resolved Hide resolved
@bartvanb bartvanb merged commit 9924514 into release/3.11 Aug 15, 2023
2 of 3 checks passed
@bartvanb bartvanb deleted the feature/create-demo-collaboration branch August 15, 2023 12:00
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.

None yet

3 participants