-
Notifications
You must be signed in to change notification settings - Fork 400
feat(registry): make input fields in SubnetFeatures of type opt bool in registry canister #10492
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
Open
mraszyk
wants to merge
5
commits into
master
Choose a base branch
from
mraszyk/input-subnet-features-in-registry-canister
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
71b2c69
chore: make input fields in SubnetFeatures of type opt bool in regist…
mraszyk 759654e
changelog
mraszyk b7074ea
Merge branch 'master' into mraszyk/input-subnet-features-in-registry-…
mraszyk f4061ff
rename SubnetFeaturesInput to SubnetFeaturesV2
mraszyk e688a39
rename CreateSubnetArg/UpdateSubnetArg to CreateSubnetPayloadV2/Updat…
mraszyk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,9 +86,15 @@ type ResourceLimits = record { | |
| maximum_state_delta : opt nat64; | ||
| }; | ||
|
|
||
| type CreateSubnetPayload = record { | ||
| type SubnetFeaturesV2 = record { | ||
| canister_sandboxing : opt bool; | ||
| http_requests : opt bool; | ||
| sev_enabled : opt bool; | ||
| }; | ||
|
|
||
| type CreateSubnetPayloadV2 = record { | ||
| unit_delay_millis : nat64; | ||
| features : SubnetFeatures; | ||
| features : SubnetFeaturesV2; | ||
| max_ingress_bytes_per_message : nat64; | ||
| max_ingress_bytes_per_block: opt nat64; | ||
| dkg_dealings_per_block : nat64; | ||
|
|
@@ -494,10 +500,10 @@ type UpdateSshReadOnlyAccessForAllUnassignedNodesPayload = record { | |
| ssh_readonly_keys : vec text; | ||
| }; | ||
|
|
||
| type UpdateSubnetPayload = record { | ||
| type UpdateSubnetPayloadV2 = record { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto. |
||
| unit_delay_millis : opt nat64; | ||
| max_duplicity : opt nat32; | ||
| features : opt SubnetFeatures; | ||
| features : opt SubnetFeaturesV2; | ||
| resource_limits : opt ResourceLimits; | ||
| set_gossip_config_to_default : bool; | ||
| halt_at_cup_height : opt bool; | ||
|
|
@@ -619,7 +625,7 @@ service : { | |
| change_subnet_membership : (ChangeSubnetMembershipPayload) -> (); | ||
| clear_provisional_whitelist : () -> (); | ||
| complete_canister_migration : (CompleteCanisterMigrationPayload) -> (); | ||
| create_subnet : (CreateSubnetPayload) -> (CreateSubnetResponse); | ||
| create_subnet : (CreateSubnetPayloadV2) -> (CreateSubnetResponse); | ||
| delete_subnet : (DeleteSubnetPayload) -> (DeleteSubnetResponse); | ||
| deploy_guestos_to_all_subnet_nodes : ( | ||
| DeployGuestosToAllSubnetNodesPayload | ||
|
|
@@ -670,7 +676,7 @@ service : { | |
| update_ssh_readonly_access_for_all_unassigned_nodes : ( | ||
| UpdateSshReadOnlyAccessForAllUnassignedNodesPayload | ||
| ) -> (); | ||
| update_subnet : (UpdateSubnetPayload) -> (); | ||
| update_subnet : (UpdateSubnetPayloadV2) -> (); | ||
| update_subnet_admins : (UpdateSubnetAdminsPayload) -> (); | ||
| update_unassigned_nodes_config : (UpdateUnassignedNodesConfigPayload) -> (); | ||
| swap_node_in_subnet_directly : (SwapNodeInSubnetDirectlyPayload) -> (); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, do not append "V2". Why not: the new version is "just an evolution" of the old one in a precise and technical way: a person who sends a request based on the previous version will still get the same/desired effect. In such cases, the name is generally kept the same, and there is no special reason to depart from that in this case.