#1533 Provide admin action to refresh SCM repo

v1.0.0
closed
sf-1 (616)
SCM
nobody
2015-08-20
2011-02-18
No

I really hope that this won't be required too often in production, but when it will be needed, it will save us unsatisfied user and/or support request. And it's for sure useful for development and debugging. "It" is ability to refresh a repo from web UI. Typical usecase during debugging: create a repo, then go to FS and replace empty created repo with one containing content useful for testing, then hit "refresh" action, and be able to see it in web UI.

So, I at least add SCM Admin action, /p/test/admin/git/refresh, and ideally that action should be available in Admin actions list for SCM repo.

Discussion

  • Paul Sokolovsky - 2011-02-18
    • status: open --> in-progress
     
  • Dave Brondsema

    Dave Brondsema - 2011-02-22
    • status: in-progress --> code-review
    • assigned_to: Paul Sokolovsky --> Dave Brondsema
    • milestone: limbo --> feb-21
     
  • Dave Brondsema

    Dave Brondsema - 2011-02-22
    • assigned_to: Dave Brondsema --> Paul Sokolovsky
     
  • Dave Brondsema

    Dave Brondsema - 2011-02-22

    38f36aec8287f291e0ebe85ad3164c8dfaafe84a seems mostly unnecessary - allura/controllers/repository.py already @exposes a /refresh URL. Maybe enhance that method, such that if there is a referer it calls flash() and redirects). Also - shouldn't this publish a message to queue a refresh (like in repository.py does) instead of doing it immediately - which make take a while.

    Second commit is fine.

     
  • Dave Brondsema

    Dave Brondsema - 2011-02-24
    • size: 2 --> 1
     
  • Paul Sokolovsky - 2011-03-03

    Thanks Dave, done as you suggested.

    • status: code-review --> closed
     
  • Dave Brondsema

    Dave Brondsema - 2011-03-03
     

Log in to post a comment.