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

List all apps with cloud/apps API endpoint #37901

Merged
merged 1 commit into from
Sep 16, 2020
Merged

List all apps with cloud/apps API endpoint #37901

merged 1 commit into from
Sep 16, 2020

Conversation

phil-davis
Copy link
Contributor

Description

See issue - make the cloud/apps OCS API endpoint really return all apps when no filter is specified.

Related Issue

How Has This Been Tested?

CI

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@codecov
Copy link

codecov bot commented Sep 11, 2020

Codecov Report

Merging #37901 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #37901   +/-   ##
=========================================
  Coverage     64.75%   64.75%           
- Complexity    19403    19404    +1     
=========================================
  Files          1285     1285           
  Lines         75823    75825    +2     
  Branches       1336     1336           
=========================================
+ Hits          49096    49098    +2     
  Misses        26333    26333           
  Partials        394      394           
Flag Coverage Δ Complexity Δ
#javascript 54.06% <ø> (ø) 0.00 <ø> (ø)
#phpunit 65.93% <100.00%> (+<0.01%) 19404.00 <18.00> (+1.00)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
apps/provisioning_api/lib/Apps.php 61.76% <100.00%> (ø) 11.00 <0.00> (ø)
lib/private/legacy/app.php 62.47% <100.00%> (+0.16%) 177.00 <18.00> (+1.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 65ee49a...393fec0. Read the comment docs.

4 similar comments
@codecov
Copy link

codecov bot commented Sep 11, 2020

Codecov Report

Merging #37901 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #37901   +/-   ##
=========================================
  Coverage     64.75%   64.75%           
- Complexity    19403    19404    +1     
=========================================
  Files          1285     1285           
  Lines         75823    75825    +2     
  Branches       1336     1336           
=========================================
+ Hits          49096    49098    +2     
  Misses        26333    26333           
  Partials        394      394           
Flag Coverage Δ Complexity Δ
#javascript 54.06% <ø> (ø) 0.00 <ø> (ø)
#phpunit 65.93% <100.00%> (+<0.01%) 19404.00 <18.00> (+1.00)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
apps/provisioning_api/lib/Apps.php 61.76% <100.00%> (ø) 11.00 <0.00> (ø)
lib/private/legacy/app.php 62.47% <100.00%> (+0.16%) 177.00 <18.00> (+1.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 65ee49a...393fec0. Read the comment docs.

@codecov
Copy link

codecov bot commented Sep 11, 2020

Codecov Report

Merging #37901 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #37901   +/-   ##
=========================================
  Coverage     64.75%   64.75%           
- Complexity    19403    19404    +1     
=========================================
  Files          1285     1285           
  Lines         75823    75825    +2     
  Branches       1336     1336           
=========================================
+ Hits          49096    49098    +2     
  Misses        26333    26333           
  Partials        394      394           
Flag Coverage Δ Complexity Δ
#javascript 54.06% <ø> (ø) 0.00 <ø> (ø)
#phpunit 65.93% <100.00%> (+<0.01%) 19404.00 <18.00> (+1.00)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
apps/provisioning_api/lib/Apps.php 61.76% <100.00%> (ø) 11.00 <0.00> (ø)
lib/private/legacy/app.php 62.47% <100.00%> (+0.16%) 177.00 <18.00> (+1.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 65ee49a...393fec0. Read the comment docs.

@codecov
Copy link

codecov bot commented Sep 11, 2020

Codecov Report

Merging #37901 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #37901   +/-   ##
=========================================
  Coverage     64.75%   64.75%           
- Complexity    19403    19404    +1     
=========================================
  Files          1285     1285           
  Lines         75823    75825    +2     
  Branches       1336     1336           
=========================================
+ Hits          49096    49098    +2     
  Misses        26333    26333           
  Partials        394      394           
Flag Coverage Δ Complexity Δ
#javascript 54.06% <ø> (ø) 0.00 <ø> (ø)
#phpunit 65.93% <100.00%> (+<0.01%) 19404.00 <18.00> (+1.00)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
apps/provisioning_api/lib/Apps.php 61.76% <100.00%> (ø) 11.00 <0.00> (ø)
lib/private/legacy/app.php 62.47% <100.00%> (+0.16%) 177.00 <18.00> (+1.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 65ee49a...393fec0. Read the comment docs.

@codecov
Copy link

codecov bot commented Sep 11, 2020

Codecov Report

Merging #37901 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #37901   +/-   ##
=========================================
  Coverage     64.75%   64.75%           
- Complexity    19403    19404    +1     
=========================================
  Files          1285     1285           
  Lines         75823    75825    +2     
  Branches       1336     1336           
=========================================
+ Hits          49096    49098    +2     
  Misses        26333    26333           
  Partials        394      394           
Flag Coverage Δ Complexity Δ
#javascript 54.06% <ø> (ø) 0.00 <ø> (ø)
#phpunit 65.93% <100.00%> (+<0.01%) 19404.00 <18.00> (+1.00)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
apps/provisioning_api/lib/Apps.php 61.76% <100.00%> (ø) 11.00 <0.00> (ø)
lib/private/legacy/app.php 62.47% <100.00%> (+0.16%) 177.00 <18.00> (+1.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 65ee49a...393fec0. Read the comment docs.

@codecov
Copy link

codecov bot commented Sep 15, 2020

Codecov Report

Merging #37901 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #37901   +/-   ##
=========================================
  Coverage     64.75%   64.75%           
- Complexity    19407    19408    +1     
=========================================
  Files          1285     1285           
  Lines         75826    75828    +2     
  Branches       1336     1336           
=========================================
+ Hits          49099    49101    +2     
  Misses        26333    26333           
  Partials        394      394           
Flag Coverage Δ Complexity Δ
#javascript 54.06% <ø> (ø) 0.00 <ø> (ø)
#phpunit 65.93% <100.00%> (+<0.01%) 19408.00 <18.00> (+1.00)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
apps/provisioning_api/lib/Apps.php 61.76% <100.00%> (ø) 11.00 <0.00> (ø)
lib/private/legacy/app.php 62.47% <100.00%> (+0.16%) 177.00 <18.00> (+1.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fd42bb2...82f2cf3. Read the comment docs.

@phil-davis
Copy link
Contributor Author

@micbar is this a reasonable change?

@micbar
Copy link
Contributor

micbar commented Sep 15, 2020

Yes. Who is using that API?

@michaelstingl

@michaelstingl
Copy link

Yes. Who is using that API?

I'm not aware of this endpoint. I want everything in the capabilities.

@phil-davis
Copy link
Contributor Author

phil-davis commented Sep 15, 2020

If you have admin privs, you can enable/disable apps, find out app info, and get lists of all/enabled/disabled apps.
It is documented https://doc.owncloud.com/server/admin_manual/configuration/user/user_provisioning_api.html#instruction-set-for-apps

The API acceptance tests use these endpoints ;) (and anyone could be using them) This was noticed only because @individual-it was just trying some Provisioning API requests with curl commands and wondered about the inconsistency in the lists of apps returned.

In the "old" webUI, Settings->Admin->Apps when I click "Show Disabled Apps" it requests to index.php/settings/apps/list?category=disabled so that is using a different "private/old" endpoint.

@micbar
Copy link
Contributor

micbar commented Sep 16, 2020

ok, sounds reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cloud/apps endpoint does not report always-enabled-apps in list of all apps
3 participants