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

Update references to 'workflow' (from old 'valueName' parameter) #24054

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Update references to 'workflow' (from old 'valueName' parameter)

Before

We have deprecated valueName and the docs are updated to use workflow instead. There is handling to ensure both are passed to alterMailParams and we have updated some places to pass workflow, safe in the knowledge that alterMailParams will get both - but confusingly lots of places still pass valueName

After

valueName is 'almost' gone. There is still the sync code and references in unit tests designed to check what alterMailParams gets.

The api v3 code is a bit tricksy. Where we end up is that

  • the new (workflow, the old valueName and the attempt to have a prettier variable for the api option_value_name) are all accepted
  • workflow is the promoted param

Technical Details

Comments

@civibot
Copy link

civibot bot commented Jul 26, 2022

(Standard links)

@civibot civibot bot added the master label Jul 26, 2022
@eileenmcnaughton
Copy link
Contributor Author

@colemanw are you OK to merge this - it has that excruciatingly thorough level of test cover that we reserve for hypothetically-possible edge cases so there is no impact on extension writers etc

@colemanw colemanw merged commit 4035fca into civicrm:master Aug 17, 2022
@colemanw
Copy link
Member

Yep, looks good.

@colemanw colemanw deleted the msg_workflow branch August 17, 2022 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants