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

update max name length in solutions #3549

Merged
merged 6 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/grid_client/src/modules/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { IsAlphanumericExpectUnderscore } from "../helpers";
import { Deployment } from "../zos/deployment";
import { ZdbModes } from "../zos/zdb";
import { blockchainType } from "./blockchainInterface";
const NameLength = 50;
const NameLength = 35;
const FarmNameLength = 40;

enum ContractStates {
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/components/caprover_worker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
:value="$props.modelValue.name"
#="{ props }"
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/components/k8s_worker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.isAlphanumeric('Name should consist of alphabets & numbers only.'),
validators.minLength('Name minimum length is 2 chars.', 2),
validators.maxLength('Name max length is 50 chars.', 50),
validators.maxLength('Name max length is 35 chars.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/freeflow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
validators.required('Name is required.'),
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
validators.minLength('Name must be at least 4 characters.', 4),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/full_vm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down Expand Up @@ -105,7 +105,7 @@
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Disk name minimum length is 2 characters.', 2),
validators.isAlphanumeric('Disk name only accepts alphanumeric characters.'),
validators.maxLength('Disk name maximum length is 50 characters.', 50),
validators.maxLength('Disk name maximum length is 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/jenkins.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/micro_vm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down Expand Up @@ -131,7 +131,7 @@
}),
validators.minLength('Disk name minimum length is 2 characters.', 2),
validators.isAlphanumeric('Disk name only accepts alphanumeric characters.'),
validators.maxLength('Disk name maximum length is 50 characters.', 50),
validators.maxLength('Disk name maximum length is 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_algorand.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_casperlabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_discourse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_funkwhale.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_jitsi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
name => validators.isAlpha('Name must start with alphabet char.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_kubernetes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
validators.minLength('Name minimum length is 2 chars.', 2),
validators.maxLength('Name max length is 50 chars.', 50),
validators.maxLength('Name max length is 35 chars.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_mattermost.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_nextcloud.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_nostr.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_owncloud.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_peertube.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_presearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_staticwebsite.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_subsquid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_taiga.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_umbrel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_wordpress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tfrobot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
validators.IsAlphanumericExpectUnderscore('Name should consist of letters ,numbers and underscores only.'),
(name: string) => validators.isAlpha('Name must start with an alphabetical character.')(name[0]),
validators.minLength('Name must be at least 2 characters.', 2),
validators.maxLength('Name cannot exceed 50 characters.', 50),
validators.maxLength('Name cannot exceed 35 characters.', 35),
]"
#="{ props }"
>
Expand Down
Loading