Group folders fixes, tests, docs#11
Conversation
|
please rebase against master. |
b0e3b68 to
edd8943
Compare
|
@matejak rebased. After rebasing noticed one issue here, groupfolders app not listed in get_apps by default and I couldn't enable it without downloading and installing from nextcloud web interface, but web uses client internal api call: /settings/apps/enable. Do you know any better way how to enable that app, except volume folder with all apps to docker ? May be somehow in docker-compose or by command, couldn't find such way ( |
|
I see, the Nextcloud Docker setup doesn't allow some form of on-demand installation and enablement of apps. We can extend our Nextcloud images with a more capable entrypoint script that would manage to do that and upstream that later. Sounds intriguing, I will take a look at that. |
|
@matej Anyway I had to extend Nextcloud image because couldn't change directory owners with just volume. Although have new problem here. and this app becomes disabled again. |
|
I suppose when you enable it using web interface, this new relation is created (as well as some other db migrations probably), and when you trying to do this using ocs api endpoint - it doesn't happen and only turns app on/off. |
|
So enabling an app works using occ tool before running tests: |
|
Well, we have to find another way to make this working than adding the whole directory into the repository. Not only it is a huge amount of files, but they can change any time, introducing noise. |
8e28db5 to
6c5a6d0
Compare
|
@matejak agree, done. I decided that it will be easier than override |
matejak
left a comment
There was a problem hiding this comment.
Thank you for your pull request, I have done a dirve-by review and it looks good, except a small nitpick.
However, I was not successful in running the tests for group folders, so please double-check that, and while you are at it, also add a simple README.md to the tests folder, so it is clear what to do in order to execute tests and what is going on in the process.
Good work and happy new year!
|
@matejak thanks for review! Added it to Happy new year! |
This is not the case, I got errors like i.e. it looks like there are string vs integer conversion issues. However, I have pulled/rebuilt all images, and it got fixed. But I think that it won't hurt to convert the actual quota to integer. I have also noticed the |
…o in variable name
|
The inspection completed: 9 updated code elements |
|
Added converting of quota in response to integer and fixed typo in variable |
|
Good job, merging! |
Based on #9