? ? ? Pending

User tests: Successful: Unsuccessful:

avatar stefanoel
stefanoel
22 Oct 2019

Webservice that lists installed extensions, based on com_installer Manage model

Pull Request for Issue # .

Summary of Changes

Added a new plugin in /plugins/webservice/installer
Added language files for the plugin

Fixed /administrator/components/com_installer/Model/ManageModel.php that was checking for empty values using !="" instead of empty(), causing an internal error.

Added Controller and View in /api/components/com_installer/

Testing Instructions

GET http:///api/index.php/v1/installer/manage

Expected result

A json response with a list of installed extensions like this:
"data": [
{
"type": "manage",
"id": "160",
"attributes": {
"name": "Action Log - Joomla",
"type": "plugin",
"folder": "actionlog",
"client_id": 0,
"status": 1,
"version": "3.9.0",
"id": 160
}
},
{
"type": "manage",
"id": "82",
"attributes": {
"name": "Action Logs - Latest",
"type": "module",
"folder": "",
"client_id": 1,
"status": 1,
"version": "3.9.0",
"id": 82
}
},
...

Actual result

New feature

Documentation Changes Required

yes

avatar stefanoel stefanoel - open - 22 Oct 2019
avatar stefanoel stefanoel - change - 22 Oct 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Oct 2019
Category Administration com_installer Language & Strings Front End Plugins
avatar SharkyKZ
SharkyKZ - comment - 22 Oct 2019

The XML file is shown as binary. You may need to configure your editor to store files as ASCII.

avatar stefanoel stefanoel - change - 23 Oct 2019
Labels Added: ? ?
avatar SharkyKZ
SharkyKZ - comment - 23 Oct 2019

JsonApiView.php needs to be renamed to JsonapiView.php and the class inside too.

avatar alikon
alikon - comment - 29 Oct 2019

thanks for your 1st contruibution ?
you need to add the sql files for the plugin install and update see #26850 as a reference

avatar joomla-cms-bot joomla-cms-bot - change - 29 Oct 2019
Category Administration com_installer Language & Strings Front End Plugins SQL Administration com_admin Postgresql com_installer Language & Strings Installation Front End Plugins
avatar stefanoel stefanoel - change - 29 Oct 2019
Title
[4.0] Adding "list of installed extensions" webservice (com_installer)
[4.0][webservice][com_installer] "list of installed extensions" webservice
avatar stefanoel stefanoel - edited - 29 Oct 2019
avatar stefanoel stefanoel - change - 29 Oct 2019
The description was changed
avatar stefanoel stefanoel - edited - 29 Oct 2019
avatar alikon alikon - test_item - 29 Oct 2019 - Tested successfully
avatar alikon
alikon - comment - 29 Oct 2019

I have tested this item successfully on 8e2d21a


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

avatar alikon
alikon - comment - 29 Oct 2019

tested with postman
Screenshot from 2019-10-29 21-25-45
and this is what it is exposed in the the app
Screenshot from 2019-10-29 21-27-09

avatar zero-24
zero-24 - comment - 23 Apr 2020

looks good to me. Thank you for that awesome feature. @stefanoel would you mind fixing the conflicts so this can get a second test by me and than we can set this here RTC?

Please keep up the great work and sorry that it took that long to come back to you on this.

avatar stefanoel stefanoel - change - 24 Apr 2020
Labels Added: Conflicting Files
avatar joomla-cms-bot joomla-cms-bot - change - 24 Apr 2020
Category Administration com_installer Language & Strings Front End Plugins SQL com_admin Postgresql Installation SQL Administration com_admin Postgresql com_installer Language & Strings Front End Plugins
avatar Quy
Quy - comment - 12 Jun 2020

Please remove prefix en-GB. from language file names.

avatar stefanoel stefanoel - change - 15 Jun 2020
Labels Added: ?
Removed: Conflicting Files
avatar stefanoel stefanoel - change - 15 Jun 2020
Labels Added: ?
Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 15 Jun 2020
Category Administration com_installer Language & Strings Front End Plugins SQL com_admin Postgresql SQL Administration com_admin Postgresql com_installer Language & Strings Installation Front End Plugins
avatar Quy
Quy - comment - 15 Jun 2020

Add to the list of core extensions.

libraries/src/Extension/ExtensionHelper.php

avatar stefanoel stefanoel - change - 15 Jun 2020
Labels Added: ?
Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 15 Jun 2020
Category Administration com_installer Language & Strings Front End Plugins SQL com_admin Postgresql Installation SQL Administration com_admin Postgresql com_installer Language & Strings Installation Libraries Front End Plugins
avatar Quy
Quy - comment - 15 Jun 2020

I am getting a 500 Internal server error.

avatar stefanoel stefanoel - change - 16 Jun 2020
Labels Removed: ?
avatar alikon
alikon - comment - 16 Jun 2020

me too
Screenshot from 2020-06-16 21-24-04

avatar stefanoel
stefanoel - comment - 17 Jun 2020

me too
Screenshot from 2020-06-16 21-24-04

I messed it up, it seems that files were on wrong location... now it works...

avatar Quy Quy - test_item - 17 Jun 2020 - Tested successfully
avatar Quy
Quy - comment - 17 Jun 2020

I have tested this item successfully on 2f39130


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

avatar alikon alikon - test_item - 17 Jun 2020 - Tested successfully
avatar alikon
alikon - comment - 17 Jun 2020

I have tested this item successfully on 2f39130


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

avatar alikon alikon - change - 17 Jun 2020
Status Pending Ready to Commit
avatar alikon
alikon - comment - 17 Jun 2020

RTC


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

avatar wilsonge wilsonge - change - 20 Jun 2020
Labels Added: ?
avatar wilsonge wilsonge - change - 30 Jun 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-06-30 11:31:52
Closed_By wilsonge
avatar wilsonge wilsonge - close - 30 Jun 2020
avatar wilsonge wilsonge - merge - 30 Jun 2020
avatar wilsonge
wilsonge - comment - 30 Jun 2020

Thankyou very much for working so hard on this!

avatar stefanoel
stefanoel - comment - 30 Jun 2020

Thankyou very much for working so hard on this!

Thank you all!!!

Add a Comment

Login with GitHub to post a comment