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

Improve profile validation #75

Merged
merged 3 commits into from
Apr 5, 2024

Conversation

MarcMichalsky
Copy link
Contributor

I moved the whole profile validation into the CRM_Twingle_Profile class. I also added some new checks for:

  • empty profile names
  • duplicate profile names
  • duplicate project identifiers (selectors)

Spaces are now allowed in profile names.

This PR depends on PRs #72 and #73 because custom ProfileValidationError class is used and profiles are referred to by their id!

CRM/Twingle/Profile.php Outdated Show resolved Hide resolved
CRM/Twingle/Profile.php Outdated Show resolved Hide resolved
@jensschuppe jensschuppe added enhancement New feature or request status:reviewed and tested Code has received thorough review and test and is ready to be committed/merged labels Aug 17, 2023
@jensschuppe jensschuppe added this to the 1.5 milestone Mar 25, 2024
@jensschuppe jensschuppe merged commit 4f845ca into systopia:master Apr 5, 2024
0 of 10 checks passed
@jensschuppe jensschuppe added status:fixed The issue has been resolved (usually by committing/merging code) and removed status:reviewed and tested Code has received thorough review and test and is ready to be committed/merged labels Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request status:fixed The issue has been resolved (usually by committing/merging code)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants