[allura:tickets] #8204 Create new neighbourhood

2018-06-13 Thread Vrinda
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?


Attachments:

- 
[Git_issue.png](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/7f9fb8bf/b038/attachment/Git_issue.png)
 (149.7 kB; image/png)


---

** [tickets:#8204] Create new neighbourhood**

**Status:** open
**Milestone:** unreleased
**Created:** Fri Jun 08, 2018 06:15 AM UTC by Vrinda
**Last Updated:** Mon Jun 11, 2018 08:41 AM UTC
**Owner:** nobody


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.


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

Re: [GSoC] [COMDEV-254] Allura - Personal Dashboard

2018-06-13 Thread Deshani Geethika
Hi Dave,

Thanks for reviewing and merging the above requests.

I've created a helper method to avoid code duplication in
DashboardController.index and UserProfileApp.profile_sections, and
added a merge
request .

Please review it and let me know if any improvements required.

Regards!

On Tue, Jun 12, 2018 at 1:20 AM Deshani Geethika 
wrote:

> Hi Dave,
>
> I've updated the above merge request
> , as
> I've fixed an issue in a template.
>
> Meanwhile, I started a new branch for dashboard tests and added a simple
> test to check '/dashboard' route. I've created a new merge request
>  for
> this. Please review it and let me know if any improvements required.
>
> Regards!
>
> On Sat, Jun 9, 2018 at 12:07 PM Deshani Geethika <
> deshanigeeth...@gmail.com> wrote:
>
>> Hi Dave,
>>
>> Thanks for the clarifications :)
>>
>> I've fixed the issues with test cases and updated the merge request
>> .
>> Please review it and let me know if any improvements required
>>
>> Regards!
>>
>> On Wed, Jun 6, 2018 at 8:56 PM Dave Brondsema  wrote:
>>
>>> On 6/6/18 5:37 AM, Deshani Geethika wrote:
>>> > Hi Dave,
>>> >
>>> > I need some help in understanding an error related to test cases.
>>> >
>>> > I was trying to write a test case to check the '/neighborhood' route in
>>> > Allura/allura/tests/functional/test_root.py as below.
>>> >
>>> > def test_neighborhood(self):
>>> >> response = self.app.get('/neighborhood/')
>>> >
>>> >
>>> > But I get the following error, when I run the above test case.
>>> >
>>> > Traceback (most recent call last):
>>> >>   File
>>> >>
>>> "/home/deshani/env-allura/local/lib/python2.7/site-packages/nose/case.py",
>>> >> line 197, in runTest
>>> >> self.test(*self.arg)
>>> >>   File
>>> >>
>>> "/home/deshani/src/allura/Allura/allura/tests/functional/test_root.py",
>>> >> line 58, in test_neighborhood
>>> >> response = self.app.get('/neighborhood/')
>>> >>   File "/home/deshani/src/allura/AlluraTest/alluratest/validation.py",
>>> >> line 322, in get
>>> >> resp = super(ValidatingTestApp, self).get(*args, **kw)
>>> >>   File "/home/deshani/src/allura/AlluraTest/alluratest/validation.py",
>>> >> line 269, in get
>>> >> return super(PostParamCheckingTestApp, self).get(*args, **kwargs)
>>> >>   File
>>> >>
>>> "/home/deshani/env-allura/local/lib/python2.7/site-packages/webtest/app.py",
>>> >> line 756, in get
>>> >> expect_errors=expect_errors)
>>> >>   File
>>> >>
>>> "/home/deshani/env-allura/local/lib/python2.7/site-packages/webtest/app.py",
>>> >> line 1118, in do_request
>>> >> self._check_status(status, res)
>>> >>   File
>>> >>
>>> "/home/deshani/env-allura/local/lib/python2.7/site-packages/webtest/app.py",
>>> >> line 1154, in _check_status
>>> >> res)
>>> >> AppError: Bad response: 404 Not Found (not 200 OK or 3xx redirect for
>>> >> http://localhost/neighborhood/)
>>> >
>>> >
>>> > Can you help me to understand why this error comes up?
>>> >
>>> > Regards!
>>>
>>>
>>> Wow, this was a tricky one!  I was stumped about this for a while too.
>>> Its
>>> happening because of some helper code for tests, that is not very
>>> obvious.  In
>>> Allura/allura/controllers/basetest_project_root.py a modified root
>>> controller is
>>> used for tests, which makes some project & tool testing easier.  This
>>> controller
>>> is used because test.ini specifies "override_root=basetest_project_root"
>>>
>>> And then in this controller on line 71 there is a list of root controller
>>> attributes that is hardcoded.  So you will have to add 'neighborhood' and
>>> 'dashboard' to that list.
>>>
>>> I would also recommend adding a comment on the real RootController
>>> mentioning
>>> the BasetestProjectRootController so that anyone else in the future who
>>> adds a
>>> root url knows that they have to update the other place too.
>>>
>>>
>>>
>>> --
>>> Dave Brondsema : d...@brondsema.net
>>> http://www.brondsema.net : personal
>>> http://www.splike.com : programming
>>>   <><
>>>
>>
>>
>> --
>> *Deshani Geethika*
>> Undergraduate at Department of Computer Science and Engineering
>> Faculty of Engineering - University of Moratuwa Sri Lanka
>> LinkedIn  | GitHub
>>  | Mobile - +94776383034
>>
>>
>
> --
> *Deshani Geethika*
> Undergraduate at Department of Computer Science and Engineering
> Faculty of Engineering - University of Moratuwa Sri Lanka
> LinkedIn  | GitHub
>  | Mobile - +94776383034
>
>

-- 
*Deshani Geethika*
Undergraduate at Department of Computer Science and Engineering
Faculty of Engineering - University of Moratuwa Sri Lanka
LinkedIn 

[allura:tickets] Re: #8204 Create new neighbourhood

2018-06-13 Thread Dave Brondsema
Is the `taskd` process running?  That is an allura command that runs background 
processes like initializing repositories.  With the docker setup it is just one 
of the containers.  If you are running without docker, 
https://forge-allura.apache.org/docs/getting_started/install_each_step.html#allura-task-processing
 has the basic command to run it.


---

** [tickets:#8204] Create new neighbourhood**

**Status:** open
**Milestone:** unreleased
**Created:** Fri Jun 08, 2018 06:15 AM UTC by Vrinda
**Last Updated:** Wed Jun 13, 2018 11:19 AM UTC
**Owner:** nobody


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.


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #8206 Personal Dashboard - Add helper method to load sections of Dashboard and Profile

2018-06-13 Thread Deshani



---

** [tickets:#8206] Personal Dashboard - Add helper method to load sections of 
Dashboard and Profile**

**Status:** open
**Milestone:** unreleased
**Labels:** Personal Dashboard 
**Created:** Wed Jun 13, 2018 06:32 PM UTC by Deshani
**Last Updated:** Wed Jun 13, 2018 06:32 PM UTC
**Owner:** Deshani


A helper method to avoid code duplication in DashboardController.index and 
UserProfileApp.profile_sections


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #8204 Create new neighbourhood

2018-06-13 Thread Vrinda
Yes. taskd had been running. I checked the taskd.log and see a 'Permission 
denied' error. Could this be  the problem?

--
08:24:49,480 ERROR [allura.model.monq_model] Error "[Errno 13] Permission 
denied: '/srv/git/USS/artodbc/code.git'" on job 
Traceback (most recent call last):
...
...

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

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


---

** [tickets:#8204] Create new neighbourhood**

**Status:** open
**Milestone:** unreleased
**Created:** Fri Jun 08, 2018 06:15 AM UTC by Vrinda
**Last Updated:** Wed Jun 13, 2018 11:19 AM UTC
**Owner:** nobody


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.


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.