Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Deleting / Closing a Project

2009-06-19
2013-06-03
  • Hello all

    I am in the process of evaluating this absolutely fantastic code-review software. I am unable to Delete / Close a project. I have enabled

    @project_states = ('Open', 'Closed', 'Deleted');

    run install.pl

    and restarted apache (leaving no stone unturned).

    I still do not see the Delete/Closed options.

    I enabled the same at the topic level and that works magnificently.

    Appreciate any cues...

    Best regards

    Puru

     
    • David Sitsky
      David Sitsky
      2009-06-22

      Hi,

      This works fine for me.  I just tried it with 1.9.9 and had this in my codestriker.conf, like you:

      @project_states = ('Open', 'Closed', 'Deleted');

      This value wasn't over-written further down in your codestriker.conf file?

      You should see a dropdown on the "edit project" page, where you can update the project's state.

      Cheers,
      David

       
      • Hi David

        Thank you for your prompt response. Are there other parameters that need to be set to get the project states?

        I have admin privileges - 1 in the admin field against my email.

        Snip from codestriker.conf.
        --- %< ---
        # The following controls project configuration.  Each Codestriker topic is
        # a member of a specific project.  Uncomment the option you want
        # below.  Note the textual state names below cannot be changed.

        # Default option, projects are enabled, but they have no state
        # changing operations (ie, projects are always in state 'Open').
        # @project_states = ('Open');

        # Don't use projects at all.  Effectively, an implicit "default
        # project" is created and associated with all topics behind the scenes.
        # @project_states = ();
        #
        # Allow for projects to be closed.  Closing a project will
        # not allow new topics to be created in that project.
        # @project_states = ('Open', 'Closed');

        #
        # Allow for projects to be deleted.  This is potentially a dangerous
        # option to allow, as deleting a project will delete all of its member
        # topics as well.  Use with caution.
        # @project_states = ('Open', 'Deleted');
        #
        # Allow for projects to be closed and deleted.  Use with caution.
        @project_states = ('Open', 'Closed', 'Deleted');
        --- >% ----

        Here is codestriker.pl from cgi-bin

        ---%< ---
        #!/usr/bin/perl -wT

        # !!!! THIS FILE IS AUTO-GENERATED by bin/install.pl !!!
        # !!!! DO NOT EDIT !!!
        # The base source is bin/codestriker.pl.base.

        ###############################################################################
        # Codestriker: Copyright (c) 2001, 2002 David Sitsky.  All rights reserved.
        # sits@users.sourceforge.net
        #
        # This program is free software; you can redistribute it and modify it under
        # the terms of the GPL.

        # This is the top level package which receives all HTTP requests, and
        # delegates it to the appropriate Action module.

        require 5.008_0;

        # Set this to the location of the Codestriker libraries on your system.
        # Ideally, this should be done in the apache configs, but trying to do this
        # in an easy way for Apache1/Apache2 with/without mod_perl with/without taint
        # checking turned out to be a major headache.  For mod_perl, setting this
        # ensures the first time Codestriker is loaded, it can be compiled properly,
        # even if @INC is blatted later.  Also note all the use declarations below
        # effectively "pre-load" all of the Codestriker modules in the system, as the
        # modules below load all of their supporting modules.  That is why the
        # template plugins are "pre-loaded" here.

        use lib '/usr/local/httpd/htdocs/codestriker/codestriker-1.9.9/lib';

        use strict;

        use CGI qw/:standard :html3/;
        use CGI::Carp 'fatalsToBrowser';

        use Codestriker;
        use Codestriker::Http::Input;
        use Codestriker::Http::Response;
        use Codestriker::Http::Dispatcher;
        use Codestriker::Action::CreateTopic;
        use Codestriker::Action::EditComment;
        use Codestriker::Action::Search;
        use Codestriker::Action::ListTopics;
        use Codestriker::Action::DownloadTopic;
        use Codestriker::Action::ListProjects;
        use Codestriker::Action::EditProject;
        use Codestriker::Action::CreateProject;
        use Codestriker::Action::MetricsReport;
        use Codestriker::Action::SubmitEditTopicProperties;
        use Codestriker::Action::SubmitEditTopicMetrics;
        use Codestriker::Action::SubmitEditTopicsState;
        use Codestriker::Action::SubmitEditCommentsState;
        use Codestriker::Action::SubmitEditProject;
        use Codestriker::Action::SubmitNewProject;
        use Codestriker::Action::SubmitNewTopic;
        use Codestriker::Action::SubmitNewComment;
        use Codestriker::Action::SubmitSearch;
        use Codestriker::Action::ViewTopicFile;
        use Codestriker::Action::ViewTopicInfo;
        use Codestriker::Action::ViewTopic;
        use Codestriker::Action::ViewTopicProperties;
        use Codestriker::Action::ViewTopicComments;

        --->% ---

        Perl - v5.8.6
        http - v 2.2.11
        mysql - v5.1.35

        Firefox 2.0.0.20

         
        • David Sitsky
          David Sitsky
          2009-06-22

          Does it make any difference if you comment out $admin_users?

          Also - can you send me a screenshot of the edit project page?

           
    • Hello David

      Thank you for your prompt response.

      Here is the link to the screen shot.

      http://img3.imageshack.us/img3/6259/screenshotcodestrikerpr.png

      There is no difference in behaviour, when I comment out admin_users.

       
      • David Sitsky
        David Sitsky
        2009-06-22

        So now click on the "Code Striker Evaluation" link - can you then send me a screenshot of that screen?

         
    • Hi David

      Not sure what changed ...

      I now have the pull-down with Open/Closed/Delete Project to the left of Update Project.

      http://img5.imageshack.us/img5/1282/screenshotcodestrikered.png

      Previously I would  get only the Update Project button.

      Did commenting and uncommenting admin_users help? ... I am not sure. That was the only modification I made.

      Thank you for your help.

       
    • Perhaps I spoke too quickly

      the Default Project still does not show the pulldown.

      http://img4.imageshack.us/img4/1282/screenshotcodestrikered.png

      Does it point to some rights issue as the Default Project existed before the admin/users were created?

       
      • David Sitsky
        David Sitsky
        2009-06-23

        I don't think it is related to $admin_users - but please test it out.

        For some reason, the default project is special.. it can't be deleted.  However, you can rename it to something else.