Feature PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
25 Aug 2024

Pull Request for Issue #43949 .

Summary of Changes

new command to enable or disable an extension

Testing Instructions

run php cli\joomla.php extension:enable 226

run php cli\joomla.php extension:disable 226 to disable

Actual result BEFORE applying this Pull Request

N/A

Expected result AFTER applying this Pull Request

enable or disable an extension from cli

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar alikon alikon - open - 25 Aug 2024
avatar alikon alikon - change - 25 Aug 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Aug 2024
Category Libraries
c6b6738 25 Aug 2024 avatar alikon cs
avatar alikon alikon - change - 25 Aug 2024
Labels Added: PR-5.2-dev
avatar HLeithner
HLeithner - comment - 2 Sep 2024

This pull request has been automatically rebased to 5.3-dev.

avatar HLeithner HLeithner - change - 2 Sep 2024
Title
[5][CLI] enable or disable extension command
[5.3] [CLI] enable or disable extension command
avatar HLeithner HLeithner - edited - 2 Sep 2024
avatar voronkovich
voronkovich - comment - 15 Sep 2024

I think it would be better to have two separate commands for enabling and disabling extensions: extension:enable and extension:disable. In my opinion, it is a bit confusing that the command "publish" also disables extensions.

Joomla has separate commands for installing and uninstalling extensions, as well as for getting and setting configuration values an so on. There is no commands such:

php cli/joomla extension:install --uninstall 123

php cli/joomla user:add --delete bob

php cli/joomla site:up --down

php cli/joomla database:export --import
avatar alikon alikon - change - 18 Oct 2024
Labels Added: Feature PR-5.3-dev
Removed: PR-5.2-dev
avatar alikon
alikon - comment - 18 Oct 2024

2 separate command now

avatar alikon alikon - change - 18 Oct 2024
The description was changed
avatar alikon alikon - edited - 18 Oct 2024
4678a92 18 Oct 2024 avatar alikon cs
avatar brianteeman
brianteeman - comment - 18 Oct 2024

Shouldnt all usage of publish/unpublish (including the file names) be changed to enable/disable?

avatar voronkovich
voronkovich - comment - 18 Oct 2024

I think we should use enable/disable instead of publish/unpublish. Even a field in database has name enabled:

$table->enabled = 1;
avatar alikon alikon - change - 18 Oct 2024
The description was changed
avatar alikon alikon - edited - 18 Oct 2024
avatar Quy Quy - test_item - 7 Nov 2024 - Tested successfully
avatar Quy
Quy - comment - 7 Nov 2024

I have tested this item ✅ successfully on 43ef558


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43977.

Add a Comment

Login with GitHub to post a comment