[haiku-depot-web] Re: Update; User Rating

  • From: Oliver Tappe <zooey@xxxxxxxxxxxxxxx>
  • To: haiku-depot-web@xxxxxxxxxxxxx
  • Date: Fri, 06 Jun 2014 13:50:18 +0200

Hi Andrew,

On 2014-06-06 at 13:33:54 [+0200], Andrew Lindesay <apl@xxxxxxxxxxxxxx> 
wrote:
> Hello;
> 
> I've now got user-rating functionality ~basically~ working.  Specifics
> are covered in the documentation.  In brief; a package needs to have >=
> 3 user ratings for the package to get a derived rating.  The derived
> rating can be seen in the web-application on the 'home' page as well as
> the 'view package' page.
> 
> The documentation has been updated;
> 
> http://www.silvereye.co.nz/tmp/haikudepotserver-docs-6jun2014-tmp.pdf
> 
> API things to note;
> 
> * APIs now return actual rating data where possible; no more fake data
> * getBulkPkg; always returns the rating for the packages
> * getBulkPkg; userRatingAverage -> derivedRating
> * getBulkPkg; no version-based user rating derivative
> * getPkg; attribute changes for rating data
> * searchPkgs; attributes changes for rating data
> * Multiple; new user-rating specific API
> 
> Config changes; There are some new configuration items, but they have
> (in my mind ;-)) sensible defaults.
> 
> Changes to the log rotation scripts in the RPM to fix log rotation
> problems I worked through with Oliver.
> 
> The application server should now recover properly following a database
> reboot or database outage.  Oliver; I've checked this locally.  Can you
> please also check this on the current environment by forcing a database
> outage.
> 
> Thanks to Humdinger again for the German localizations!
> 
> Oliver; can you please deploy this updated version when you get a
> moment.  Database migrations will be applied automatically at launch time.

With the new package installed, haikudepotserver will no longer start. 
Andrew, could you please login to vmrepo.haiku-os.org and have a look at 
the logs (something about a bean property not being writable)?

Did I maybe mess something up during the build? FYI: I usually build like 
this:

    git pull
    mvn clean && mvn package

cheers,
        Oliver

Other related posts: