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

Add tenant commands #171

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open

Add tenant commands #171

wants to merge 24 commits into from

Conversation

elv-preethi
Copy link
Contributor

@elv-preethi elv-preethi commented Mar 14, 2024

Added commands to:

  • add, update and show tenant_status : active, inactive or frozen.
  • add, remove and show tenant groups: tenant_admin, content_admin, tenant_user_group
  • add and remove tenant contract id and tenant id from given object also from account

Updated commands:

  • space_tenant_create : to add tenant_contract_id, tenant_user_group and set status to active
  • account_set_tenant/ account_create/ group_create: to add tenant contract id and tenant id
  • tenant_show: shows status and tenant_user_group
  • tenant_fix: adds tenant_user_group and adds tenant status if provided

Requires elv-client-js PR: eluv-io/elv-client-js#265

Note:
In ./elv-live command:

  • provision [tenant] : shows tenant_user_group (not able to test in dev environmant, since it required mainObjects)

Commands Added/Changed:

space_tenant_create <tenant_name>         Creates a new tenant account
  <funds>                                   including all supporting access
                                            groups and deployment of contracts.
                                            PRIVATE_KEY must be set for the
                                            space owner.

 tenant_show <tenant> [options]            Show info on this tenant
  tenant_fix <tenant> [options]             Fix tenant
  tenant_fix_suite <tenant>                 Fix old-gen tenant
  <content_admin_address>
  <tenant_user_group_address> [options]
  set_tenant_contract_id <objectId>         Set tenant_contract_id and tenant_id
  <tenantContractId> [options]              to given object when
                                            tenantContractId is provided
  set_tenant_id <objectId> <tenantId>       Set tenant_contract_id and tenant_id
  [options]                                 to given object when tenantId is
                                            provided
  tenant_contract_id <objectId> [options]   Retrieve tenant_contract_id for
                                            given object
  tenant_id <objectId> [options]            Retrieve tenant_id for given object
  tenant_remove <objectId> [options]        Remove tenant_id and
                                            tenant_contract_id for given object
  tenant_group <tenant> [group_type]        Retrieve all of specific group from
                                            tenant
  tenant_set_group <tenant> <group_type>    Set new content admin or user group
  [group_address]
  tenant_remove_group <tenant>              Remove tenant_admin, content_admin
  <group_type> <group_address>              or tenant_user_group address for
                                            give tenant
  tenant_set_status <tenant>                Set tenant status for give tenant
  <tenant_status>
  tenant_status <tenant>                    Get tenant status for give tenant

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.

1 participant