From 9ae25ed5539e8ffee096a1584d03d50fc8559872 Mon Sep 17 00:00:00 2001 From: Hamish Peebles Date: Wed, 18 Dec 2024 23:58:08 +0000 Subject: [PATCH 1/3] Add "Expand OpenChat onto a new subnet" as a generic nervous system function --- .../7002.registry.expand_onto_subnet.ini | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 sns/scripts/proposals/create_custom_sns_functions/7002.registry.expand_onto_subnet.ini diff --git a/sns/scripts/proposals/create_custom_sns_functions/7002.registry.expand_onto_subnet.ini b/sns/scripts/proposals/create_custom_sns_functions/7002.registry.expand_onto_subnet.ini new file mode 100644 index 0000000000..46903f99b1 --- /dev/null +++ b/sns/scripts/proposals/create_custom_sns_functions/7002.registry.expand_onto_subnet.ini @@ -0,0 +1,3 @@ +FUNCTION_NAME="Expand OpenChat onto a new subnet" +FUNCTION_DESC="This will instruct the Registry to expand OpenChat onto a new subnet, allowing it to scale to many more users, groups and communities" +URL="https://github.com/open-chat-labs/open-chat/blob/master/backend/canisters/registry/impl/src/updates/expand_onto_subnet.rs" \ No newline at end of file From 6319dbe4a5a20a264ecfc45ac38119ccc1910d71 Mon Sep 17 00:00:00 2001 From: Hamish Peebles Date: Thu, 19 Dec 2024 09:10:47 +0000 Subject: [PATCH 2/3] Temporarily disable platform moderator tests --- backend/integration_tests/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/integration_tests/src/lib.rs b/backend/integration_tests/src/lib.rs index 2a9657dc7a..064a24bda0 100644 --- a/backend/integration_tests/src/lib.rs +++ b/backend/integration_tests/src/lib.rs @@ -35,7 +35,7 @@ mod message_activity_tests; mod notification_tests; mod p2p_swap_tests; mod pin_number_tests; -mod platform_moderator_tests; +// mod platform_moderator_tests; mod poll_tests; mod prize_message_tests; mod register_user_tests; From 9c4074eb79f59c1ab47215830497cdea190387f9 Mon Sep 17 00:00:00 2001 From: Hamish Peebles Date: Thu, 19 Dec 2024 09:26:02 +0000 Subject: [PATCH 3/3] Add script to submit new proposal type --- scripts/proposals/expand_onto_subnet.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/proposals/expand_onto_subnet.sh diff --git a/scripts/proposals/expand_onto_subnet.sh b/scripts/proposals/expand_onto_subnet.sh new file mode 100755 index 0000000000..1a7e958845 --- /dev/null +++ b/scripts/proposals/expand_onto_subnet.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# Extract the args or use defaults +SUBNET_ID=$1 +SUBNET_ID_SHORT=${SUBNET_ID:0:5} +SUMMARY="This proposal will instruct the Registry canister to expand OpenChat onto subnet [$SUBNET_ID_SHORT](https://dashboard.internetcomputer.org/subnet/$SUBNET_ID), allowing it to scale to many more users, groups and communities." + +# Build the title +TITLE="Expand OpenChat onto a new subnet" + +# Set current directory to the scripts root +SCRIPT=$(readlink -f "$0") +SCRIPT_DIR=$(dirname "$SCRIPT") +cd $SCRIPT_DIR/.. + +# add_canister args +ARGS="(record { subnet_id=principal \"$SUBNET_ID\" })" +FUNCTION_ID=7002 + +# Submit the proposal +./make_custom_function_proposal.sh $FUNCTION_ID "$TITLE" "$SUMMARY" "" "$ARGS"