#4391 Create Project Activity page for projects

v1.0.0
closed
sf-4 (350)
General
2015-08-20
2012-06-15
No

This page will show recent activity for the project. Figure out how/where this will fit into the UI. Stub it out with an empty controller method and html template.

Idea: create a tool that is set up like 'search' is, so that it is always installed and not removable/configurable and doesn't show up in the tool nav either. Yet not hardcoded into the platform, so other deployments of Allura don't have to use it. Then the project index e.g. /p/projectname/ would always show (or redirect) to the activity display page.

Include a config flag to control whether this shows up

Discussion

  • Dave Brondsema

    Dave Brondsema - 2012-06-15
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,5 @@
     This page will show recent activity for the project. Figure out how/where this will fit into the UI. Stub it out with an empty controller method and html template.
    +
    +Idea: create a tool that is set up like 'search' is, so that it is always installed and not removable/configurable and doesn't show up in the tool nav either.  Yet not hardcoded into the platform, so other deployments of Allura don't have to use it.  Then the project index e.g. /p/projectname/ would always show (or redirect) to the activity display page.
    +
    +Include a config flag to control whether this shows up
    
    • size: --> 4
     
  • Cory Johns - 2012-06-19
    • status: open --> in-progress
    • assigned_to: Cory Johns
     
  • Cory Johns - 2012-06-19
    • status: in-progress --> code-review
    • qa: Tim Van Steenburgh
     
  • Cory Johns - 2012-06-19

    allura:cj/4391

     
  • Cory Johns - 2012-06-20

    You have to add activity_stream.enabled = true to production.ini under the [app:main] section to test this manually.

     
    • status: code-review --> in-progress
     
    • Write script to add the activity tool to existing projects that don't have it
    • Add ForgeActivity to the run_tests script
    • When I run nosetests in ForgeActivity, I get an error:
    (env-allura)root@h7v7029:/var/local/allura/ForgeActivity(cj/4391)$ nosetests
    
    ERROR: forgeactivity
      vim +390 /var/local/env-allura/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/loader.py  # loadTestsFromName
        addr.filename, addr.module)
      vim +39  /var/local/env-allura/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/importer.py  # importFromPath
        return self.importFromDir(dir_path, fqname)
      vim +86  /var/local/env-allura/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/importer.py  # importFromDir
        mod = load_module(part_fqname, fh, filename, desc)
      vim +1   forgeactivity/__init__.py  # <module>
        from main import ForgeActivityApp
      vim +4   forgeactivity/main.py  # <module>
        from pylons import c, response
    ImportError: cannot import name c
    
    1 test, 0 failures, 1 error in 0.0s
    
     
  • Cory Johns - 2012-06-21
    • status: in-progress --> code-review
     
  • Cory Johns - 2012-06-21

    Changes pushed to same branch

     
  • Nice job. We may want/need more params on the script before we run it (to narrow down which neighborhoods and projects get the activity tool installed), but leaving as-is for now since I'm not sure how we'll want to run it.

     
    • status: code-review --> closed
     

Log in to post a comment.