feat(client): allow empty source code testing (#53797)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Shaun Hamilton
2024-06-25 13:27:44 +02:00
committed by GitHub
parent 1b237f3c78
commit 59498e5b09
5 changed files with 65 additions and 36 deletions
@@ -63,7 +63,8 @@ export class SolutionForm extends Component<SolutionFormProps> {
},
required: ['solution'],
isEditorLinkAllowed: false,
isLocalLinkAllowed: false
isLocalLinkAllowed: false,
isSourceCodeLinkRequired: false
};
let formFields = solutionField;
@@ -85,7 +86,8 @@ export class SolutionForm extends Component<SolutionFormProps> {
case challengeTypes.backEndProject:
formFields = backEndProjectFields;
options.required.push('githubLink');
// options.required.push('githubLink');
options.isSourceCodeLinkRequired = true;
options.isLocalLinkAllowed = true;
solutionLink = solutionLink + 'https://3000-project-url.gitpod.io/';
solutionFormID = 'back-end-form';