Skip to content

Add validations into DSN editor form #59

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 3 commits into from
Nov 26, 2018
Merged

Add validations into DSN editor form #59

merged 3 commits into from
Nov 26, 2018

Conversation

codebrain
Copy link
Contributor

@codebrain codebrain commented Nov 19, 2018

Needs backporting to 6.x on approval.

@codebrain codebrain mentioned this pull request Nov 19, 2018
18 tasks
@codebrain codebrain requested a review from russcam November 20, 2018 02:31
Copy link

@russcam russcam left a comment

Choose a reason for hiding this comment

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

I left a comment about null or empty keyname.

Would Control.Validating events help to validate input near the point of entry?


private bool ValidateKeyName(string keyname)
{
if (string.IsNullOrEmpty(keyname))
Copy link

Choose a reason for hiding this comment

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

seems this condition can never be met?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, will remove.

Remove null or whitespace check from Name.
@codebrain
Copy link
Contributor Author

@russcam - yes, we can look at introducing validation error controls at a later date when the complexity warrants it.

Copy link

@russcam russcam left a comment

Choose a reason for hiding this comment

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

The change LGTM.

@codebrain codebrain merged commit 0fe3cc4 into master Nov 26, 2018
@codebrain
Copy link
Contributor Author

Backported changes to 6.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants