#8204 Create new neighbourhood

unreleased
open
nobody
None
General
nobody
5 days ago
2018-06-08
Vrinda
No

Hello,

I understand neighbourhoods can be used for grouping similar projects. By default I can see 3 neighbourhoods created by default : Adobe, Projects and Users.
Is it possible to create new neighbourhood?

Regards,
Vrinda.

Discussion

  • Vrinda

    Vrinda - 2018-06-08

    Also, I see Clustering, Communications and Database tabs on the left of the home page which are empty. Are these similar to neighbourhoods? If so, can I create new ones here?

     
  • Vrinda

    Vrinda - 2018-06-08

    When I tried an 'Evict' of a project from a neighbourhood, it gives the error 'AttributeError: 'NoneType' object has no attribute '_id''

     
  • Dave Brondsema

    Dave Brondsema - 2018-06-08

    Yes, you can create more neighborhoods with the create-neighborhood command. https://forge-allura.apache.org/docs/getting_started/administration.html

    The Clustering, etc categories on the home page are not used by anything any more, and are due for removal. Most Allura instances customize their index page.

    The Evict option under neighborhood moderation is not a commonly used feature, but I tested it just now and it worked fine. If you still get that error, can you provide more details about the steps you took, which project and neighborhood, etc?

     
  • Vrinda

    Vrinda - 2018-06-11

    I could create new neighborhoods using the pastor command. Thanks :)
    Is it possible to delete existing neighborhoods and projects? I did not see any commands for that..

    You mentioned customizing the index page, how can I do that?

    After I restarted the server, the Evict seems to be working fine, so I do not know what was the issue earlier. Whenever I Evict, the project gets evicted to the 'Projects' neighborhood. Is this the expected behavior?

     
  • Vrinda

    Vrinda - 2018-06-13

    Thanks :)
    I am now trying to setup git connection for a project. I created a dummy project and want to try adding a sample code file to it. I followed the steps mentioned in 'First time using Git'. If you look at the attachment, you'll see that the status says 'Repo status: initializing...'. What do I need to do to see the file in repo?

     
  • Vrinda

    Vrinda - 2018-06-14

    Yes. taskd had been running. I checked the taskd.log and see a 'Permission denied' error. Could this be the problem? Taskd log attached here.


    08:24:49,480 ERROR [allura.model.monq_model] Error "[Errno 13] Permission denied: '/srv/git/USS/artodbc/code.git'" on job <MonQTask 5b21d8f82fcfd70add915c24="" (busy)="" P:10="" allura.tasks.repo_tasks.init="" BMH1104243="" pid="" 2747="" project:="" USS="" artodbc="" app:code="" user:admin1="">
    Traceback (most recent call last):
    . . .
    . . .

    OSError: [Errno 13] Permission denied: '/srv/git/USS/artodbc/code.git'

    When I had to run the git commands via terminal to add and push files into the repository, I had to use sudo always.

     
    Last edit: Vrinda 2018-06-14
    • Dave Brondsema

      Dave Brondsema - 2018-06-14

      Yep, that is the error. You will need to set permissions so the allura webapp and taskd processes can read & write to that directory. Or change that directory with the scm.repos.root setting and scm.host.file.git setting in the .ini config file (and restart services).

      You'll probably want to make a new code repo after that, to make sure it gets initialized correctly.

      And then you should do a checkout of the repo, not commit directly in the /srv/git path.

       
  • Vrinda

    Vrinda - 2018-06-15

    I set read/write permissions to /srv/git folder and created new code repo. Now I am able to see the repo file in the browser. Thanks :)

    What is the command to restart the services - without losing the neighborhood and projects created?

     
    • Dave Brondsema

      Dave Brondsema - 2018-06-15

      Everything is saved to mongodb, so restarts wont' lose anything. With the docker setup, you can restart with: docker-compose restart taskd and docker-compose restart web

      With step-by-step installation you basically just stop the process and then start it again. (In a production-ready setup you'd want to create a service to manage it). So something like:

      • pkill -f gunicorn and then gunicorn --reload --paste development.ini again
      • pkill "^taskd"; and then nohup paster taskd development.ini >> /var/log/allura/taskd.log 2>&1 & again
       
  • Vrinda

    Vrinda - 2018-06-18

    I was also running the command
    ALLURA_TEST_DATA=False paster setup-app development.ini
    This was recreating the mongodb maybe?

    Without this, after the restart I can see the projects persisted.

     
  • 小融

    小融 - 2018-06-25
     
    Last edit: 小融 2018-06-25
  • Vrinda

    Vrinda - 2018-07-26

    Hello Dave,
    In sourceforge for each project there is possibility to provide user reviews and to view the number of downloads. Are these features part of Allura? Or are there plugins available that I can integrate?

     
    • Dave Brondsema

      Dave Brondsema - 2018-07-27

      Those are not part of the open source Allura, sorry

       
  • Vrinda

    Vrinda - 2018-08-26

    I see some recent tickets on creating a personalized dashboard. Is this already part of Allura? If so, how can I get this into my ubuntu installation?

     
    • Dave Brondsema

      Dave Brondsema - 2018-08-27

      It is not in a released version yet. But it is on the "master" branch of allura, so if you are using a git checkout of Allura you can update to the latest and use it.

       
  • Vrinda

    Vrinda - 2018-08-27

    Thanks :) Will try a git update.

    I am also trying to install Allura on a Ubuntu subsytem in Windows and have been following the steps in https://forge-allura.apache.org/docs/getting_started/install_each_step.html

    In the step of installing virtualenv, i get the below exception.

    ~$ sudo pip install virtualenv
    Collecting virtualenv
    Exception:
    Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 209, in main
    status = self.run(options, args)
    File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 317, in run
    requirement_set.prepare_files(finder)
    File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 360, in prepare_files
    ignore_dependencies=self.ignore_dependencies))

    Complete exception is available in the attached Expn.txt

     
  • Vrinda

    Vrinda - 6 days ago

    Okay, the exception in my previous comment was due to my company proxy. I've now resolved by using the --proxy option.

    I was trying to change the look and feel of the pages. Can you please guide me if there are existing themes available to experiment with the UI?

    Also, I couldn't find any reference where I can make the UI responsive. Have you come across any reference in order to start on the same?

     
    • Dave Brondsema

      Dave Brondsema - 5 days ago

      Hi,

      https://forge-allura.apache.org/p/allura/wiki/Themes%20in%20Allura/ has some documentation about it. Depending on what you want to do may be more or less work.

      There is not currently a way to make it responsive. Essentially every page would need its HTML & CSS to be rewritten. We would like to have it be responsive at some point, but it would be a lot of work. There is a ticket for it: [#8093] It might be possible to have certain pages be responsive before others, but still would require a lot of changes to get started.

       

      Related

      Tickets: #8093


Log in to post a comment.