Skip to content

Conversation

@juan-malbeclabs
Copy link
Contributor

This pull request adds two new boolean fields, metro_route and route_aliveness, to the Tenant model and propagates these fields throughout the CLI, program logic, and tests. These fields enable or check routing features for tenants and can be set during tenant creation or updated later. The changes ensure these new options are correctly handled in all relevant code paths, including serialization, deserialization, and validation.

Core feature additions:

  • Added metro_route and route_aliveness fields to the Tenant struct, with full support for serialization, deserialization, and display/debug output. [1] [2] [3] [4] [5] [6]

CLI enhancements:

  • Updated CreateTenantCliCommand and UpdateTenantCliCommand to accept metro_route and route_aliveness as command-line arguments, with appropriate defaults and optionality. These values are passed through to the program instruction arguments. [1] [2] [3] [4]

Instruction and argument propagation:

  • Modified tenant creation and update instruction argument structs and processing logic to include and handle the new fields, ensuring they are stored and updated correctly on-chain. [1] [2] [3] [4] [5]

Testing improvements:

Debugging and display:

  • Enhanced Debug and Display implementations for relevant structs to include the new fields for easier troubleshooting and logging. [1] [2] [3]

@juan-malbeclabs juan-malbeclabs enabled auto-merge (squash) February 10, 2026 22:29
@juan-malbeclabs juan-malbeclabs merged commit 00d6bd9 into main Feb 11, 2026
37 of 39 checks passed
@juan-malbeclabs juan-malbeclabs deleted the jo/add_tenant_features branch February 11, 2026 00:02
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.

2 participants