Admin controller: Use PathPart, not Path

[?]
Mar 14, 2013, 11:22 PM
B7IDAXTZF6REK6SLYJY7X22RGRHYLAWMGGQTZVPPJCSQ7DYFWUXQC

Dependencies

  • [2] JARRBLZD Bootstrapify the Hydra forms (except the project and jobset edit pages)
  • [3] 67NFGL7D add links in admin page to clear queue (all non-running builds, and all non-running old (non-current) builds)
  • [4] FX2DV5AP hydra: remove old clear eval cache option
  • [5] RXSEJG7W Do not delete builds when clearing the queue. Fixes #8.
  • [6] MOX7XJ2E Merge the BuildSchedulingInfo table into the Builds table
  • [7] ZWCTAZGL added newsitems, added some admin options to clear various caches.
  • [8] JOVVHIJX Remove all entry points to modify machines
  • [9] SMCOU72F hydra: add some admin for adding/enabling/etc build machines
  • [10] QT4FO2HP refactored admin controller, using chains, to avoid using requireadmin on each endpoint

Change contents

  • replacement in src/lib/Hydra/Controller/Admin.pm at line 35
    [3.3][3.3:92]()
    sub clear_queue_non_current : Chained('admin') Path('clear-queue-non-current') Args(0) {
    [2.385]
    [3.92]
    sub clear_queue_non_current : Chained('admin') PathPart('clear-queue-non-current') Args(0) {
  • replacement in src/lib/Hydra/Controller/Admin.pm at line 42
    [3.5671][3.143:220](),[3.283][3.143:220]()
    sub clearfailedcache : Chained('admin') Path('clear-failed-cache') Args(0) {
    [3.261]
    [3.350]
    sub clearfailedcache : Chained('admin') PathPart('clear-failed-cache') Args(0) {
  • replacement in src/lib/Hydra/Controller/Admin.pm at line 49
    [3.726][3.295:366]()
    sub clearvcscache : Chained('admin') Path('clear-vcs-cache') Args(0) {
    [3.485]
    [3.787]
    sub clearvcscache : Chained('admin') PathPart('clear-vcs-cache') Args(0) {
  • replacement in src/lib/Hydra/Controller/Admin.pm at line 68
    [3.1146][3.367:424]()
    sub managenews : Chained('admin') Path('news') Args(0) {
    [3.1146]
    [3.1193]
    sub managenews : Chained('admin') PathPart('news') Args(0) {
  • replacement in src/lib/Hydra/Controller/Admin.pm at line 77
    [3.1392][3.425:490]()
    sub news_submit : Chained('admin') Path('news/submit') Args(0) {
    [3.1392]
    [3.1447]
    sub news_submit : Chained('admin') PathPart('news/submit') Args(0) {
  • replacement in src/lib/Hydra/Controller/Admin.pm at line 95
    [3.1806][3.491:556]()
    sub news_delete : Chained('admin') Path('news/delete') Args(1) {
    [3.1806]
    [3.1861]
    sub news_delete : Chained('admin') PathPart('news/delete') Args(1) {