YunoHost-Apps / ampache_ynh

Ampache package for YunoHost
http://ampache.org/
GNU General Public License v3.0
17 stars 16 forks source link

Your application has been elected to become official ! #21

Closed frju365 closed 6 years ago

frju365 commented 6 years ago

Hello, Since the last week, the community members have voted to elect the next two future official applications. (https://forum.yunohost.org/t/elis-les-futures-apps-officielles-elect-the-next-official-apps/3484)

Today, we announce to you that your app has been chosen to become official. To be sure that you agree, we need a confirmation from you within 2 weeks.

By entering in the official group of application, you will have to keep maintaining your application. You will have to create PR before commiting to the master branche and your PRs will have to be reviewed by the Apps Group of Yunohost following our guidline. Of course, you will get help from the App Group to help you maintaining this application.

No confirmation of you means that you disagree with the decision of the community and another application will join the official group instead of ampache.

Thanks, The Apps Group

aymhce commented 6 years ago

Hello, i am happy to this good news. I'm not the initial creator but I'have done last updates. Of course I've agree. :)

stevenroose commented 6 years ago

Personally, I've abandoned this project. I don't use Apache anymore and I can no longer keep maintaining this. I'm sorry.

If aymhce is happy to do the job, perfect!

frju365 commented 6 years ago

ok. So, @aymhce, do you agree with the fact of being the (official) maintainer of the application ?

aymhce commented 6 years ago

@frju365 No problem, during time that I'm user of Ampache :)

maniackcrudelis commented 6 years ago

Congratulation \o/

And now, it's time to suffer ! Mouhahaha

Indeed, this app can become official, but... Before that, there's a lot of work to do. In fact, we (together, not you alone) have to refactoring this app to fit to the official packaging standard.

But, obviously we will be here with you to do that. And let's do the things step by step. First, have a quick look at the example app. https://github.com/YunoHost/example_ynh/blob/master/scripts/install

The first thing to do is to give to your code some room, by separate each part with a big uppercase comment (like the example app above). It's quite simple to do, but you have to do that because you know your code. After that, it will be really more simple for us to review the code and help you to go forward.

aymhce commented 6 years ago

Ok i look that for the few next days

aymhce commented 6 years ago

@maniackcrudelis First step done

JimboJoe commented 6 years ago

Thanks for that! Now a few more requests (don't hesitate to look at the example_ynh application):

I know it does look like a heavy Christmas list, but don't forget we're here to help! Don't hesitate to ask any question, and proceed step-by-step. You can report your progress here and call for intermediate reviews. You can also join our apps XMPP chat room πŸ™‚

Good luck! πŸ˜‰

EDIT : Don't forget to work on a separate branch, and open a Pull Request so that we can interact while keeping your application functional for the community πŸ˜‰

aymhce commented 6 years ago

I have done a PR. Just, I haven't applying the 2 last points.

JimboJoe commented 6 years ago

Thanks for your work! That looks already much cleaner now! πŸ‘

Some more comments:

For ynh_setup_source and ynh_local_curl, do you just need some time or do you need some explanations?

aymhce commented 6 years ago

Ok thanks. No problem for ynh_setup_source, ynh_local_curl, just a problem of time for me. I can continue this weekend or next week.

aymhce commented 6 years ago

Hello, I think the app is up to date with all the recommendations, except for set -eu because the app isn't ​​longer valid in package_linter ...

maniackcrudelis commented 6 years ago

Sorry, I had a lot of work on something else, thanks to JimboJoe to took care or you. You've done a wonderful job so far aymhce.

I see some things though:

Sorry, other scripts for the next time ;)

aymhce commented 6 years ago

Ok, next week I'll work about your recommandations. Thanks for watching

aymhce commented 6 years ago

Hello, I currently have a professional mission that fascinates me and takes all my time. Don't worry, I will not forget ampache. But sorry for that.

JimboJoe commented 6 years ago

We completely understand that, take your time and thanks for your work πŸ‘

aymhce commented 6 years ago

Hello ! So I'm back :) with a new commit. @maniackcrudelis can you verify it please ?

maniackcrudelis commented 6 years ago

Hey nice to see you back o/

There's some point though:

After that, I think is going to be all good :) (I think but I have not enough time right now to perform a complete test. Maybe this evening.)

PS: Just like that, I don't know what is "prettyphoto", but it encounter a lot of 404 in my test.

maniackcrudelis commented 6 years ago

Just like that, I don't know what is "prettyphoto", but it encounter a lot of 404 in my test.

That's because your nginx conf file is not correct.

[...]
        #enable subsonic api
        if ( !-d $request_filename ) {
                rewrite ^/ampacherest/(.*)\.view$ /ampacherest/index.php?action=$1 last;
                rewrite ^/ampacherest/fake/(.+)$ /ampacheplay/$1 last;
[...]
        rewrite ^/ampacheplay/ssid/(.*)/type/(.*)/oid/([0-9]+)/uid/([0-9]+)/client/(.*)/noscrobble/([0-1])/player/(.*)/name/(.*)$ /ampacheplay/index.php?ssid=$1&type=$2&oid=$3&uid=$4&client=$5&noscrobble=$6&player=$7&name=$8 last;
        rewrite ^/ampacheplay/ssid/(.*)/type/(.*)/oid/([0-9]+)/uid/([0-9]+)/client/(.*)/noscrobble/([0-1])/bitrate/([0-9]+)/player/(.*)/name/(.*)$ /ampacheplay/index.php?ssid=$1&type=$2&oid=$3&uid=$4&client=$5&noscrobble=$6&bitrate=$7player=$8&name=$9 last;
        rewrite ^/ampacheplay/ssid/(.*)/type/(.*)/oid/([0-9]+)/uid/([0-9]+)/client/(.*)/noscrobble/([0-1])/transcode_to/(w+)/bitrate/([0-9]+)/player/(.*)/name/(.*)$ /ampacheplay/index.php?ssid=$1&type=$2&oid=$3&uid=$4&client=$5&noscrobble=$6&transcode_to=$7&bitrate=$8&player=$9&name=$10 last;
[...]
        location ^~ /ampachebin/ {
[...]
        location ^~ /ampacheconfig/ {
[...]
        rewrite ^/ampacheplay/ssid/(\w+)/type/(\w+)/oid/([0-9]+)/uid/([0-9]+)/name/(.*)$ /ampacheplay/index.php?ssid=$1&type=$2&oid=$3&uid=$4&name=$5 last;
        rewrite ^/ampacheplay/ssid/(\w+)/type/(\w+)/oid/([0-9]+)/uid/([0-9]+)/client/(.*)/noscrobble/([0-1])/name/(.*)$ /ampacheplay/index.php?ssid=$1&type=$2&oid=$3&uid=$4&client=$5&noscrobble=$6&name=$7 last;

        location /ampacherest {
[...]

Otherwise, all seems to work as expected.

Do you need any help with all that ?

aymhce commented 6 years ago

Hello @maniackcrudelis

aymhce commented 6 years ago

Ok I see the problem for nginx, sorry it been a while since I didn't work on ampache

maniackcrudelis commented 6 years ago

For the level 4, in fact I can see it works with my test, but, if there any code you can link, it's really better. You can simply, if it's only one link, put it just before the level 4 in the check_process file, with a # to comment it.

I did a complete test with Package check. It's almost all ok. I still have a problem with prettyphoto and also with some .js files in ampache/lib. And there're a lot of warnings from composer.

I think we can do something about that. I expect to have some free time tomorrow and saturday afternoon. I can try to help you about those problems.

aymhce commented 6 years ago

Ok thanks for feedback. I'll add a link for level 4. Also, I don't test manually my apache pkg yet. It will done tomorrow evening. So I will see all issues that you mean.

maniackcrudelis commented 6 years ago

I can't make any PR on your repository, I don't know why... So for the warnings print by composer, here a fix:

@@ -25,7 +25,8 @@ ampache_ynh_install () {
25          cd $final_path
26          php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
27      php composer-setup.php
28  -       php composer.phar install --prefer-source --no-interaction
29  +           php composer.phar update --no-interaction --no-dev
30  +           php composer.phar install --prefer-source --no-interaction --no-dev
31      # Set permissions to ampache directory
32      chown -R www-data: $final_path
33  )
maniackcrudelis commented 6 years ago

So... for the 404 errors, you can try to connect to that: https://domain.tld/ampache/lib/components/prettyphoto/images/prettyPhoto/default/loader.gif

The error seems to be in this part of the nginx conf:

    #enable subsonic api
    if ( !-d $request_filename ) {
        rewrite ^__PATH__/rest/(.*)\.view$ __PATH__/rest/index.php?action=$1 last;
        rewrite ^__PATH__/rest/fake/(.+)$ __PATH__/play/$1 last;
    }

But if you remove that, it doesn't work neither and you're going to fall on the portal. I guess it would be something bad in these rewrites. But I don't know why...

aymhce commented 6 years ago

Thanks for help. About the 404 errors, there is an issue from ampache source code...

docker@yunohost:/var/www/ampache# ls lib/components/prettyphoto/images/prettyPhoto/default/sprite.png
ls: cannot access prettyphoto/images/prettyPhoto/default/sprite.png: No such file or directory

docker@yunohost:/var/www/ampache# ls lib/components/prettyphoto/                 
css  js  prettyphoto-built.css  prettyphoto-built.js
maniackcrudelis commented 6 years ago

Ok, let's forget those 404 then.

It's all good for me. Let's merge your PR, see what the CI says. And make the ultimate PR \o/

frju365 commented 6 years ago

it's a very good work, @aymhce !

aymhce commented 6 years ago

Hello, builds are done and ok,

Go to do the last PR