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

[TMP] Code sample usage tmp test #2485

Closed
wants to merge 7 commits into from
Closed

Conversation

adriendupuis
Copy link
Contributor

Question Answer
JIRA Ticket
Versions
Edition

Test with #2483

Checklist

  • Text renders correctly
  • Text has been checked with vale
  • Description metadata is up to date
  • Redirects cover removed/moved pages
  • Code samples are working
  • PHP code samples have been fixed with PHP CS fixer
  • Added link to this PR in relevant JIRA ticket or code PR

@adriendupuis adriendupuis added Wait with merge PRs that shouldn't be merged instantly Work in progress labels Aug 30, 2024
Copy link

code_samples/ change report

Before (on target branch)After (in current PR)

code_samples/workflow/custom_workflow/config/packages/workflows.yaml


code_samples/workflow/custom_workflow/config/packages/workflows.yaml

docs/content_management/workflow/add_custom_workflow_action.md@19:``` yaml hl_lines="15-18"
docs/content_management/workflow/add_custom_workflow_action.md@20:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 0, 5) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 23, 36) =]]
docs/content_management/workflow/add_custom_workflow_action.md@19:``` yaml hl_lines="16-19"
docs/content_management/workflow/add_custom_workflow_action.md@20:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 0, 5) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 23, 37) =]]
docs/content_management/workflow/add_custom_workflow_action.md@21:```

001⫶ibexa:
002⫶ system:
003⫶ default:
004⫶ workflows:
005⫶ custom_workflow:
006⫶ transitions:
007⫶ to_legal:
008⫶ from: [draft]
009⫶ to: [legal]
010⫶ label: To legal
011⫶ color: '#8888ba'
012⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#notice'
013⫶ reviewers:
014⫶ required: true
docs/content_management/workflow/add_custom_workflow_action.md@21:```

001⫶ibexa:
002⫶ system:
003⫶ default:
004⫶ workflows:
005⫶ custom_workflow:
006⫶ transitions:
007⫶ to_legal:
008⫶ from: [draft]
009⫶ to: [legal]
010⫶ label: To legal
011⫶ color: '#8888ba'
012⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#notice'
013⫶ reviewers:
014⫶ required: true
015⫸                            actions:
016⫸ legal_transition_action:
017⫸ data:
018⫸ message: "Sent to the legal department"
015⫶                                user_group: 13
016⫸ actions:
017⫸ legal_transition_action:
018⫸ data:
019⫸ message: "Sent to the legal department"

docs/content_management/workflow/add_custom_workflow_action.md@50:``` yaml hl_lines="10 11"

docs/content_management/workflow/add_custom_workflow_action.md@50:``` yaml hl_lines="10 11"
docs/content_management/workflow/add_custom_workflow_action.md@51:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 42, 53) =]]
docs/content_management/workflow/add_custom_workflow_action.md@51:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 43, 54) =]]
docs/content_management/workflow/add_custom_workflow_action.md@52:```

001⫶ approved_by_legal:
002⫶ from: [legal]
003⫶ to: [done]
004⫶ label: Approved by legal
005⫶ color: '#88ad88'
006⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#checkbox'
007⫶ actions:
008⫶ publish: ~
009⫶ approved_transition_action:
010⫸ condition:
011⫸ - result.legal_transition_action == true

docs/content_management/workflow/workflow.md@24:``` yaml
docs/content_management/workflow/add_custom_workflow_action.md@52:```

001⫶ approved_by_legal:
002⫶ from: [legal]
003⫶ to: [done]
004⫶ label: Approved by legal
005⫶ color: '#88ad88'
006⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#checkbox'
007⫶ actions:
008⫶ publish: ~
009⫶ approved_transition_action:
010⫸ condition:
011⫸ - result.legal_transition_action == true

docs/content_management/workflow/workflow.md@24:``` yaml
docs/content_management/workflow/workflow.md@25:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 0, 32) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 37, 50) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 53, 61) =]]
docs/content_management/workflow/workflow.md@25:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 0, 33) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 38, 51) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 54, 62) =]]
docs/content_management/workflow/workflow.md@26:```

001⫶ibexa:
002⫶ system:
003⫶ default:
004⫶ workflows:
005⫶ custom_workflow:
006⫶ name: Custom Workflow
007⫶ matchers:
008⫶ content_type: [article, folder]
009⫶ content_status: [draft]
010⫶ stages:
011⫶ draft:
012⫶ label: Draft
013⫶ color: '#f15a10'
014⫶ legal:
015⫶ label: Legal
016⫶ color: '#5a10f1'
017⫶ actions:
018⫶ notify_reviewer: ~
019⫶ done:
020⫶ label: Done
021⫶ color: '#301203'
022⫶ last_stage: true
023⫶ initial_stage: draft
024⫶ transitions:
025⫶ to_legal:
026⫶ from: [draft]
027⫶ to: [legal]
028⫶ label: To legal
029⫶ color: '#8888ba'
030⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#notice'
031⫶ reviewers:
032⫶ required: true
docs/content_management/workflow/workflow.md@26:```

001⫶ibexa:
002⫶ system:
003⫶ default:
004⫶ workflows:
005⫶ custom_workflow:
006⫶ name: Custom Workflow
007⫶ matchers:
008⫶ content_type: [article, folder]
009⫶ content_status: [draft]
010⫶ stages:
011⫶ draft:
012⫶ label: Draft
013⫶ color: '#f15a10'
014⫶ legal:
015⫶ label: Legal
016⫶ color: '#5a10f1'
017⫶ actions:
018⫶ notify_reviewer: ~
019⫶ done:
020⫶ label: Done
021⫶ color: '#301203'
022⫶ last_stage: true
023⫶ initial_stage: draft
024⫶ transitions:
025⫶ to_legal:
026⫶ from: [draft]
027⫶ to: [legal]
028⫶ label: To legal
029⫶ color: '#8888ba'
030⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#notice'
031⫶ reviewers:
032⫶ required: true
033⫶                        back_to_draft:
034⫶ reverse: to_legal
035⫶ label: Back to draft
036⫶ color: '#cb8888'
037⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#back'
038⫶ approved_by_legal:
039⫶ from: [legal]
040⫶ to: [done]
041⫶ label: Approved by legal
042⫶ color: '#88ad88'
043⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#checkbox'
044⫶ actions:
045⫶ publish: ~
046⫶ done:
047⫶ from: [draft]
048⫶ to: [done]
049⫶ label: Done
050⫶ color: '#88ad88'
051⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#checkbox'
052⫶ actions:
053⫶ publish: ~
033⫶                                user_group: 13
034⫶ back_to_draft:
035⫶ reverse: to_legal
036⫶ label: Back to draft
037⫶ color: '#cb8888'
038⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#back'
039⫶ approved_by_legal:
040⫶ from: [legal]
041⫶ to: [done]
042⫶ label: Approved by legal
043⫶ color: '#88ad88'
044⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#checkbox'
045⫶ actions:
046⫶ publish: ~
047⫶ done:
048⫶ from: [draft]
049⫶ to: [done]
050⫶ label: Done
051⫶ color: '#88ad88'
052⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#checkbox'
053⫶ actions:
054⫶ publish: ~

docs/content_management/workflow/workflow.md@40:``` yaml
docs/content_management/workflow/workflow.md@41:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 6, 9) =]]
docs/content_management/workflow/workflow.md@42:```

001⫶ matchers:
002⫶ content_type: [article, folder]
003⫶ content_status: [draft]

docs/content_management/workflow/workflow.md@52:``` yaml hl_lines="13 14"
docs/content_management/workflow/workflow.md@53:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 9, 23) =]]
docs/content_management/workflow/workflow.md@54:```

001⫶ stages:
002⫶ draft:
003⫶ label: Draft
004⫶ color: '#f15a10'
005⫶ legal:
006⫶ label: Legal
007⫶ color: '#5a10f1'
008⫶ actions:
009⫶ notify_reviewer: ~
010⫶ done:
011⫶ label: Done
012⫶ color: '#301203'
013⫸ last_stage: true
014⫸ initial_stage: draft

docs/content_management/workflow/workflow.md@63:``` yaml hl_lines="3 4 9"

docs/content_management/workflow/workflow.md@40:``` yaml
docs/content_management/workflow/workflow.md@41:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 6, 9) =]]
docs/content_management/workflow/workflow.md@42:```

001⫶ matchers:
002⫶ content_type: [article, folder]
003⫶ content_status: [draft]

docs/content_management/workflow/workflow.md@52:``` yaml hl_lines="13 14"
docs/content_management/workflow/workflow.md@53:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 9, 23) =]]
docs/content_management/workflow/workflow.md@54:```

001⫶ stages:
002⫶ draft:
003⫶ label: Draft
004⫶ color: '#f15a10'
005⫶ legal:
006⫶ label: Legal
007⫶ color: '#5a10f1'
008⫶ actions:
009⫶ notify_reviewer: ~
010⫶ done:
011⫶ label: Done
012⫶ color: '#301203'
013⫸ last_stage: true
014⫸ initial_stage: draft

docs/content_management/workflow/workflow.md@63:``` yaml hl_lines="3 4 9"
docs/content_management/workflow/workflow.md@64:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 23, 30) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 37, 42) =]]
docs/content_management/workflow/workflow.md@64:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 23, 30) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 38, 43) =]]
docs/content_management/workflow/workflow.md@65:```

001⫶ transitions:
002⫶ to_legal:
003⫸ from: [draft]
004⫸ to: [legal]
005⫶ label: To legal
006⫶ color: '#8888ba'
007⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#notice'
008⫶ back_to_draft:
009⫸ reverse: to_legal
010⫶ label: Back to draft
011⫶ color: '#cb8888'
012⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#back'

docs/content_management/workflow/workflow.md@65:```

001⫶ transitions:
002⫶ to_legal:
003⫸ from: [draft]
004⫸ to: [legal]
005⫶ label: To legal
006⫶ color: '#8888ba'
007⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#notice'
008⫶ back_to_draft:
009⫸ reverse: to_legal
010⫶ label: Back to draft
011⫶ color: '#cb8888'
012⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#back'

docs/content_management/workflow/workflow.md@77:``` yaml hl_lines="8 9"
docs/content_management/workflow/workflow.md@78:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 23, 32) =]]
docs/content_management/workflow/workflow.md@79:```
docs/content_management/workflow/workflow.md@78:``` yaml hl_lines="8 9"
docs/content_management/workflow/workflow.md@79:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 23, 32) =]]
docs/content_management/workflow/workflow.md@80:```

001⫶ transitions:
002⫶ to_legal:
003⫶ from: [draft]
004⫶ to: [legal]
005⫶ label: To legal
006⫶ color: '#8888ba'
007⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#notice'
008⫸ reviewers:
009⫸ required: true


001⫶ transitions:
002⫶ to_legal:
003⫶ from: [draft]
004⫶ to: [legal]
005⫶ label: To legal
006⫶ color: '#8888ba'
007⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#notice'
008⫸ reviewers:
009⫸ required: true

docs/content_management/workflow/workflow.md@85:``` yaml hl_lines="4 5"
docs/content_management/workflow/workflow.md@86:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 13, 18) =]]
docs/content_management/workflow/workflow.md@87:```
docs/content_management/workflow/workflow.md@86:``` yaml hl_lines="4 5"
docs/content_management/workflow/workflow.md@87:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 13, 18) =]]
docs/content_management/workflow/workflow.md@88:```

001⫶ legal:
002⫶ label: Legal
003⫶ color: '#5a10f1'
004⫸ actions:
005⫸ notify_reviewer: ~


001⫶ legal:
002⫶ label: Legal
003⫶ color: '#5a10f1'
004⫸ actions:
005⫸ notify_reviewer: ~

docs/content_management/workflow/workflow.md@109:``` yaml hl_lines="7 8"
docs/content_management/workflow/workflow.md@110:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 53, 61) =]]
docs/content_management/workflow/workflow.md@111:```
docs/content_management/workflow/workflow.md@110:``` yaml hl_lines="7 8"
docs/content_management/workflow/workflow.md@111:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 54, 62) =]]
docs/content_management/workflow/workflow.md@112:```

001⫶ done:
002⫶ from: [draft]
003⫶ to: [done]
004⫶ label: Done
005⫶ color: '#88ad88'
006⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#checkbox'
007⫸ actions:
008⫸ publish: ~


001⫶ done:
002⫶ from: [draft]
003⫶ to: [done]
004⫶ label: Done
005⫶ color: '#88ad88'
006⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#checkbox'
007⫸ actions:
008⫸ publish: ~

docs/content_management/workflow/workflow.md@118:``` yaml
docs/content_management/workflow/workflow.md@119:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 0, 4) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 62, 66) =]]
docs/content_management/workflow/workflow.md@120:```
docs/content_management/workflow/workflow.md@119:``` yaml
docs/content_management/workflow/workflow.md@120:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 0, 4) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 63, 67) =]]
docs/content_management/workflow/workflow.md@121:```

001⫶ibexa:
002⫶ system:
003⫶ default:
004⫶ workflows:
005⫶ quick_review:
006⫶ name: Quick Review
007⫶ matchers:
008⫶ content_type: []


001⫶ibexa:
002⫶ system:
003⫶ default:
004⫶ workflows:
005⫶ quick_review:
006⫶ name: Quick Review
007⫶ matchers:
008⫶ content_type: []

docs/content_management/workflow/workflow.md@184:``` yaml hl_lines="14 27"
docs/content_management/workflow/workflow.md@185:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 23, 42) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 54, 62) =]]
docs/content_management/workflow/workflow.md@186:```
docs/content_management/workflow/workflow.md@185:``` yaml hl_lines="15 28"
docs/content_management/workflow/workflow.md@186:[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 23, 43) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 55, 63) =]]
docs/content_management/workflow/workflow.md@187:```

001⫶ transitions:
002⫶ to_legal:
003⫶ from: [draft]
004⫶ to: [legal]
005⫶ label: To legal
006⫶ color: '#8888ba'
007⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#notice'
008⫶ reviewers:
009⫶ required: true

001⫶ transitions:
002⫶ to_legal:
003⫶ from: [draft]
004⫶ to: [legal]
005⫶ label: To legal
006⫶ color: '#8888ba'
007⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#notice'
008⫶ reviewers:
009⫶ required: true
010⫶                            actions:
011⫶ legal_transition_action:
012⫶ data:
013⫶ message: "Sent to the legal department"
014⫸ validate: true
015⫶ back_to_draft:
016⫶ reverse: to_legal
017⫶ label: Back to draft
018⫶ color: '#cb8888'
019⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#back'
020⫶ from: [draft]
021⫶ to: [done]
022⫶ label: Done
023⫶ color: '#88ad88'
024⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#checkbox'
025⫶ actions:
026⫶ publish: ~
027⫸ validate: true
010⫶                                user_group: 13
011⫶ actions:
012⫶ legal_transition_action:
013⫶ data:
014⫶ message: "Sent to the legal department"
015⫸ validate: true
016⫶ back_to_draft:
017⫶ reverse: to_legal
018⫶ label: Back to draft
019⫶ color: '#cb8888'
020⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#back'
021⫶ from: [draft]
022⫶ to: [done]
023⫶ label: Done
024⫶ color: '#88ad88'
025⫶ icon: '/bundles/ibexaplatformicons/img/all-icons.svg#checkbox'
026⫶ actions:
027⫶ publish: ~
028⫸ validate: true


Download colorized diff

@adriendupuis
Copy link
Contributor Author

Nice diff output showing that everything is correctly updated.

@adriendupuis adriendupuis mentioned this pull request Aug 30, 2024
13 tasks
@adriendupuis adriendupuis deleted the reviewer_user_group_ad_tmp branch August 30, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Wait with merge PRs that shouldn't be merged instantly Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants