root | 1 Aug 08:55 2009

[mb-commits] r11908 - in mb_server/trunk: lib lib/MusicBrainz/Server/Controller lib/MusicBrainz/Server/Data lib/MusicBrainz/Server/Entity root root/components root/release root/static/scripts root/static/styles root/tracklist t

Author: luks
Date: 2009-08-01 06:55:26 +0000 (Sat, 01 Aug 2009)
New Revision: 11908

Added:
   mb_server/trunk/root/static/scripts/global.js
Modified:
   mb_server/trunk/lib/MusicBrainz/Server/Controller/Artist.pm
   mb_server/trunk/lib/MusicBrainz/Server/Controller/Label.pm
   mb_server/trunk/lib/MusicBrainz/Server/Controller/Rating.pm
   mb_server/trunk/lib/MusicBrainz/Server/Controller/Recording.pm
   mb_server/trunk/lib/MusicBrainz/Server/Controller/Release.pm
   mb_server/trunk/lib/MusicBrainz/Server/Controller/ReleaseGroup.pm
   mb_server/trunk/lib/MusicBrainz/Server/Controller/Tracklist.pm
   mb_server/trunk/lib/MusicBrainz/Server/Controller/Work.pm
   mb_server/trunk/lib/MusicBrainz/Server/Data/Rating.pm
   mb_server/trunk/lib/MusicBrainz/Server/Data/Recording.pm
   mb_server/trunk/lib/MusicBrainz/Server/Data/Relationship.pm
   mb_server/trunk/lib/MusicBrainz/Server/Data/Utils.pm
   mb_server/trunk/lib/MusicBrainz/Server/Entity/RatingRole.pm
   mb_server/trunk/lib/Sql.pm
   mb_server/trunk/root/components/common-macros.tt
   mb_server/trunk/root/layout.tt
   mb_server/trunk/root/release/index.tt
   mb_server/trunk/root/static/styles/layout.css
   mb_server/trunk/root/tracklist/index.tt
   mb_server/trunk/root/tracklist/tracklist.tt
   mb_server/trunk/t/data_rating.t
Log:
Support for rating things
(Continue reading)

root | 1 Aug 09:03 2009

[mb-commits] r11909 - in mb_server/trunk: admin/sql admin/sql/updates lib/MusicBrainz/Server/Controller lib/MusicBrainz/Server/Controller/User lib/MusicBrainz/Server/Data lib/MusicBrainz/Server/Model root/release root/user

Author: luks
Date: 2009-08-01 07:03:52 +0000 (Sat, 01 Aug 2009)
New Revision: 11909

Added:
   mb_server/trunk/lib/MusicBrainz/Server/Controller/User/
   mb_server/trunk/lib/MusicBrainz/Server/Controller/User/Collection.pm
   mb_server/trunk/lib/MusicBrainz/Server/Data/Collection.pm
   mb_server/trunk/lib/MusicBrainz/Server/Model/Collection.pm
   mb_server/trunk/root/user/collection.tt
Modified:
   mb_server/trunk/admin/sql/CreateFKConstraints.sql
   mb_server/trunk/admin/sql/CreateIndexes.sql
   mb_server/trunk/admin/sql/CreatePrimaryKeys.sql
   mb_server/trunk/admin/sql/CreateTables.sql
   mb_server/trunk/admin/sql/DropFKConstraints.sql
   mb_server/trunk/admin/sql/DropIndexes.sql
   mb_server/trunk/admin/sql/DropPrimaryKeys.sql
   mb_server/trunk/admin/sql/DropTables.sql
   mb_server/trunk/admin/sql/SetSequences.sql
   mb_server/trunk/admin/sql/updates/ngs-rawdata.pl
   mb_server/trunk/lib/MusicBrainz/Server/Controller/Release.pm
   mb_server/trunk/lib/MusicBrainz/Server/Controller/Root.pm
   mb_server/trunk/lib/MusicBrainz/Server/Data/Release.pm
   mb_server/trunk/root/release/layout.tt
   mb_server/trunk/root/user/profile.tt
Log:
Add simple collections

Modified: mb_server/trunk/admin/sql/CreateFKConstraints.sql
(Continue reading)

root | 1 Aug 16:10 2009

[mb-commits] r11910 - in mb_server/trunk: lib/MusicBrainz/Server lib/MusicBrainz/Server/Data lib/MusicBrainz/Server/Edit lib/MusicBrainz/Server/Edit/Track t

Author: acid2
Date: 2009-08-01 14:10:19 +0000 (Sat, 01 Aug 2009)
New Revision: 11910

Added:
   mb_server/trunk/lib/MusicBrainz/Server/Edit/Track/
   mb_server/trunk/lib/MusicBrainz/Server/Edit/Track/Edit.pm
   mb_server/trunk/t/edit_track_edit.t
Modified:
   mb_server/trunk/lib/MusicBrainz/Server/Constants.pm
   mb_server/trunk/lib/MusicBrainz/Server/Data/Track.pm
Log:
Edit track support. See review 304

Merge branch 'edit-track'

Modified: mb_server/trunk/lib/MusicBrainz/Server/Constants.pm
===================================================================
--- mb_server/trunk/lib/MusicBrainz/Server/Constants.pm	2009-08-01 07:03:52 UTC (rev 11909)
+++ mb_server/trunk/lib/MusicBrainz/Server/Constants.pm	2009-08-01 14:10:19 UTC (rev 11910)
 <at>  <at>  -52,6 +52,8  <at>  <at> 

 Readonly our $EDIT_MEDIUM_EDIT => 52;

+Readonly our $EDIT_TRACK_EDIT => 62;
+
 =head1 NAME

 MusicBrainz::Server::Constant - constants used in the database that

(Continue reading)

root | 2 Aug 23:51 2009

[mb-commits] r11911 - in mb_server/trunk: lib/MusicBrainz/Server lib/MusicBrainz/Server/Controller lib/MusicBrainz/Server/Controller/User lib/MusicBrainz/Server/Controller/WS lib/MusicBrainz/Server/Data lib/MusicBrainz/Server/Model t t/sql

Author: luks
Date: 2009-08-02 21:51:56 +0000 (Sun, 02 Aug 2009)
New Revision: 11911

Added:
   mb_server/trunk/t/data_collection.t
   mb_server/trunk/t/sql/collection.sql
   mb_server/trunk/t/sql/tag_raw.sql
Removed:
   mb_server/trunk/lib/MusicBrainz/Server/Model/Rating.pm
   mb_server/trunk/lib/MusicBrainz/Server/Rating.pm
Modified:
   mb_server/trunk/lib/MusicBrainz/Server/Controller/Artist.pm
   mb_server/trunk/lib/MusicBrainz/Server/Controller/User/Collection.pm
   mb_server/trunk/lib/MusicBrainz/Server/Controller/WS/1.pm
   mb_server/trunk/lib/MusicBrainz/Server/Data/Artist.pm
   mb_server/trunk/lib/MusicBrainz/Server/Data/Collection.pm
   mb_server/trunk/lib/MusicBrainz/Server/Data/Label.pm
   mb_server/trunk/lib/MusicBrainz/Server/Data/Rating.pm
   mb_server/trunk/lib/MusicBrainz/Server/Data/Recording.pm
   mb_server/trunk/lib/MusicBrainz/Server/Data/Release.pm
   mb_server/trunk/lib/MusicBrainz/Server/Data/ReleaseGroup.pm
   mb_server/trunk/lib/MusicBrainz/Server/Data/Tag.pm
   mb_server/trunk/lib/MusicBrainz/Server/Data/Work.pm
   mb_server/trunk/lib/MusicBrainz/Server/Test.pm
   mb_server/trunk/t/data_rating.t
   mb_server/trunk/t/data_tag.t
   mb_server/trunk/t/sql/tag.sql
Log:
Tag, rating and collection merging
(Continue reading)

root | 3 Aug 09:42 2009

[mb-commits] r11912 - in mb_server/trunk: lib/MusicBrainz/Server lib/MusicBrainz/Server/Authentication lib/MusicBrainz/Server/Controller lib/MusicBrainz/Server/Controller/User lib/MusicBrainz/Server/Data lib/MusicBrainz/Server/Form/User root root/components root/email root/static/styles root/user root/user/profile t t/sql

Author: luks
Date: 2009-08-03 07:42:58 +0000 (Mon, 03 Aug 2009)
New Revision: 11912

Added:
   mb_server/trunk/lib/MusicBrainz/Server/Form/User/LostPassword.pm
   mb_server/trunk/lib/MusicBrainz/Server/Form/User/LostUsername.pm
   mb_server/trunk/lib/MusicBrainz/Server/Form/User/ResetPassword.pm
   mb_server/trunk/root/email/lost_password.tt
   mb_server/trunk/root/email/lost_username.tt
   mb_server/trunk/root/user/lost_password.tt
   mb_server/trunk/root/user/lost_password_sent.tt
   mb_server/trunk/root/user/lost_username.tt
   mb_server/trunk/root/user/lost_username_sent.tt
   mb_server/trunk/root/user/profile/
   mb_server/trunk/root/user/profile/layout.tt
   mb_server/trunk/root/user/reset_password.tt
   mb_server/trunk/root/user/reset_password_error.tt
   mb_server/trunk/root/user/reset_password_ok.tt
   mb_server/trunk/root/user/verify_email_error.tt
   mb_server/trunk/t/controller_user.t
Removed:
   mb_server/trunk/lib/MusicBrainz/Server/Form/User/ForgotPassword.pm
   mb_server/trunk/root/email/forgot_password.tt
   mb_server/trunk/root/user/forgot_password.tt
Modified:
   mb_server/trunk/lib/MusicBrainz/Server/Authentication/User.pm
   mb_server/trunk/lib/MusicBrainz/Server/Controller.pm
   mb_server/trunk/lib/MusicBrainz/Server/Controller/User.pm
   mb_server/trunk/lib/MusicBrainz/Server/Controller/User/Collection.pm
(Continue reading)

root | 4 Aug 11:24 2009

[mb-commits] r11913 - mb_server/trunk/lib/MusicBrainz/Server/Entity

Author: luks
Date: 2009-08-04 09:24:31 +0000 (Tue, 04 Aug 2009)
New Revision: 11913

Modified:
   mb_server/trunk/lib/MusicBrainz/Server/Entity/Editor.pm
Log:
Add a workaround for http://rt.cpan.org/Public/Bug/Display.html?id=29487

I must say this makes me want to switch to 'constant'. I'm not sure how
much we can trust the Readonly module. :(

Modified: mb_server/trunk/lib/MusicBrainz/Server/Entity/Editor.pm
===================================================================
--- mb_server/trunk/lib/MusicBrainz/Server/Entity/Editor.pm	2009-08-03 07:42:58 UTC (rev 11912)
+++ mb_server/trunk/lib/MusicBrainz/Server/Entity/Editor.pm	2009-08-04 09:24:31 UTC (rev 11913)
 <at>  <at>  -35,42 +35,50  <at>  <at> 

 sub is_auto_editor
 {
-    return (shift->privileges & $AUTO_EDITOR_FLAG) > 0;
+    my $mask = $AUTO_EDITOR_FLAG;
+    return (shift->privileges & $mask) > 0;
 }

 sub is_bot
 {
-    return (shift->privileges & $BOT_FLAG) > 0;
+    my $mask = $BOT_FLAG;
+    return (shift->privileges & $mask) > 0;
(Continue reading)

root | 4 Aug 12:57 2009

[mb-commits] r11914 - in mb_server/trunk/root: artist label recording release release_group work

Author: luks
Date: 2009-08-04 10:57:50 +0000 (Tue, 04 Aug 2009)
New Revision: 11914

Modified:
   mb_server/trunk/root/artist/layout.tt
   mb_server/trunk/root/label/layout.tt
   mb_server/trunk/root/recording/layout.tt
   mb_server/trunk/root/release/layout.tt
   mb_server/trunk/root/release_group/layout.tt
   mb_server/trunk/root/work/layout.tt
Log:
Fix page titles

Modified: mb_server/trunk/root/artist/layout.tt
===================================================================
--- mb_server/trunk/root/artist/layout.tt	2009-08-04 09:24:31 UTC (rev 11913)
+++ mb_server/trunk/root/artist/layout.tt	2009-08-04 10:57:50 UTC (rev 11914)
 <at>  <at>  -1,4 +1,4  <at>  <at> 
-[%- WRAPPER "layout.tt" title="${artist.name} - ${title}" -%]
+[%- WRAPPER "layout.tt" title=title ? artist.name _ " - ${title}" : artist.name -%]
     <div class="sidebar">

         <p class="nfo">

Modified: mb_server/trunk/root/label/layout.tt
===================================================================
--- mb_server/trunk/root/label/layout.tt	2009-08-04 09:24:31 UTC (rev 11913)
+++ mb_server/trunk/root/label/layout.tt	2009-08-04 10:57:50 UTC (rev 11914)
 <at>  <at>  -1,4 +1,4  <at>  <at> 
(Continue reading)

root | 4 Aug 13:03 2009

[mb-commits] r11915 - mb_server/trunk/lib/MusicBrainz/Server/Controller

Author: luks
Date: 2009-08-04 11:03:50 +0000 (Tue, 04 Aug 2009)
New Revision: 11915

Modified:
   mb_server/trunk/lib/MusicBrainz/Server/Controller/Label.pm
Log:
Add missing rating role to the label controller

Modified: mb_server/trunk/lib/MusicBrainz/Server/Controller/Label.pm
===================================================================
--- mb_server/trunk/lib/MusicBrainz/Server/Controller/Label.pm	2009-08-04 10:57:50 UTC (rev 11914)
+++ mb_server/trunk/lib/MusicBrainz/Server/Controller/Label.pm	2009-08-04 11:03:50 UTC (rev 11915)
 <at>  <at>  -6,6 +6,7  <at>  <at> 
 with 'MusicBrainz::Server::Controller::Annotation';
 with 'MusicBrainz::Server::Controller::Alias';
 with 'MusicBrainz::Server::Controller::RelationshipRole';
+with 'MusicBrainz::Server::Controller::RatingRole';
 with 'MusicBrainz::Server::Controller::TagRole';

 use MusicBrainz::Server::Constants qw( $DLABEL_ID $EDIT_LABEL_CREATE $EDIT_LABEL_DELETE
$EDIT_LABEL_EDIT $EDIT_LABEL_MERGE );
root | 4 Aug 16:37 2009

[mb-commits] r11916 - in search_server/branches/lucene-java/servlet/src: main/java/org/musicbrainz/search test/java

Author: ijabz
Date: 2009-08-04 14:37:55 +0000 (Tue, 04 Aug 2009)
New Revision: 11916

Added:
   search_server/branches/lucene-java/servlet/src/test/java/QueryManglerTest.java
Modified:
   search_server/branches/lucene-java/servlet/src/main/java/org/musicbrainz/search/ArtistMangler.java
   search_server/branches/lucene-java/servlet/src/main/java/org/musicbrainz/search/ReleaseGroupMangler.java
   search_server/branches/lucene-java/servlet/src/main/java/org/musicbrainz/search/ReleaseMangler.java
   search_server/branches/lucene-java/servlet/src/main/java/org/musicbrainz/search/TrackMangler.java
Log:
Tests and fixes for Mangler code as per http://codereview.musicbrainz.org/r/312

Modified: search_server/branches/lucene-java/servlet/src/main/java/org/musicbrainz/search/ArtistMangler.java
===================================================================
---
search_server/branches/lucene-java/servlet/src/main/java/org/musicbrainz/search/ArtistMangler.java	2009-08-04
11:03:50 UTC (rev 11915)
+++
search_server/branches/lucene-java/servlet/src/main/java/org/musicbrainz/search/ArtistMangler.java	2009-08-04
14:37:55 UTC (rev 11916)
 <at>  <at>  -24,7 +24,7  <at>  <at> 
      *  <at> return
      */
     private String convertArtype(String query) {
-        return query.replace("artype:", "type:");
+        return query.replace("artype:",  ArtistIndexField.TYPE.getName()+":");
     }

(Continue reading)

root | 4 Aug 17:19 2009

[mb-commits] r11917 - in search_server/branches/lucene-java/index: . src/main/java/org/musicbrainz/search src/test/java/org/musicbrainz/search

Author: ijabz
Date: 2009-08-04 15:19:24 +0000 (Tue, 04 Aug 2009)
New Revision: 11917

Added:
   search_server/branches/lucene-java/index/src/test/java/org/musicbrainz/search/AbstractIndexTest.java
   search_server/branches/lucene-java/index/src/test/java/org/musicbrainz/search/ArtistIndexTest.java
Modified:
   search_server/branches/lucene-java/index/pom.xml
   search_server/branches/lucene-java/index/src/main/java/org/musicbrainz/search/ArtistIndex.java
Log:
Junit tests and fixes for artist indexing

See http://codereview.musicbrainz.org/r/314/diff/#index_header

Modified: search_server/branches/lucene-java/index/pom.xml
===================================================================
--- search_server/branches/lucene-java/index/pom.xml	2009-08-04 14:37:55 UTC (rev 11916)
+++ search_server/branches/lucene-java/index/pom.xml	2009-08-04 15:19:24 UTC (rev 11917)
 <at>  <at>  -7,14 +7,14  <at>  <at> 
   <version>1.0-SNAPSHOT</version>
   <name>MusicBrainz Server Server's Index</name>
   <repositories>
-  	<repository>
-  		<id>maven-snapshot-repository</id>
-  		<url>http://people.apache.org/maven-snapshot-repository/</url>
-  	</repository>
-  	<repository>
-  		<id>java.net</id>
-  		<url>http://download.java.net/maven/2</url>
(Continue reading)


Gmane