Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Workflow] remove unknown Twig function #11268

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

Closed
wants to merge 1 commit into from
Closed

[Workflow] remove unknown Twig function #11268

wants to merge 1 commit into from

Conversation

cawolf
Copy link
Contributor

@cawolf cawolf commented Apr 1, 2019

documented Twig function "workflow_build_transition_blocker_list" is neither implemented in the 4.2 nor the master branch of symfony/symfony and should therefore not be mentioned in the documentation example

documented twig function "workflow_build_transition_blocker_list" is neither implemented in the 4.2 nor the master branch of symfony/symfony
@OskarStark
Copy link
Contributor

Hey @cawolf, thank you for your first contribution to the Symfony Docs! 🎉

It looks like you are right, that this Twig function is not included in Symfony. You can find some more information in symfony/symfony#26689

But this paragraph is about "accessing the blocker message", so removing the whole part and output the transitions name seems not correct.

@lyrixx can you propose a replacement, I am not so deep into this component. Thank you.

@javiereguiluz javiereguiluz requested a review from HeahDude April 5, 2019 10:26
@HeahDude
Copy link
Contributor

HeahDude commented Apr 5, 2019

Yes, the function is more likely to be added in core than be removed here. We'll discuss it tomorrow with @lyrixx to make a final decision about this.

@HeahDude HeahDude added this to the 4.2 milestone Apr 5, 2019
@javiereguiluz javiereguiluz added the ⭐️ EU-FOSSA Hackathon https://symfony.com/blog/the-symfony-and-api-platform-hackathon-is-coming label Apr 6, 2019
@javiereguiluz
Copy link
Member

Ping @HeahDude. Please, don't forget to discuss about this. Thanks!

@lyrixx
Copy link
Member

lyrixx commented Apr 6, 2019

Hello, I will be added in SF 4.3, PR in progress

@fabpot fabpot closed this Apr 6, 2019
fabpot added a commit to symfony/symfony that referenced this pull request Apr 6, 2019
…ction (lyrixx)

This PR was merged into the 4.3-dev branch.

Discussion
----------

[Workflow] Added workflow_transition_blockers twig function

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | symfony/symfony-docs#11268
| License       | MIT
| Doc PR        | symfony/symfony-docs#11268

EUFOSSA

---

also related to #26689

I'm not a big fan of the current name. What should I pick?

cc @javiereguiluz

Commits
-------

a2f9975 [Workflow] Added workflow_transition_blockers twig function
@cawolf
Copy link
Contributor Author

cawolf commented Apr 8, 2019

Thank you guys, appreciate the solution.

@cawolf cawolf deleted the patch-1 branch April 8, 2019 06:48
@wouterj
Copy link
Member

wouterj commented Apr 8, 2019

@cawolf, thank you for creating this PR and testing our code examples!

Please note that the function is now called workflow_transition_blockers instead of workflow_build_transition_blocker_list. As I would like to give you credits for this, is it possible if you create a new PR to rename the function? Otherwise, just comment here and we'll fix it 😃

@cawolf
Copy link
Contributor Author

cawolf commented Apr 9, 2019

@wouterj thank you for the opportunity! I just provided #11375 for you. :)

OskarStark added a commit that referenced this pull request Apr 9, 2019
This PR was submitted for the master branch but it was merged into the 4.2 branch instead (closes #11375).

Discussion
----------

[Workflow] rename Twig function

Hey everyone,

this PR updates the Twig function name to the one which was introduced with symfony/symfony#30908

(relates to #11268)

Commits
-------

930224a fix name of Twig function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐️ EU-FOSSA Hackathon https://symfony.com/blog/the-symfony-and-api-platform-hackathon-is-coming Status: Needs Review Workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.