-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Migrate apps management to Vue.js #9565
Conversation
Weeeeeeee! Let me know if you need help! |
7a59cf0
to
a40d969
Compare
Codecov Report
@@ Coverage Diff @@
## master #9565 +/- ##
============================================
- Coverage 53.34% 51.96% -1.38%
- Complexity 24451 25743 +1292
============================================
Files 1478 1633 +155
Lines 81470 95346 +13876
Branches 0 1307 +1307
============================================
+ Hits 43459 49551 +6092
- Misses 38011 45795 +7784
|
|
||
const mutations = { | ||
|
||
APPS_API_FAILURE(state, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason not to use the global API_Failure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I introduced this because the apps management controller endpoints are no OCS API at the moment, so the regular API_FAILURE will not work. I didn't move them to proper OCS since I wanted to keep backend code changes in the beginning. If nobody protests, i would tackle that in a follow up PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess who will earn a beer in Berlin if he makes that happen ;) 🍺
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SO many beers :D
7704564
to
4c27804
Compare
e90021c
to
1340a58
Compare
Ready for review. @nextcloud/designers @nextcloud/javascript |
|
</div> | ||
|
||
<p class="documentation"> | ||
<a class="appslink" :href="appstoreUrl" v-if="!app.internal" target="_blank" rel="noreferrer noopener">Im Store anzeigen ↗</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets write that in English ;)
And make it translatatble
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff, but quite a big PR to review 🙈
I commented on a few spots that might need polishing.
lib/private/App/AppManager.php
Outdated
@@ -37,6 +37,7 @@ | |||
use OCP\App\IAppManager; | |||
use OCP\App\ManagerEvent; | |||
use OCP\ICacheFactory; | |||
use OCP\IConfig; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the import on L35 is unused then, I guess 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, removed :)
lib/private/App/AppManager.php
Outdated
$this->appConfig->setValue($appId, 'enabled', 'no'); | ||
|
||
// run uninstall steps | ||
$appData = $this->getAppInfo($appId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this removed intentionally?
lib/private/App/AppStore/Manager.php
Outdated
} | ||
|
||
public function getApp(string $appId) { | ||
return $this->apps[$appId]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
null checks, e.g. with ??
syntax would be great
return new JSONResponse($this->getAllCategories()); | ||
public function listApps(): JSONResponse { | ||
|
||
$this->fetchApps(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO this class should be split into multiple at some point. There's so much going on here and the code is quite hard to understand for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Toally with you on that. It will get a lot simpler once those methods are moved to proper OCS endpoints, but I'd do that in a follow up PR as mentioned in #9565 (comment)
settings/src/store/users.js
Outdated
@@ -197,6 +197,21 @@ const actions = { | |||
.catch((error) => context.commit('API_FAILURE', error)); | |||
}, | |||
|
|||
getGroups(context) { /* { offset, limit, search } */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do these comments mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a removed ES6 destructuring part of the function that was set aside?
a5fe179
to
36ce686
Compare
I've changed the behavior there, so we always show the app icon in the list view. All other comments should be fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it!
Lets get this in. And fix tiny things later if we find them!
CI not happy |
Signed-off-by: Julius Härtl <[email protected]> Move app management ajax code to AppSettingsController Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
edece7c
to
c97d6d5
Compare
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
c97d6d5
to
23ca2a4
Compare
Signed-off-by: Julius Härtl <[email protected]>
@rullzer Fixed the CI failures. 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍
🎉 ❤️ |
This PR will move the apps management to vue, heavily based on the work done by @skjnldsv in #8824
General improvements to the existing feature set: