This repository was archived by the owner on May 10, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Feature - Workflows for com_modules #10
Open
YatharthVyas
wants to merge
66
commits into
joomla-projects:dev
Choose a base branch
from
YatharthVyas:feature-module-workflow
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 56 commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
182d410
filter workflow associations
YatharthVyas 07e5992
add module workflow menu tab
YatharthVyas c42485e
language constants
YatharthVyas 964805b
modules access perms xml
YatharthVyas 833b07f
show integrations tag in options
YatharthVyas a9b75c0
filter by stage
YatharthVyas e06a805
show workflows field in a new tab in com_modules
YatharthVyas 07fcb40
functions used by workflow plugins
YatharthVyas 688e0f3
workflows in modules helper
YatharthVyas c353e35
call workflow events on save and delete
YatharthVyas 42c5a02
include workflows in modules query
YatharthVyas 4743efb
call workflow plugin
YatharthVyas fe456fb
display workflow field in batch_body
YatharthVyas 6ef70a3
fix the language constant for sidebar
YatharthVyas 0f2f9c5
display workflow in all modules view
YatharthVyas 3c642db
installation sql
YatharthVyas 6a73cf9
Merge branch 'feature-module-workflow' of https://github.com/Yatharth…
YatharthVyas 3e974bc
misc workflow bug fixes in modules view
YatharthVyas 6561003
merge PR https://github.com/joomla/joomla-cms/pull/34882
YatharthVyas af79676
correct the to_stage_id in installation sql
YatharthVyas 4bf5e7e
indent conditional statement
YatharthVyas bf8533a
add functionality conditions
YatharthVyas 6942e71
make WorkflowBehaviourTrait lang const global
YatharthVyas 170da42
display workflow transition field
YatharthVyas 729d73a
fix bug in saving new modules
YatharthVyas 6ea571a
rename default workflow for modules
YatharthVyas 50c1d64
rephrase workflows to workflow
YatharthVyas ab406a3
filter extension in workflow field
YatharthVyas 3f72de5
return inital stage depending on workflow_id param
YatharthVyas 5d22125
display workflow field for new modules and transition for editing exi…
YatharthVyas 51dda5c
Remove transition field for new modules
YatharthVyas 923dc24
make transition_ids camelcase
YatharthVyas 199a11b
camel casing
YatharthVyas f6ae871
revert changes to library function
YatharthVyas 4158bf6
improve the logic for conditionally adding transition field
YatharthVyas 3bb2d6e
phpcs
YatharthVyas 324a71f
Load Language file for workflows
YatharthVyas 1d1d3f3
correct the name of default module workflow
YatharthVyas ccbd30e
workflow update sql script
YatharthVyas fe17365
fix parent id for modules workflow asset
YatharthVyas c8987c6
remove backticks for postgresql
YatharthVyas a4c2b9c
replace backticks by quotes in postgresql update
YatharthVyas 09ede64
remove extra space and format the query
YatharthVyas 1b9acca
improve readability
YatharthVyas 2d97d4e
fix lft and rgt values of the assets
YatharthVyas bbc741e
Update installation/sql/postgresql/base.sql
YatharthVyas 055a0b3
Update installation/sql/mysql/base.sql
YatharthVyas 6098e27
Update installation/sql/postgresql/base.sql
YatharthVyas c649585
Update installation/sql/postgresql/base.sql
YatharthVyas e6031bd
Update installation/sql/postgresql/base.sql
YatharthVyas 044681d
place where clause after the end of all joins
YatharthVyas 7c7e347
update the workflow stage name
YatharthVyas a376c38
remove duplicate query in updates
YatharthVyas a7e3e6c
show default option in workflow field
YatharthVyas 581f3fa
remove unused function
YatharthVyas 89418b1
add the use default option in workflow dropdown
YatharthVyas f31b70e
change workflow to workflows
YatharthVyas a186a36
phpcs
YatharthVyas 6a3e71e
Update administrator/components/com_content/src/Model/ArticlesModel.php
YatharthVyas 6dc35c6
Update administrator/components/com_modules/src/Model/ModuleModel.php
YatharthVyas 14ed567
Escape string quotes in query
YatharthVyas 2799599
Update administrator/components/com_modules/src/Model/ModulesModel.php
YatharthVyas b0431be
Update administrator/components/com_modules/src/Model/ModuleModel.php
YatharthVyas 182410c
Update administrator/components/com_content/src/Model/ArticlesModel.php
YatharthVyas dde3803
use modules component helper for workflow field
YatharthVyas 8dd00e7
create workflow association on duplicating modules
YatharthVyas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
administrator/components/com_admin/sql/updates/mysql/4.1.0-2021-07-30.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| -- | ||
| -- Insert a new workflow for com_modules | ||
| -- | ||
| INSERT INTO `#__workflows` (`id`, `asset_id`, `published`, `title`, `description`, `extension`, `default`, `ordering`, `created`, `created_by`, `modified`, `modified_by`, `checked_out_time`, `checked_out`) VALUES | ||
| (NULL, 0, 1, 'COM_WORKFLOW_BASIC_WORKFLOW_MODULES', '', 'com_modules.module', 1, 1, CURRENT_TIMESTAMP(), 0, CURRENT_TIMESTAMP(), 0, NULL, 0); | ||
|
|
||
| -- | ||
| -- Inserting the default stage for the new worklfow | ||
| -- | ||
| INSERT INTO `#__workflow_stages` (`id`, `asset_id`, `ordering`, `workflow_id`, `published`, `title`, `description`, `default`, `checked_out_time`, `checked_out`) | ||
| SELECT NULL, 0, 1, `id`, 1, 'COM_WORKFLOW_BASIC_STAGE', '', 1, NULL, 0 FROM `#__workflows` WHERE `title` = 'COM_WORKFLOW_BASIC_WORKFLOW_MODULES'; | ||
|
|
||
| -- | ||
| -- Inserting the transitions for the new worklfow | ||
| -- | ||
| INSERT INTO `#__workflow_transitions` (`id`, `asset_id`, `published`, `ordering`, `workflow_id`, `title`, `description`, `from_stage_id`, `to_stage_id`, `options`) | ||
| SELECT NULL, 0, 1, NULL, `w`.`id`, 'Unpublish', '', -1, `s`.`id`, '{"publishing":"0"}' FROM `#__workflows` as `w` INNER JOIN `#__workflow_stages` as `s` ON `w`.`title` = 'COM_WORKFLOW_BASIC_WORKFLOW_MODULES' AND `s`.`title` = 'COM_WORKFLOW_BASIC_STAGE' AND `s`.`extension` = 'com_modules.module'; | ||
|
|
||
| INSERT INTO `#__workflow_transitions` (`id`, `asset_id`, `published`, `ordering`, `workflow_id`, `title`, `description`, `from_stage_id`, `to_stage_id`, `options`) | ||
| SELECT NULL, 0, 1, NULL, `w`.`id`, 'Publish', '', -1, `s`.`id`, '{"publishing":"1"}' FROM `#__workflows` as `w` INNER JOIN `#__workflow_stages` as `s` ON `w`.`title` = 'COM_WORKFLOW_BASIC_WORKFLOW_MODULES' AND `s`.`title` = 'COM_WORKFLOW_BASIC_STAGE' AND `s`.`extension` = 'com_modules.module'; | ||
|
|
||
| INSERT INTO `#__workflow_transitions` (`id`, `asset_id`, `published`, `ordering`, `workflow_id`, `title`, `description`, `from_stage_id`, `to_stage_id`, `options`) | ||
| SELECT NULL, 0, 1, NULL, `w`.`id`, 'Trash', '', -1, `s`.`id`, '{"publishing":"-2"}' FROM `#__workflows` as `w` INNER JOIN `#__workflow_stages` as `s` ON `w`.`title` = 'COM_WORKFLOW_BASIC_WORKFLOW_MODULES' AND `s`.`title` = 'COM_WORKFLOW_BASIC_STAGE' AND `s`.`workflow_id` = `w`.`id`; | ||
|
|
||
| -- | ||
| -- Creating Associations for existing modules | ||
| -- | ||
| INSERT INTO `#__workflow_associations` (`item_id`, `stage_id`, `extension`) | ||
| SELECT `m`.`id`, `s`.`id`, 'com_modules.module' | ||
| FROM `#__modules` as `m` , | ||
| ( | ||
| `#__workflow_stages` as `s` | ||
| INNER JOIN `#__workflows` as `w` | ||
| ON `w`.`title` = 'COM_WORKFLOW_BASIC_WORKFLOW_MODULES' | ||
| AND `s`.`title` = 'COM_WORKFLOW_BASIC_STAGE' | ||
| AND `s`.`workflow_id` = `w`.`id` | ||
| ); |
37 changes: 37 additions & 0 deletions
37
administrator/components/com_admin/sql/updates/postgresql/4.1.0-2021-07-30.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| -- | ||
| -- Insert a new workflow for com_modules | ||
| -- | ||
| INSERT INTO "#__workflows" ("id", "asset_id", "published", "title", "description", "extension", "default", "ordering", "created", "created_by", "modified", "modified_by", "checked_out_time", "checked_out") VALUES | ||
| (NULL, 0, 1, 'COM_WORKFLOW_BASIC_WORKFLOW_MODULES', '', 'com_modules.module', 1, 1, CURRENT_TIMESTAMP(), 0, CURRENT_TIMESTAMP(), 0, NULL, 0); | ||
|
|
||
| -- | ||
| -- Inserting the default stage for the new worklfow | ||
| -- | ||
| INSERT INTO "#__workflow_stages" ("id", "asset_id", "ordering", "workflow_id", "published", "title", "description", "default", "checked_out_time", "checked_out") | ||
| SELECT NULL, 0, 1, "id", 1, 'COM_WORKFLOW_BASIC_STAGE', '', 1, NULL, 0 FROM "#__workflows" WHERE "title" = 'COM_WORKFLOW_BASIC_WORKFLOW_MODULES'; | ||
|
|
||
| -- | ||
| -- Inserting the transitions for the new worklfow | ||
| -- | ||
| INSERT INTO "#__workflow_transitions" ("id", "asset_id", "published", "ordering", "workflow_id", "title", "description", "from_stage_id", "to_stage_id", "options") | ||
| SELECT NULL, 0, 1, NULL, "w"."id", 'Unpublish', '', -1, "s"."id", '{"publishing":"0"}' FROM "#__workflows" as "w" INNER JOIN "#__workflow_stages" as "s" ON "w"."title" = 'COM_WORKFLOW_BASIC_WORKFLOW_MODULES' AND "s"."title" = 'COM_WORKFLOW_BASIC_STAGE' AND "s"."extension" = 'com_modules.module'; | ||
|
|
||
| INSERT INTO "#__workflow_transitions" ("id", "asset_id", "published", "ordering", "workflow_id", "title", "description", "from_stage_id", "to_stage_id", "options") | ||
| SELECT NULL, 0, 1, NULL, "w"."id", 'Publish', '', -1, "s"."id", '{"publishing":"1"}' FROM "#__workflows" as "w" INNER JOIN "#__workflow_stages" as "s" ON "w"."title" = 'COM_WORKFLOW_BASIC_WORKFLOW_MODULES' AND "s"."title" = 'COM_WORKFLOW_BASIC_STAGE' AND "s"."extension" = 'com_modules.module'; | ||
|
|
||
| INSERT INTO "#__workflow_transitions" ("id", "asset_id", "published", "ordering", "workflow_id", "title", "description", "from_stage_id", "to_stage_id", "options") | ||
| SELECT NULL, 0, 1, NULL, "w"."id", 'Trash', '', -1, "s"."id", '{"publishing":"-2"}' FROM "#__workflows" as "w" INNER JOIN "#__workflow_stages" as "s" ON "w"."title" = 'COM_WORKFLOW_BASIC_WORKFLOW_MODULES' AND "s"."title" = 'COM_WORKFLOW_BASIC_STAGE' AND "s"."workflow_id" = "w"."id"; | ||
|
|
||
| -- | ||
| -- Creating Associations for existing modules | ||
| -- | ||
| INSERT INTO "#__workflow_associations" ("item_id", "stage_id", "extension") | ||
| SELECT "m"."id", "s"."id", 'com_modules.module' | ||
| FROM "#__modules" as "m", | ||
| ( | ||
| "#__workflow_stages" as "s" | ||
| INNER JOIN "#__workflows" as "w" | ||
| ON "w"."title" = 'COM_WORKFLOW_BASIC_WORKFLOW_MODULES' | ||
| AND "s"."title" = 'COM_WORKFLOW_BASIC_STAGE' | ||
| AND "s"."workflow_id" = "w"."id" | ||
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.