-
-
Notifications
You must be signed in to change notification settings - Fork 812
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
Remove stray token code #21763
Remove stray token code #21763
Conversation
(Standard links)
|
Note tests are failing - but that doesn;t change the question - since if we don't need these lines we can remove them & fix the tests pretty easily |
6be8780
to
0c7cca8
Compare
@eileenmcnaughton +1 from me - I think it's better not to keep code lying around that isn't being used for anything. Can you update the test? |
I think this part never made it in, and so there is no such token in the dropdown. I don't know if manually inserting such a token is being used anywhere, but since there's a test that covers it it suggests it was intended for core. What was still open was a more thorough treatment of multiple values. Me personally I'm not using the token anywhere. @aydun ? |
Right, it was intended that it would go into core, just it ran out of steam and we weren't certain if the Agree that the code doesn't need to be in core unless we merge the rest - but we should also remove the test in that case. It would also be really good to decide whether we actually should have this functionality in the core tokens - it's certainly really useful for a number of sites I maintain that use activities/cases to manage patient/counsellor relationships and send lots of emails with details including assignees/targets etc. |
Ok - based on the above I'm gonna remove it & the test. I note there is also an extension that is pretty good on this that @demeritcowboy pointed other people to - I don't know if that's the right approach. |
By extension do you mean @mattwire's branch? FYI the test that covers it linked above is not the same test that failed here. I'm not sure what the fail here is about since it's not related. |
0c7cca8
to
ff7de52
Compare
I've updated the PR to remove the code that was supporting those few lines |
I'm not currently using those It was originally for someone else's client but between us we've lost track of who it was for :-( |
@aydun yeah - I think there is still consensus that it would be useful to have 'something' that does that |
ff7de52
to
9090607
Compare
9090607
to
c610622
Compare
this is passing now - we built on the original tests @aydun added so cover is solid |
A quick r-run seems ok for me. Putting merge-ready. |
Overview
Remove stray token code
Before
Code in the Activity_Tokens class and the associated trait to support a feature that I believe was not adopted for core
After
poof
Technical Details
@mattwire @aydun @demeritcowboy @totten
The removed code is, from my recollection, intended to add support for a syntax for multiple activity contacts that we did not, in the end, agree to merge to core (leaving the question of how to support that still unsolved and out of scope for this PR).
So from what I can tell we should be able to remove it & simplify the code base at this point. Is there any reason not to?
Comments