Skip to content

Commit

Permalink
update max name length in solutions (#3549)
Browse files Browse the repository at this point in the history
* update max name length from 50 to 35

* change subdomain name max length

* update max name length to 15 in all solutions that require domain

* change subdomain max length to 35
  • Loading branch information
amiraabouhadid authored Nov 4, 2024
1 parent 52a5a70 commit a080c4d
Show file tree
Hide file tree
Showing 27 changed files with 29 additions and 29 deletions.
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.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
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ export default {
validators.isAlphanumeric("Subdomain should consist of letters and numbers only."),
(subdomain: string) => validators.isAlpha("Subdomain must start with an alphabet char.")(subdomain[0]),
validators.minLength("Subdomain must be at least 4 characters.", 4),
(subdomain: string) => validators.maxLength("Subdomain cannot exceed 50 characters.", 50)(subdomain),
(subdomain: string) => validators.maxLength("Subdomain cannot exceed 35 characters.", 35)(subdomain),
];
const portRules = [validators.required("Port is required."), validators.isPort("Please provide a valid port.")];
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 15 characters.', 15),
]"
#="{ 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 @@ -104,7 +104,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 15 characters.', 15),
]"
#="{ 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 @@ -130,7 +130,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 15 characters.', 15),
]"
#="{ 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 15 characters.', 15),
]"
#="{ props }"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_domains.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
validators.isAlphanumeric('Subdomain should consist of letters and numbers only.'),
subdomain => validators.isAlpha('Subdomain must start with alphabet char.')(subdomain[0]),
validators.minLength('Subdomain must be at least 4 characters.', 4),
subdomain => validators.maxLength('Subdomain cannot exceed 50 characters.', 50)(subdomain),
subdomain => validators.maxLength('Subdomain cannot exceed 35 characters.', 35)(subdomain),
]"
:async-rules="[validateSubdomain]"
#="{ 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 15 characters.', 15),
]"
#="{ 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 15 characters.', 15),
]"
#="{ 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 15 characters.', 15),
]"
#="{ 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 15 characters.', 15),
]"
#="{ 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 15 characters.', 15),
]"
#="{ 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 15 characters.', 15),
]"
#="{ 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 15 characters.', 15),
]"
#="{ 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 15 characters.', 15),
]"
#="{ 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 15 characters.', 15),
]"
#="{ 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 15 characters.', 15),
]"
#="{ 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

0 comments on commit a080c4d

Please sign in to comment.