Uh oh!
There was an error while loading. Please reload this page.
Migrate apps management to Vue.js - #9565
Conversation
skjnldsv
commented
May 24, 2018
Weeeeeeee! Let me know if you need help! |
7a59cf0 to
a40d969CompareCodecov 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.
Any reason not to use the global API_Failure?
There was a problem hiding this comment.
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.
Guess who will earn a beer in Berlin if he makes that happen ;) 🍺
7704564 to
4c27804Comparee90021c to
1340a58Comparejuliusknorr
commented
Jun 2, 2018
Ready for review. @nextcloud/designers @nextcloud/javascript |
rullzer
commented
Jun 2, 2018
|
| </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.
Lets write that in English ;)
And make it translatatble
ChristophWurst
left a comment
There was a problem hiding this comment.
Good stuff, but quite a big PR to review 🙈
I commented on a few spots that might need polishing.
| use OCP\App\IAppManager; | ||
| use OCP\App\ManagerEvent; | ||
| use OCP\ICacheFactory; | ||
| use OCP\IConfig; |
There was a problem hiding this comment.
the import on L35 is unused then, I guess 😉
| $this->appConfig->setValue($appId, 'enabled', 'no'); | ||
| // run uninstall steps | ||
| $appData = $this->getAppInfo($appId); |
There was a problem hiding this comment.
was this removed intentionally?
| } | ||
| public function getApp(string $appId) { | ||
| return $this->apps[$appId]; |
There was a problem hiding this comment.
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.
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.
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)
| .catch((error) => context.commit('API_FAILURE', error)); | ||
| }, | ||
| getGroups(context) { /* { offset, limit, search } */ |
There was a problem hiding this comment.
I think it's a removed ES6 destructuring part of the function that was set aside?
a5fe179 to
36ce686Comparejuliusknorr
commented
Jun 5, 2018
I've changed the behavior there, so we always show the app icon in the list view. All other comments should be fixed. |
rullzer
left a comment
There was a problem hiding this comment.
I like it!
Lets get this in. And fix tiny things later if we find them!
rullzer
commented
Jun 5, 2018
CI not happy |
Signed-off-by: Julius Härtl <jus@bitgrid.net> Move app management ajax code to AppSettingsController Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
edece7c to
c97d6d5CompareSigned-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
c97d6d5 to
23ca2a4CompareSigned-off-by: Julius Härtl <jus@bitgrid.net>
juliusknorr
commented
Jun 6, 2018
@rullzer Fixed the CI failures. 😉 |
🎉 ❤️ |
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: