See http://ci.opensuse.org/job/obs_master_testsuite_webui/1103/changes
Changes:
[Stephan Kulow] [api] comment the Gemfile a bit
[Stephan Kulow] [api] move duplicated rating function to a shared mixin
[Stephan Kulow] [api] move common code of project and package to HasAttributes
[Stephan Kulow] [api] move user rendering to a view
[Stephan Kulow] [api] refactor HasAttributes a bit
[Stephan Kulow] [api] a small feature for bmwiedemann:
------------------------------------------
[...truncated 274046 lines...]
[c578fc1d-9f0d-4fda-8906-15f302a24d67] RT http://localhost:3203/source/Apache/apache2/_meta? {"view"=>0.305011, "db"=>0.764772, "backend"=>0, "xml"=>0, :runtime=>8.626999999999999, :all=>50.749687}
[c578fc1d-9f0d-4fda-8906-15f302a24d67] [REST] find( Buildresult, [{:project=>"Apache", :package=>"apache2", :repository=>"SUSE_Linux_10.1", :view=>["binarylist", "status"]}] )
[c578fc1d-9f0d-4fda-8906-15f302a24d67] params {:project=>"Apache", :package=>"apache2", :repository=>"SUSE_Linux_10.1", :view=>["binarylist", "status"]}
[c578fc1d-9f0d-4fda-8906-15f302a24d67] uri is: http://localhost:3203/build/:project/_result?:view&:package&:code&:lastbuild&:arch&:repository
[c578fc1d-9f0d-4fda-8906-15f302a24d67] http_do #1: method: get url: http://localhost:3203/build/Apache/_result?view=binarylist&view=status&package=apache2&repository=SUSE_Linux_10.1
[c578fc1d-9f0d-4fda-8906-15f302a24d67] RT http://localhost:3203/build/Apache/_result?view=binarylist&view=status&package=apache2&repository=SUSE_Linux_10.1 {"view"=>nil, "db"=>0.7824200000000001, "backend"=>0, "xml"=>0, :runtime=>16.061, :all=>55.485498}
[c578fc1d-9f0d-4fda-8906-15f302a24d67] [REST] find( Package, [{:project=>"Apache", :view=>"flagdetails", :name=>"apache2"}] )
[c578fc1d-9f0d-4fda-8906-15f302a24d67] params {:project=>"Apache", :view=>"flagdetails", :name=>"apache2"}
[c578fc1d-9f0d-4fda-8906-15f302a24d67] uri is: http://localhost:3203/source/:project/:name/_meta?:view
[c578fc1d-9f0d-4fda-8906-15f302a24d67] http_do #1: method: get url: http://localhost:3203/source/Apache/apache2/_meta?view=flagdetails
[c578fc1d-9f0d-4fda-8906-15f302a24d67] RT http://localhost:3203/source/Apache/apache2/_meta?view=flagdetails {"view"=>0.448864, "db"=>3.0648850000000003, "backend"=>0, "xml"=>0, :runtime=>26.643, :all=>66.96016300000001}
[c578fc1d-9f0d-4fda-8906-15f302a24d67] Rendered package/_tabs.html.erb (2.6ms)
[c578fc1d-9f0d-4fda-8906-15f302a24d67] Rendered shared/_download_repository_link.html.erb (0.4ms)
[c578fc1d-9f0d-4fda-8906-15f302a24d67] Rendered layouts/_watch_and_search.html.erb (0.6ms)
[c578fc1d-9f0d-4fda-8906-15f302a24d67] Rendered layouts/_header.html.erb (1.2ms)
[c578fc1d-9f0d-4fda-8906-15f302a24d67] No alt/title text for sprite_tag
[c578fc1d-9f0d-4fda-8906-15f302a24d67] Rendered layouts/_personal_navigation.html.erb (1.1ms)
[c578fc1d-9f0d-4fda-8906-15f302a24d67] Rendered layouts/_flash.html.erb (0.1ms)
[c578fc1d-9f0d-4fda-8906-15f302a24d67] Completed 200 OK in 204ms (Views: 10.5ms | ActiveRecord: 0.0ms | API: 188.6ms (XML: 0.0ms , View: 1.2ms , Backend: 0.0ms , DB: 5.6ms , HTTP: 125.9ms) | XML: 0.4ms)
[5d10d803-ccb0-4f20-9301-0b159196e8c6] Started GET "/package/binaries/Apache/apache2?repository=SUSE_Linux_Factory" for 127.0.0.1 at 2013-08-29 10:43:26 +0000
[5d10d803-ccb0-4f20-9301-0b159196e8c6] Processing by PackageController#binaries as HTML
[5d10d803-ccb0-4f20-9301-0b159196e8c6] Parameters: {"repository"=>"SUSE_Linux_Factory", "project"=>"Apache", "package"=>"apache2"}
[5d10d803-ccb0-4f20-9301-0b159196e8c6] Setting return_to: "/package/binaries/Apache/apache2?repository=SUSE_Linux_Factory"
[5d10d803-ccb0-4f20-9301-0b159196e8c6] Authenticating with iChain mode: off
[5d10d803-ccb0-4f20-9301-0b159196e8c6] Anonymous request to /package/binaries/Apache/apache2?repository=SUSE_Linux_Factory
[5d10d803-ccb0-4f20-9301-0b159196e8c6] [REST] find( Project, [{:name=>"Apache"}] )
[5d10d803-ccb0-4f20-9301-0b159196e8c6] params {:name=>"Apache"}
[5d10d803-ccb0-4f20-9301-0b159196e8c6] uri is: http://localhost:3203/source/:name/_meta?:view
[5d10d803-ccb0-4f20-9301-0b159196e8c6] http_do #1: method: get url: http://localhost:3203/source/Apache/_meta?
[5d10d803-ccb0-4f20-9301-0b159196e8c6] RT http://localhost:3203/source/Apache/_meta? {"view"=>0.47195800000000004, "db"=>0.8562200000000001, "backend"=>0, "xml"=>0, :runtime=>9.494000000000002, :all=>12.802459}
[5d10d803-ccb0-4f20-9301-0b159196e8c6] [REST] find( Package, [{:project=>"Apache", :name=>"apache2"}] )
[5d10d803-ccb0-4f20-9301-0b159196e8c6] params {:project=>"Apache", :name=>"apache2"}
[5d10d803-ccb0-4f20-9301-0b159196e8c6] uri is: http://localhost:3203/source/:project/:name/_meta?:view
[5d10d803-ccb0-4f20-9301-0b159196e8c6] http_do #1: method: get url: http://localhost:3203/source/Apache/apache2/_meta?
[5d10d803-ccb0-4f20-9301-0b159196e8c6] RT http://localhost:3203/source/Apache/apache2/_meta? {"view"=>0.404281, "db"=>1.599495, "backend"=>0, "xml"=>0, :runtime=>10.719, :all=>52.899950000000004}
[5d10d803-ccb0-4f20-9301-0b159196e8c6] [REST] find( Buildresult, [{:project=>"Apache", :package=>"apache2", :repository=>"SUSE_Linux_Factory", :view=>["binarylist", "status"]}] )
[5d10d803-ccb0-4f20-9301-0b159196e8c6] params {:project=>"Apache", :package=>"apache2", :repository=>"SUSE_Linux_Factory", :view=>["binarylist", "status"]}
[5d10d803-ccb0-4f20-9301-0b159196e8c6] uri is: http://localhost:3203/build/:project/_result?:view&:package&:code&:lastbuild&:arch&:repository
[5d10d803-ccb0-4f20-9301-0b159196e8c6] http_do #1: method: get url: http://localhost:3203/build/Apache/_result?view=binarylist&view=status&package=apache2&repository=SUSE_Linux_Factory
[5d10d803-ccb0-4f20-9301-0b159196e8c6] RT http://localhost:3203/build/Apache/_result?view=binarylist&view=status&package=apache2&repository=SUSE_Linux_Factory {"view"=>nil, "db"=>0.748405, "backend"=>0, "xml"=>0, :runtime=>24.742, :all=>68.279357}
[5d10d803-ccb0-4f20-9301-0b159196e8c6] [REST] find( Package, [{:project=>"Apache", :view=>"flagdetails", :name=>"apache2"}] )
[5d10d803-ccb0-4f20-9301-0b159196e8c6] params {:project=>"Apache", :view=>"flagdetails", :name=>"apache2"}
[5d10d803-ccb0-4f20-9301-0b159196e8c6] uri is: http://localhost:3203/source/:project/:name/_meta?:view
[5d10d803-ccb0-4f20-9301-0b159196e8c6] http_do #1: method: get url: http://localhost:3203/source/Apache/apache2/_meta?view=flagdetails
[5d10d803-ccb0-4f20-9301-0b159196e8c6] RT http://localhost:3203/source/Apache/apache2/_meta?view=flagdetails {"view"=>0.64658, "db"=>3.6246130000000005, "backend"=>0, "xml"=>0, :runtime=>31.105, :all=>73.883977}
[5d10d803-ccb0-4f20-9301-0b159196e8c6] Rendered package/_tabs.html.erb (76.5ms)
[5d10d803-ccb0-4f20-9301-0b159196e8c6] Rendered shared/_download_repository_link.html.erb (0.4ms)
[5d10d803-ccb0-4f20-9301-0b159196e8c6] Rendered layouts/_watch_and_search.html.erb (0.5ms)
[5d10d803-ccb0-4f20-9301-0b159196e8c6] Rendered layouts/_header.html.erb (1.1ms)
[5d10d803-ccb0-4f20-9301-0b159196e8c6] No alt/title text for sprite_tag
[5d10d803-ccb0-4f20-9301-0b159196e8c6] Rendered layouts/_personal_navigation.html.erb (1.2ms)
[5d10d803-ccb0-4f20-9301-0b159196e8c6] Rendered layouts/_flash.html.erb (0.1ms)
[5d10d803-ccb0-4f20-9301-0b159196e8c6] Completed 200 OK in 299ms (Views: 85.8ms | ActiveRecord: 0.0ms | API: 207.9ms (XML: 0.0ms , View: 1.5ms , Backend: 0.0ms , DB: 6.8ms , HTTP: 131.8ms) | XML: 0.5ms)
[11c4642c-6ad5-4be2-85ba-2d47d0459495] Started GET "/package/requests/Apache/apache2" for 127.0.0.1 at 2013-08-29 10:43:27 +0000
[11c4642c-6ad5-4be2-85ba-2d47d0459495] Processing by PackageController#requests as HTML
[11c4642c-6ad5-4be2-85ba-2d47d0459495] Parameters: {"project"=>"Apache", "package"=>"apache2"}
[11c4642c-6ad5-4be2-85ba-2d47d0459495] Setting return_to: "/package/requests/Apache/apache2"
[11c4642c-6ad5-4be2-85ba-2d47d0459495] Authenticating with iChain mode: off
[11c4642c-6ad5-4be2-85ba-2d47d0459495] Anonymous request to /package/requests/Apache/apache2
[11c4642c-6ad5-4be2-85ba-2d47d0459495] [REST] find( Project, [{:name=>"Apache"}] )
[11c4642c-6ad5-4be2-85ba-2d47d0459495] params {:name=>"Apache"}
[11c4642c-6ad5-4be2-85ba-2d47d0459495] uri is: http://localhost:3203/source/:name/_meta?:view
[11c4642c-6ad5-4be2-85ba-2d47d0459495] http_do #1: method: get url: http://localhost:3203/source/Apache/_meta?
[11c4642c-6ad5-4be2-85ba-2d47d0459495] RT http://localhost:3203/source/Apache/_meta? {"view"=>0.49237000000000003, "db"=>1.0714299999999999, "backend"=>0, "xml"=>0, :runtime=>10.542, :all=>14.396222999999999}
[11c4642c-6ad5-4be2-85ba-2d47d0459495] [REST] find( Package, [{:project=>"Apache", :name=>"apache2"}] )
[11c4642c-6ad5-4be2-85ba-2d47d0459495] params {:project=>"Apache", :name=>"apache2"}
[11c4642c-6ad5-4be2-85ba-2d47d0459495] uri is: http://localhost:3203/source/:project/:name/_meta?:view
[11c4642c-6ad5-4be2-85ba-2d47d0459495] http_do #1: method: get url: http://localhost:3203/source/Apache/apache2/_meta?
[11c4642c-6ad5-4be2-85ba-2d47d0459495] RT http://localhost:3203/source/Apache/apache2/_meta? {"view"=>0.312125, "db"=>0.8373169999999999, "backend"=>0, "xml"=>0, :runtime=>9.513, :all=>51.369587}
[11c4642c-6ad5-4be2-85ba-2d47d0459495] Rendered package/_tabs.html.erb (3.4ms)
[11c4642c-6ad5-4be2-85ba-2d47d0459495] Rendered shared/_select_requests.html.erb (1.5ms)
[11c4642c-6ad5-4be2-85ba-2d47d0459495] Rendered layouts/_watch_and_search.html.erb (0.4ms)
[11c4642c-6ad5-4be2-85ba-2d47d0459495] Rendered layouts/_header.html.erb (1.0ms)
[11c4642c-6ad5-4be2-85ba-2d47d0459495] No alt/title text for sprite_tag
[11c4642c-6ad5-4be2-85ba-2d47d0459495] Rendered layouts/_personal_navigation.html.erb (1.0ms)
[11c4642c-6ad5-4be2-85ba-2d47d0459495] Rendered layouts/_flash.html.erb (0.1ms)
[11c4642c-6ad5-4be2-85ba-2d47d0459495] Completed 200 OK in 82ms (Views: 12.2ms | ActiveRecord: 0.0ms | API: 65.8ms (XML: 0.0ms , View: 0.8ms , Backend: 0.0ms , DB: 1.9ms , HTTP: 45.7ms) | XML: 0.3ms)
[bd2053dd-2e7a-4dfe-b882-c6a1e827377d] Started GET "/request/list?states%5B%5D=new&states%5B%5D=review&types%5B%5D=all&project=Apache&package=apache2&no_target=true" for 127.0.0.1 at 2013-08-29 10:43:27 +0000
[bd2053dd-2e7a-4dfe-b882-c6a1e827377d] Processing by RequestController#list as */*
[bd2053dd-2e7a-4dfe-b882-c6a1e827377d] Parameters: {"states"=>["new", "review"], "types"=>["all"], "project"=>"Apache", "package"=>"apache2", "no_target"=>"true"}
[bd2053dd-2e7a-4dfe-b882-c6a1e827377d] Setting return_to: "/request/list?states%5B%5D=new&states%5B%5D=review&types%5B%5D=all&project=Apache&package=apache2&no_target=true"
[bd2053dd-2e7a-4dfe-b882-c6a1e827377d] Authenticating with iChain mode: off
[bd2053dd-2e7a-4dfe-b882-c6a1e827377d] Anonymous request to /request/list?states%5B%5D=new&states%5B%5D=review&types%5B%5D=all&project=Apache&package=apache2&no_target=true
[bd2053dd-2e7a-4dfe-b882-c6a1e827377d] http_do #1: method: get url: http://localhost:3203/webui/requests/ids?action=list&controller=request&no_target=true&package=apache2&project=Apache&states%5B%5D=new&states%5B%5D=review
[bd2053dd-2e7a-4dfe-b882-c6a1e827377d] RT http://localhost:3203/webui/requests/ids?action=list&controller=request&no_target=true&package=apache2&project=Apache&states%5B%5D=new&states%5B%5D=review {"view"=>0.122195, "db"=>1.8294869999999999, "backend"=>0, "xml"=>0, :runtime=>9.404, :all=>12.263116}
[bd2053dd-2e7a-4dfe-b882-c6a1e827377d] data [
]
[bd2053dd-2e7a-4dfe-b882-c6a1e827377d] Rendered shared/_requests.html.erb (0.1ms)
[bd2053dd-2e7a-4dfe-b882-c6a1e827377d] Completed 200 OK in 15ms (Views: 0.7ms | ActiveRecord: 0.0ms | API: 12.3ms (XML: 0.0ms , View: 0.1ms , Backend: 0.0ms , DB: 1.8ms , HTTP: 2.9ms) | XML: 0.0ms)
[c9450b14-d95c-4371-afd1-153fd467f269] Started GET "/package/revisions/Apache/apache2" for 127.0.0.1 at 2013-08-29 10:43:27 +0000
[c9450b14-d95c-4371-afd1-153fd467f269] Processing by PackageController#revisions as HTML
[c9450b14-d95c-4371-afd1-153fd467f269] Parameters: {"project"=>"Apache", "package"=>"apache2"}
[c9450b14-d95c-4371-afd1-153fd467f269] Setting return_to: "/package/revisions/Apache/apache2"
[c9450b14-d95c-4371-afd1-153fd467f269] Authenticating with iChain mode: off
[c9450b14-d95c-4371-afd1-153fd467f269] Anonymous request to /package/revisions/Apache/apache2
[c9450b14-d95c-4371-afd1-153fd467f269] [REST] find( Project, [{:name=>"Apache"}] )
[c9450b14-d95c-4371-afd1-153fd467f269] params {:name=>"Apache"}
[c9450b14-d95c-4371-afd1-153fd467f269] uri is: http://localhost:3203/source/:name/_meta?:view
[c9450b14-d95c-4371-afd1-153fd467f269] http_do #1: method: get url: http://localhost:3203/source/Apache/_meta?
[c9450b14-d95c-4371-afd1-153fd467f269] RT http://localhost:3203/source/Apache/_meta? {"view"=>0.41037, "db"=>0.8081179999999999, "backend"=>0, "xml"=>0, :runtime=>91.757, :all=>132.59579499999998}
[c9450b14-d95c-4371-afd1-153fd467f269] [REST] find( Package, [{:project=>"Apache", :name=>"apache2"}] )
[c9450b14-d95c-4371-afd1-153fd467f269] params {:project=>"Apache", :name=>"apache2"}
[c9450b14-d95c-4371-afd1-153fd467f269] uri is: http://localhost:3203/source/:project/:name/_meta?:view
[c9450b14-d95c-4371-afd1-153fd467f269] http_do #1: method: get url: http://localhost:3203/source/Apache/apache2/_meta?
[c9450b14-d95c-4371-afd1-153fd467f269] RT http://localhost:3203/source/Apache/apache2/_meta? {"view"=>0.517123, "db"=>1.065307, "backend"=>0, "xml"=>0, :runtime=>13.065, :all=>54.027223}
[c9450b14-d95c-4371-afd1-153fd467f269] free_cache [{:project=>"Apache", :package=>"apache2"}] Directory_4e592b7c998254ee02d6e99526c8b7a9
[c9450b14-d95c-4371-afd1-153fd467f269] [REST] find( Directory, [{:project=>"Apache", :package=>"apache2"}] )
[c9450b14-d95c-4371-afd1-153fd467f269] params {:project=>"Apache", :package=>"apache2"}
[c9450b14-d95c-4371-afd1-153fd467f269] uri is: http://localhost:3203/source/:project/:package?:expand&:rev
[c9450b14-d95c-4371-afd1-153fd467f269] http_do #1: method: get url: http://localhost:3203/source/Apache/apache2?
[c9450b14-d95c-4371-afd1-153fd467f269] RT http://localhost:3203/source/Apache/apache2? {"view"=>nil, "db"=>1.2820799999999999, "backend"=>0, "xml"=>0, :runtime=>21.564, :all=>63.337561}
[c9450b14-d95c-4371-afd1-153fd467f269] Rendered package/_tabs.html.erb (3.2ms)
[c9450b14-d95c-4371-afd1-153fd467f269] DEPRECATION WARNING: button_to_function is deprecated and will be removed from Rails 4.1. We recommend using Unobtrusive JavaScript instead. See http://guides.rubyonrails.org/working_with_javascript_in_rails.html#unobtrus.... (called from _app_views_package_revisions_html_erb__811086614884476978_60374300 at http://ci.opensuse.org/job/obs_master_testsuite_webui/ws/src/webui/app/views...:9)
[c9450b14-d95c-4371-afd1-153fd467f269] --> direct_http url: #