#4568 Improve UI when repo processing is happening in the background

v1.0.0
closed
sf-2 (994)
SCM
nobody
2015-08-20
2012-07-17
No

Ensure we set the status when a clone starts (from a migration, SVN import, or fork).

Show something more useful and obvious, rather than a tiny "initing" or "analyzing" in the sidebar.

Discussion

  • Dave Brondsema

    Dave Brondsema - 2012-07-19
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,3 @@
    +Ensure we set the status when a clone starts (from a migration, SVN import, or fork).
    +
     Show something more useful and obvious, rather than a tiny "initing" or "analyzing" in the sidebar.
    
    • milestone: forge-backlog --> forge-jul-27
     
    • status: open --> in-progress
    • assigned_to: Tim Van Steenburgh
     
  • Dave Brondsema

    Dave Brondsema - 2012-07-27
    • size: --> 2
     
  • forge:tv/4568
    sftheme:tv/4568

    This change removes the repo status from the sidebar and includes it more obviously in the body of all repo pages. If the repo status is not 'ready':

    • Status is displayed at top of page content (in new before_content block), with progress spinner
    • Status is checked and updated every 15s via ajax.
    • If/when status changes to 'ready', spinner stops, status is updated, and a link is appended prompting user to refresh the page.
    • On the repo index page, the 'Empty Repo' page is not displayed if the repo status is not 'ready' (gives repo setup/import/clone time to complete before showing the 'Empty Repo' page.

    To test, create a Git repo on a sandbox. Find the repo in mongo:

    > use project-data;
    > r = db['git-repository'].find({url_path: "/p/test4568/"})[0];
    > r.status = 'analyzing';
    > db['git-repository'].save(r);
    

    After changing the status to 'analyzing', refresh the repo page in a browser. Confirm status/spinner displayed. Change status to 'ready' in mongo:

    > r.status = 'ready';
    > db['git-repository'].save(r);
    

    Within 15 seconds, the status on the repo web page should update to 'ready' with a link to refresh.

    Can also test with Hg/Svn, and with allura theme.

     
    • status: in-progress --> code-review
    • qa: Jenny Steele
     
  • Jenny Steele - 2012-08-03

    I'm getting a js error when I go to the repo in analyzing status (see screenshot). Also, the yellow shadow around analyzing looks weird. I think the message is obvious enough from the placement, loading icon, and font size. It would be nice to make the page take up the whole container width since it looks strange to have a blank space over there where the sidebar would go.

     
  • Jenny Steele - 2012-08-03
    • status: code-review --> in-progress
     
    • status: in-progress --> code-review
     
  • Changes on forge and sftheme:

    • Fixed javascript error
    • Removed text-shadow
    • Hid left sidebar when repo_status != ready
     
  • Jenny Steele - 2012-08-07
    • status: code-review --> closed
     

Log in to post a comment.