-
-
Notifications
You must be signed in to change notification settings - Fork 828
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 test readability, use schema labels for membership tokens #21708
Conversation
(Standard links)
|
6cc385a
to
a59d113
Compare
a59d113
to
4ef5e48
Compare
4ef5e48
to
044c0ad
Compare
test this please |
@colemanw @demeritcowboy can I get a merge on this - it changes tests for readability but has a lot of 'noise' |
' . CRM_Utils_Date::customFormat($this->case['modified_date']) . ' | ||
return 'case.id :1 | ||
case.case_type_id:label :Housing Support | ||
case.subject :Case Subject |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The colon spacing seems odd but not a blocker. I can see that if the token contains a colon it would look just as weird to have it stuck to the left side. Maybe some other character? e.g. case.case_type_id:label | Housing Support
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@demeritcowboy no - you have no idea how much pain it took to get to this point - please don't make me change it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also fyi I originaly had a space either side of the :
- what happened was the IDE kept stripping it & I spent hours staring at strings to figure out how they were different
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
@demeritcowboy yep re the member label |
Overview
Improve test readability, use schema labels for membership tokens
Before
After
above are fixed
Technical Details
You could argue whether the schema labels or the hard-coded labels are more intuitive but I think that question should be phrased as 'should the schema labels be updated' rather than what is being addressed here 'should the labels match the schema titles for the fields'
Comments