Skip to content

Added check if project name starts with number when creating new proj… #1642

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

Merged
merged 1 commit into from
Mar 29, 2016

Conversation

TsvetanMilanov
Copy link
Contributor

…ect.

Created project name service with method to ensure the project name does not start with number or if it starts with number the client is informed about the consequences when building for Android.
When invalid project name is entered the client gets warning about the problem and a prompt with choice to create the project with invalid name or to enter valid name.
Added integration tests for the prompts logic.

This fixes #1203


ensureValidName(projectName: string, validateOptions?: {force: boolean}): IFuture<void> {
return (() => {
if (validateOptions.force) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be if (validateOptions && validateOptions.force) {

@TsvetanMilanov TsvetanMilanov force-pushed the milanov/fix-create-project-name-validation branch 3 times, most recently from e49ca89 to 618fe3c Compare March 24, 2016 14:15
*/
interface IProjectNameService {
/**
* Ensures the passed project name is valid. If the project name is not valida prompts for actions.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

valida -> valid

…ect.

Created project name service with method to ensure the project name does not start with number or if it starts with number the client is informed about the consequences when building for Android.
When invalid project name is entered the client gets warning about the problem and a prompt with choice to create the project with invalid name or to enter valid name.
Added integration tests for the prompts logic.
Added unit tests for the project name service.
@TsvetanMilanov TsvetanMilanov force-pushed the milanov/fix-create-project-name-validation branch from 618fe3c to ff2ae76 Compare March 25, 2016 17:37
@rosen-vladimirov
Copy link
Contributor

👍 awesome work

@TsvetanMilanov TsvetanMilanov merged commit e3c2b10 into master Mar 29, 2016
@rosen-vladimirov rosen-vladimirov deleted the milanov/fix-create-project-name-validation branch March 29, 2016 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Forbid creating projects with names starting with number
3 participants