#2635 Prevent 'delete project' selection for sf.net - INI UPDATE

v1.0.0
closed
sf-2 (994)
Admin
nobody
2015-08-20
2011-08-17
No

On the admin page, remove the option for a project to delete themselves. If it's easy enough, add a config option that enables it (so OSS can allow it, sf.net would not).

When the config does not allow deletion, make sure that deleting subprojects still works.

Discussion

  • Mark Ramm - 2011-08-18

    We don't need to support deletion from the UI in allura. But we should probably support it in the open source version.

     
  • Dave Brondsema

    Dave Brondsema - 2011-08-18
    • Description has changed:

    Diff:

    --- old 
    +++ new 
    @@ -1,8 +1,5 @@
    -**do we want to allow projects to delete themselves?**  SFX does not allow it, they have to submit a ticket and fit within this policy: https://sourceforge.net/apps/trac/sourceforge/wiki/Removing%20a%20project
    -
    -In the admin overview page, marking a project as deleted is broken:
    -
    -* there is no success or error message
    -* the project is still visible to everyone
    -* forge-classic integration does nothing
    -    * it should mark status as D, not sure if anything else or not
    +On the admin page, remove the option for a project to delete themselves.  If it's easy enough, add a config option that enables it (so OSS can allow it, sf.net would not).
    +
    +When the config allows deletion, make sure that the deletion works properly (currently it doesn't seem to do anything - it should limit projects to be viewable only by admins).
    +
    +When the config does not allow deletion, make sure that deleting subprojects still works.
    
     
  • Might want to hold off on this until I'm done with [#2402] - I'm not sure [#2332] was ever merged.

     

    Related

    Tickets: #2332

  • Dave Brondsema

    Dave Brondsema - 2011-09-07
    • summary: Fix 'delete project' selection --> Prevent 'delete project' selection for sf.net
    • Description has changed:

    Diff:

    --- old 
    +++ new 
    @@ -1,5 +1,3 @@
     On the admin page, remove the option for a project to delete themselves.  If it's easy enough, add a config option that enables it (so OSS can allow it, sf.net would not).
    
    -When the config allows deletion, make sure that the deletion works properly (currently it doesn't seem to do anything - it should limit projects to be viewable only by admins).
    -
     When the config does not allow deletion, make sure that deleting subprojects still works.
    
     
  • Dave Brondsema

    Dave Brondsema - 2011-09-07

    [#2332] fixed the standard delete behavior

     

    Related

    Tickets: #2332

  • Dave Brondsema

    Dave Brondsema - 2011-09-30
    • Description has changed:

    Diff:

    --- old 
    +++ new 
    @@ -1,3 +1,3 @@
     On the admin page, remove the option for a project to delete themselves.  If it's easy enough, add a config option that enables it (so OSS can allow it, sf.net would not).
    
    -When the config does not allow deletion, make sure that deleting subprojects still works.
    +When the config does not allow deletion, make sure that deleting subprojects still works.            
    
    • size: --> 2
     
    • status: open --> in-progress
    • assigned_to: Tim Van Steenburgh
     
  • forge:tv/2635

    Update /var/local/config/production.ini according to https://control.siteops.geek.net/sog/trac/ticket/19231

    $ service restart httpd
    

    In your sandbox, go to /p/test/admin/overview and make sure Delete Project is not an option in the Removal list. Now create or navigate to a subproject and make Delete is an option, and that the subproject can be deleted successfully.

    Also added functional tests for this:

    (env-allura)root@h6v6024:/var/local/allura/Allura(tv/2635)$ nosetests allura.tests.functional.test_admin
    .................
    ----------------------------------------------------------------------
    Ran 17 tests in 90.562s
    
    OK
    
     
    • summary: Prevent 'delete project' selection for sf.net --> Prevent 'delete project' selection for sf.net - INI UPDATE
    • status: in-progress --> code-review
    • assigned_to: Tim Van Steenburgh --> John Hoffmann ☠
     
  • John Hoffman - 2011-10-18

    Merged to dev.

     
  • John Hoffman - 2011-10-18
    • status: code-review --> closed
     

Log in to post a comment.