[Arches] Re: Implementing "Workflows" featrure

2021-02-10 Thread Angela Labrador
Hi Yuval,

To my knowledge, this documentation hasn't been contributed yet to the 
Arches-docs. 

We have an open issue at 
https://github.com/archesproject/arches-docs/issues/215 in case anyone 
wants to take this on.  Adam and I recommend that it's added as new topic 
under Developing with Arches.

Thanks,
Angela

On Wednesday, February 10, 2021 at 4:13:48 AM UTC-5 telem...@gmail.com 
wrote:

> Hi Dennis,
> I mailed you my reply couple of days ago. 
> So the "Workflows" featue in the roadmap refer to those developers tools?
> Do you have any documantation or tutorial for developers for how to 
> implement it?
> Thanks, Yuval
>
> ב-יום שני, 1 בפברואר 2021 בשעה 19:26:11 UTC+2, Dennis Wuthrich כתב/ה:
>
>> Hi Yuval,
>>
>> Workflows are an Arches feature that software developers can use to 
>> create multi-step, custom data editing (or analysis, or visualization) user 
>> interfaces.  Arches provides developers with core workflow management tools 
>> (e.g.: workflow steps, UI templates, data management tools, and "clean up" 
>> utilities).  There is no "Workflow creation user interface", if that's what 
>> you are looking for.
>>
>> Hope this helps.
>>
>> Dennis
>>
>> On Saturday, January 30, 2021 at 8:03:29 AM UTC-8 telem...@gmail.com 
>> wrote:
>>
>>> Hello All,
>>> The roadmap page  mentions a 
>>> new "Workflows" feature,
>>> but I can't find it  neither  in my v5.1 web inteface nor in the 5.1 
>>> Documentaton.
>>> (I do see a "Workflows" components in the arches/app directories ).
>>>  how do I implement this feature?
>>> Thanks
>>> Yuval
>>>
>>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/fe0946dc-45a3-4963-a05b-db7058218ca8n%40googlegroups.com.


Re: [Arches] Re: Error when trying to start celery

2021-02-10 Thread Angela Labrador
Hi Alexei,

I'm back! I have copied the new celery.py file over into my project 
directory as suggested above, however, I still get the same error. 
Error:
Unable to load celery application.
The module XXX was not found.  

where XXX = {settings.ELASTICSEARCH_PREFIX}

The only celery management command 
<https://github.com/archesproject/arches/blob/stable/5.1.x/arches/management/commands/celery.py>
 
that I have is in the arches/arches/management/commands/ directory, and I 
see that is using the elasticsearch_prefix variable on lines 41 and 43 and 
not the project name. When I edit those lines manually and change them to 
use my project's name, I can run the command fine. 

Am I supposed to have a separate celery management command within my 
project folder or is this a bug with the arches management command?

Thanks,
Angela


On Friday, January 29, 2021 at 5:44:25 PM UTC-5 Alexei Peters wrote:

> Hi Angela,
> It looks like you identified the issue.  Older projects weren't created 
> with that celery file and that explains the problem you're seeing.
> Copying that file over to your project should solve the problem.  
> This was most likely an oversight in our upgrade announcement (although I 
> can't be sure).  I'm actually not sure how/if this should be documented.  
> Suggestions are welcome there!  :)
> Glad we solved this!
> Cheers,
> Alexei
>
> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173 
> <(971)%20227-3173>
>
> On Fri, Jan 29, 2021 at 12:17 PM Angela Labrador  wrote:
>
>> Hi Alexei,
>>
>> Yep, I'm running the command local to where the manage.py file is located 
>> (running the command just like any other python manage.py command with no 
>> dir in front of the command).
>>
>> But -- I think you just identified the problem! I do not have a celery.py 
>> file within my-project folder besides the celery.py files in 
>> media/packages/arches. This is a project that has been migrated from 4.0 
>> through the major versions over some time. So, maybe it never created the 
>> celery.py file during one of those migrations? 
>>
>> I jumped on another virtual machine and installed a brand new arches 5.1 
>> project, and it did create a celery.py file with my project name as you 
>> pasted. 
>>
>> Just for reference, on my migrated project, running 
>> find -iname celery.py
>>
>> results in:
>>
>> ./[my-project]/[my-project]/media/packages/arches/arches/management/commands/celery.py
>> ./[my-project]/[my-project]/media/packages/arches/arches/celery.py
>>
>> ./[my-project]/static/packages/arches/tests/fixtures/testing_prj/testing_prj/celery.py
>> ./[my-project]/static/packages/arches/arches/management/commands/celery.py
>> ./[my-project]/static/packages/arches/arches/celery.py
>> ./env/lib/python3.7/site-packages/celery/bin/celery.py
>> ./arches/tests/fixtures/testing_prj/testing_prj/celery.py
>> ./arches/arches/management/commands/celery.py
>> ./arches/arches/celery.py
>>
>> So, should I just copy the contents of the celery.py file from the fresh 
>> project to my migrated project? And do you think this is an anomaly or a 
>> "feature" of migrating from much earlier versions? If the latter, should we 
>> add something to the docs to cover this?
>>
>> Thank you for sticking with this,
>> Angela
>>
>>
>>
>> On Friday, January 29, 2021 at 2:39:06 PM UTC-5 Alexei Peters wrote:
>>
>>> Hi Angela,
>>> Just to be clear the command should be run from the directory where the 
>>> "manage.py" file is located.
>>> EG: you CAN'T do this --> python somedir/manage.py celery start
>>>
>>> Also, does your celery file look something like this?
>>>
>>> from __future__ import absolute_import, unicode_literals
>>> import os
>>> from celery import Celery
>>>
>>> os.environ.setdefault('DJANGO_SETTINGS_MODULE', 
>>> '{project_name}.settings')
>>> app = Celery('{project_name}')
>>> app.config_from_object('django.conf:settings', namespace='CELERY')
>>> app.autodiscover_tasks()
>>>
>>>
>>> where {project_name} is the name of the directory where your project 
>>> exists
>>>
>>> Cheers,
>>> Alexei
>>>
>>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173 
>>> <(971)%20227-3173>
>>> On Wed, Jan 27, 2021 at 7:31 AM Angela Labrador  
>>> wrote:
>>>
>>>> Hi Alexei,
>>>>
>>>> Correct. I am running python manage.py celery start from within 
>>>

[Arches] Re: Custom Card Components: Nested Concept Lists and Option based Boolean Toggles

2021-02-09 Thread Angela Labrador
Hi Mike and Brendon,

Any progress on your custom card components? Jelena recently posted asking 
about nested value lists/conditional collections, and I was wondering if 
you might have some code you could share with the community? (Or some 
lessons learned?)

Thanks,
Angela


On Thursday, April 16, 2020 at 5:52:29 AM UTC-4 Mike Fisher wrote:

> Hi Brendon and Angela,
>
> It's a great idea to discuss sharing custom card components--both 
> auto-name population and nested value lists are high on our list. 
>
> Right now, we're working on a component that enables all fields within a 
> card to be visible in the top card, regardless of cardinality. The 'add' 
> occurs post-entry, rather than before, and the overall number of clicks to 
> access, populate, and save fields is heavily reduced. This won't be 
> relevant for everyone, but if you prefer single form-style data entry and 
> have deeply nested branches, this simplifies user navigation. We've still 
> got a little ways to go on it, though.
>
> Cheers,
> -Mike
>
>
> On Thursday, April 9, 2020 at 6:08:42 PM UTC+1, Angela Labrador wrote:
>>
>> Hi Brendon,
>>
>> I've worked on a card component with Adam Cox that automatically fills in 
>> the current django username on a text node in form view. I would think that 
>> parts of the knockout would be somewhat similar (but you wouldn't have to 
>> do the additional check of getting the variable from the django template). 
>> We opted to modify the default text widget rather than create a new 
>> component because of concerns regarding editing the resource model 
>> midstream, but you could just do this as a custom and not have to do the 
>> additional node.id check that we had to.
>>
>> The repo is at https://github.com/legiongis/fpan  and the files with 
>> relevant code would be:
>>
>>- media/js/views/components/widgets/text.js 
>>- templates/views/components/widgets/text.htm
>>- 
>>- templates/views/components/cards/default.htm
>>
>> I found the google extension "Knockoutjs context debugger" to be really 
>> helpful during this.
>>
>> Hope this helps,
>> Angela
>>
>>
>> On Thursday, April 9, 2020 at 9:44:57 AM UTC-4, Brendon Bangert wrote:
>>>
>>> Dear Arches Developers,
>>>
>>> I am posting today hoping everyone Is doing well in our global time of 
>>> crisis. Working remotely has given me more time to pursue our current 
>>> team's database and with this a closer inspection and custom card 
>>> components. Concerning a previous forum post I had created and with no 
>>> immediate access to a in-house programmer, our team is currently wondering 
>>> if anyone else has created any custom card components they would be 
>>> interested in sharing. Additionally I wanted to start up the conversation 
>>> of the possibility of creating a card component that enables for 
>>> information to appear if, an certain option is selected from a concept 
>>> list. Feel free to post thoughts, or interests in similar customization 
>>> your team is looking for. I wanted to not only get this dialogue started 
>>> but all in all see if anyone else has been seeking something similar.
>>>
>>> Cheers,
>>> Brendon
>>>
>>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/54476ed6-3953-4a4f-b2b0-c7556c482d25n%40googlegroups.com.


Re: [Arches] Re: Error when trying to start celery

2021-01-29 Thread Angela Labrador
Hi Alexei,

Yep, I'm running the command local to where the manage.py file is located 
(running the command just like any other python manage.py command with no 
dir in front of the command).

But -- I think you just identified the problem! I do not have a celery.py 
file within my-project folder besides the celery.py files in 
media/packages/arches. This is a project that has been migrated from 4.0 
through the major versions over some time. So, maybe it never created the 
celery.py file during one of those migrations? 

I jumped on another virtual machine and installed a brand new arches 5.1 
project, and it did create a celery.py file with my project name as you 
pasted. 

Just for reference, on my migrated project, running 
find -iname celery.py

results in:
./[my-project]/[my-project]/media/packages/arches/arches/management/commands/celery.py
./[my-project]/[my-project]/media/packages/arches/arches/celery.py
./[my-project]/static/packages/arches/tests/fixtures/testing_prj/testing_prj/celery.py
./[my-project]/static/packages/arches/arches/management/commands/celery.py
./[my-project]/static/packages/arches/arches/celery.py
./env/lib/python3.7/site-packages/celery/bin/celery.py
./arches/tests/fixtures/testing_prj/testing_prj/celery.py
./arches/arches/management/commands/celery.py
./arches/arches/celery.py

So, should I just copy the contents of the celery.py file from the fresh 
project to my migrated project? And do you think this is an anomaly or a 
"feature" of migrating from much earlier versions? If the latter, should we 
add something to the docs to cover this?

Thank you for sticking with this,
Angela



On Friday, January 29, 2021 at 2:39:06 PM UTC-5 Alexei Peters wrote:

> Hi Angela,
> Just to be clear the command should be run from the directory where the 
> "manage.py" file is located.
> EG: you CAN'T do this --> python somedir/manage.py celery start
>
> Also, does your celery file look something like this?
>
> from __future__ import absolute_import, unicode_literals
> import os
> from celery import Celery
>
> os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{project_name}.settings')
> app = Celery('{project_name}')
> app.config_from_object('django.conf:settings', namespace='CELERY')
> app.autodiscover_tasks()
>
>
> where {project_name} is the name of the directory where your project exists
>
> Cheers,
> Alexei
>
> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173 
> <(971)%20227-3173>
> On Wed, Jan 27, 2021 at 7:31 AM Angela Labrador  wrote:
>
>> Hi Alexei,
>>
>> Correct. I am running python manage.py celery start from within 
>> [my_project] folder, as per docs 
>> <https://arches.readthedocs.io/en/stable/task-management/?highlight=celery#running-celery>,
>>  
>> which results in the 
>> Error:
>> Unable to load celery application.
>> The module [ my settings.ELASTICSEARCH_PREFIX ] was not found.
>>  
>> My project folder structure is standard -- no renaming of anything. 
>>
>> Thanks,
>> Angela
>> On Tuesday, January 26, 2021 at 3:44:15 PM UTC-5 Alexei Peters wrote:
>>
>>> Hi Angela,
>>> I assume that you're running the "python manage.py celery start" 
>>> command from your project and not from the root of the Arches code base 
>>> correct?
>>> The command also assumes that you haven't rename your folders in your 
>>> project directory.
>>> -Alexei
>>>
>>> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173 
>>> <(971)%20227-3173>
>>>
>>>
>>> On Mon, Jan 25, 2021 at 11:35 AM Angela Labrador  
>>> wrote:
>>>
>>>> Hi Lindsay,
>>>>
>>>> Thanks for checking in -- no, I haven't really solved it. I've got a 
>>>> workaround, but would appreciate any ideas or explanations so I can 
>>>> understand how celery is supposed to be configured (or so that we can 
>>>> update the docs if they need to be edited).
>>>>
>>>> Angela
>>>>
>>>>
>>>> On Tuesday, January 19, 2021 at 7:48:47 PM UTC-5 Lindsey Gant wrote:
>>>>
>>>>> Hi Angela,
>>>>>
>>>>> Were you able to find a solution to your celery error? If not, let me 
>>>>> see if someone in the group can follow up.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Lindsey
>>>>> GCI Arches Project Team
>>>>>
>>>>> On Thursday, January 14, 2021 at 2:30:56 PM UTC-8 ala...@gmail.com 
>>>>> wrote:
>>>>>
>>>>>> Hello all,
>>

Re: [Arches] Re: Error when trying to start celery

2021-01-27 Thread Angela Labrador
Hi Alexei,

Correct. I am running python manage.py celery start from within 
[my_project] folder, as per docs 
<https://arches.readthedocs.io/en/stable/task-management/?highlight=celery#running-celery>,
 
which results in the 
Error:
Unable to load celery application.
The module [ my settings.ELASTICSEARCH_PREFIX ] was not found.
 
My project folder structure is standard -- no renaming of anything. 

Thanks,
Angela
On Tuesday, January 26, 2021 at 3:44:15 PM UTC-5 Alexei Peters wrote:

> Hi Angela,
> I assume that you're running the "python manage.py celery start" 
> command from your project and not from the root of the Arches code base 
> correct?
> The command also assumes that you haven't rename your folders in your 
> project directory.
> -Alexei
>
> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173 
> <(971)%20227-3173>
>
>
> On Mon, Jan 25, 2021 at 11:35 AM Angela Labrador  wrote:
>
>> Hi Lindsay,
>>
>> Thanks for checking in -- no, I haven't really solved it. I've got a 
>> workaround, but would appreciate any ideas or explanations so I can 
>> understand how celery is supposed to be configured (or so that we can 
>> update the docs if they need to be edited).
>>
>> Angela
>>
>>
>> On Tuesday, January 19, 2021 at 7:48:47 PM UTC-5 Lindsey Gant wrote:
>>
>>> Hi Angela,
>>>
>>> Were you able to find a solution to your celery error? If not, let me 
>>> see if someone in the group can follow up.
>>>
>>> Thanks,
>>>
>>> Lindsey
>>> GCI Arches Project Team
>>>
>>> On Thursday, January 14, 2021 at 2:30:56 PM UTC-8 ala...@gmail.com 
>>> wrote:
>>>
>>>> Hello all,
>>>>
>>>> I'm testing an upgrade to Arches 5.1 and have hit a stumbling block 
>>>> with trying to get celery running. I've followed the directions on the 
>>>> doc 
>>>> <https://arches.readthedocs.io/en/stable/task-management/?highlight=celery#running-celery>,
>>>>  
>>>> and have RabbitMQ installed and my settings.py file updated. I did not 
>>>> create a tasks.py file within my project folder because the docs imply 
>>>> this 
>>>> is only needed if I need to add additional tasks for my project (I just 
>>>> need the default Arches tasks). 
>>>>
>>>> When I run python manage.py celery start from within my virtualenv, I 
>>>> get 
>>>>
>>>> Error:
>>>> Unable to load celery application.
>>>> The module XXX was not found.  
>>>>
>>>> where XXX = my settings.ELASTICSEARCH_PREFIX
>>>>
>>>> However, when I edit the celery.py management command to use 
>>>> cmd = f"celery -A *arches* worker -B -l info"  
>>>> instead of settings.ELASTICSEARCH_PREFIX, celery starts up and connects 
>>>> to rabbitmq. 
>>>>
>>>> I'm wondering why that management command is using the ES prefix and 
>>>> what I could be missing in my own project config that is causing this.
>>>>
>>>> Thanks,
>>>> Angela
>>>>
>>> -- 
>> -- To post, send email to arches...@googlegroups.com. To unsubscribe, 
>> send email to archesprojec...@googlegroups.com. For more information, 
>> visit https://groups.google.com/d/forum/archesproject?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Arches Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to archesprojec...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/archesproject/17891260-c650-469a-bdff-9e68f9b5b462n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/archesproject/17891260-c650-469a-bdff-9e68f9b5b462n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/4a95537c-db9b-4935-8144-37e930706511n%40googlegroups.com.


[Arches] Re: Error when trying to start celery

2021-01-25 Thread Angela Labrador
Hi Lindsay,

Thanks for checking in -- no, I haven't really solved it. I've got a 
workaround, but would appreciate any ideas or explanations so I can 
understand how celery is supposed to be configured (or so that we can 
update the docs if they need to be edited).

Angela


On Tuesday, January 19, 2021 at 7:48:47 PM UTC-5 Lindsey Gant wrote:

> Hi Angela,
>
> Were you able to find a solution to your celery error? If not, let me see 
> if someone in the group can follow up.
>
> Thanks,
>
> Lindsey
> GCI Arches Project Team
>
> On Thursday, January 14, 2021 at 2:30:56 PM UTC-8 ala...@gmail.com wrote:
>
>> Hello all,
>>
>> I'm testing an upgrade to Arches 5.1 and have hit a stumbling block with 
>> trying to get celery running. I've followed the directions on the doc 
>> ,
>>  
>> and have RabbitMQ installed and my settings.py file updated. I did not 
>> create a tasks.py file within my project folder because the docs imply this 
>> is only needed if I need to add additional tasks for my project (I just 
>> need the default Arches tasks). 
>>
>> When I run python manage.py celery start from within my virtualenv, I get 
>>
>> Error:
>> Unable to load celery application.
>> The module XXX was not found.  
>>
>> where XXX = my settings.ELASTICSEARCH_PREFIX
>>
>> However, when I edit the celery.py management command to use 
>> cmd = f"celery -A *arches* worker -B -l info"  
>> instead of settings.ELASTICSEARCH_PREFIX, celery starts up and connects 
>> to rabbitmq. 
>>
>> I'm wondering why that management command is using the ES prefix and what 
>> I could be missing in my own project config that is causing this.
>>
>> Thanks,
>> Angela
>>
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/17891260-c650-469a-bdff-9e68f9b5b462n%40googlegroups.com.


[Arches] Error when trying to start celery

2021-01-14 Thread Angela Labrador
Hello all,

I'm testing an upgrade to Arches 5.1 and have hit a stumbling block with 
trying to get celery running. I've followed the directions on the doc 
,
 
and have RabbitMQ installed and my settings.py file updated. I did not 
create a tasks.py file within my project folder because the docs imply this 
is only needed if I need to add additional tasks for my project (I just 
need the default Arches tasks). 

When I run python manage.py celery start from within my virtualenv, I get 

Error:
Unable to load celery application.
The module XXX was not found.  

where XXX = my settings.ELASTICSEARCH_PREFIX

However, when I edit the celery.py management command to use 
cmd = f"celery -A *arches* worker -B -l info"  
instead of settings.ELASTICSEARCH_PREFIX, celery starts up and connects to 
rabbitmq. 

I'm wondering why that management command is using the ES prefix and what I 
could be missing in my own project config that is causing this.

Thanks,
Angela

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/e3f048c7-d7f3-4d4d-b2f2-40e5af0531aen%40googlegroups.com.


[Arches] Re: Advanced Search v5 - how do I use to find nodes that contain data?

2020-10-23 Thread Angela Labrador
It seems drastic -- but I'm not clear on what you're trying to accomplish. 
Does compiler(organization) have data in it? Or is this a new node you're 
trying to add to this branch?

On Friday, October 23, 2020 at 11:44:23 AM UTC-4 manxnation...@gmail.com 
wrote:

> Hey Angela,
>
> Thanks for looking into this.  Would this work:
>
> I delete ALL Compilation cards.  Once that's done I can then change the 
> resource-instance for Compiler (organisation) node?
>
> Bit drastic, but it would work?
>
> Thanks,
>
> Jude.
>
>
> On Wednesday, October 21, 2020 at 7:42:48 PM UTC+1 ala...@gmail.com wrote:
>
>> Hi Jude,
>>
>> This is an interesting question -- and it may be related to this ticket: 
>> https://github.com/archesproject/arches/issues/6678 if I'm understanding 
>> the issue correctly. 
>>
>> Normally, you can do a null/not-null search in the keyword area by just 
>> entering the node name, but this does not appear possible for 
>> resource-instance nodes -- and you're right, the advanced search sidebar 
>> doesn't offer wildcards.
>>
>> So, I don't have a resolution to offer, but perhaps I'm missing something 
>> too...
>>
>> Angela
>>
>>
>>
>>
>>
>>
>> On Tuesday, October 20, 2020 at 12:24:01 PM UTC-4 manxnation...@gmail.com 
>> wrote:
>>
>>> Hello,
>>>
>>> I need to find Monument > Compiler (organisation) nodes that contain 
>>> data.  I need to do this as I cannot change the resource-instance for this 
>>> field (from Person (Actor) to Organisation (Actor) without first deleting 
>>> all the instances of data in this node.
>>>
>>> In Advanced Search I only have the search operators for the node 
>>> Compiler (Person):
>>>
>>> - References
>>> - Does not reference
>>>
>>> Is there a 'not null' search I can run against the node Compiler 
>>> (organisation) using Advanced Search?
>>>
>>> Screenshots attached that may help explain.
>>>
>>> Thanks,
>>>
>>> Jude.
>>>
>>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/5f5914b8-3e7b-4d6e-a34f-97c3b2fd8437n%40googlegroups.com.


[Arches] Re: Arches v5 - how to remove Delete this record?

2020-10-21 Thread Angela Labrador
Hey Jude,

Does your user have superuser status? If so, I don't think they'll be 
available to select by name in the permissions UI because, by default, the 
superuser already has permission.

Angela
 




On Tuesday, October 20, 2020 at 11:03:12 AM UTC-4 manxnation...@gmail.com 
wrote:

> Hey Angela - how do I add myself to the list of users (when logged in as 
> me) to select from when setting Permissions?  If that makes sense.
>
> I tried just now to set it so that I can delete Person cards, but it 
> wouldn't save the changes I made to the Permissions.  I'll try this again 
> but I think I'm missing something.
>
> Jude.  
> On Tuesday, October 13, 2020 at 4:51:15 PM UTC+1 manxnation...@gmail.com 
> wrote:
>
>> Thanks Angela, that''s worked.  The only thing I can't figure is how to 
>> select my Account in setting my own permissions - my Account name doesn't 
>> appear in the 'Select a Group/Account...' dropdown.  As there's only 3 
>> currently in the team I want to set permissions by Account, including my 
>> own.  Just while I figure out the Groups we want.
>>
>> Cheers again, very helpful, Jude.
>>
>> On Friday, October 9, 2020 at 12:26:57 AM UTC+1 ala...@gmail.com wrote:
>>
>>> Hi Jude,
>>> Give this a try:
>>>
>>>1. Go to Arches Designer => Resource Model 
>>>2. Choose the Resource Model you want to set the permissions for
>>>3. Instead of clicking Manage -- choose the Permissions Tab (it will 
>>>be toward the top left of the screen)
>>>4. You can now set permissions per card -- if you want to disallow 
>>>deleting across all the cards of the resource model, you can select all 
>>> the 
>>>top level cards (they should highlight when selected) and then set the 
>>>permissions in bulk. 
>>>
>>> See: 
>>> https://arches.readthedocs.io/en/stable/designing-the-database/?highlight=permissions#permissions-tab
>>>
>>> Hope this helps,
>>> Angela
>>>
>>> On Wednesday, September 30, 2020 at 10:35:39 AM UTC-4 
>>> manxnation...@gmail.com wrote:
>>>
 Hey all,

 How do I remove the 'Delete this record' option from a card when in 
 edit?  I want to make sure my users can't accidentally delete a record 
 when 
 editing.  

 I read the Arches Guide on Permissions Settings but I can't see to 
 select 'Permissions Manager' from the Resource Model Manage... list - see 
 attached screenshots.

 Thanks all,

 Jude.

>>>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/ec4f131e-6526-41bb-b46d-607b66299247n%40googlegroups.com.


[Arches] Re: Advanced Search v5 - how do I use to find nodes that contain data?

2020-10-21 Thread Angela Labrador
Hi Jude,

This is an interesting question -- and it may be related to this ticket: 
https://github.com/archesproject/arches/issues/6678 if I'm understanding 
the issue correctly. 

Normally, you can do a null/not-null search in the keyword area by just 
entering the node name, but this does not appear possible for 
resource-instance nodes -- and you're right, the advanced search sidebar 
doesn't offer wildcards.

So, I don't have a resolution to offer, but perhaps I'm missing something 
too...

Angela






On Tuesday, October 20, 2020 at 12:24:01 PM UTC-4 manxnation...@gmail.com 
wrote:

> Hello,
>
> I need to find Monument > Compiler (organisation) nodes that contain data. 
>  I need to do this as I cannot change the resource-instance for this field 
> (from Person (Actor) to Organisation (Actor) without first deleting all the 
> instances of data in this node.
>
> In Advanced Search I only have the search operators for the node Compiler 
> (Person):
>
> - References
> - Does not reference
>
> Is there a 'not null' search I can run against the node Compiler 
> (organisation) using Advanced Search?
>
> Screenshots attached that may help explain.
>
> Thanks,
>
> Jude.
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/1366750a-8aef-4fab-a624-bf748d75d2cen%40googlegroups.com.


[Arches] Re: Arches v5 - how to remove Delete this record?

2020-10-08 Thread Angela Labrador
Hi Jude,
Give this a try:

   1. Go to Arches Designer => Resource Model 
   2. Choose the Resource Model you want to set the permissions for
   3. Instead of clicking Manage -- choose the Permissions Tab (it will be 
   toward the top left of the screen)
   4. You can now set permissions per card -- if you want to disallow 
   deleting across all the cards of the resource model, you can select all the 
   top level cards (they should highlight when selected) and then set the 
   permissions in bulk. 

See: 
https://arches.readthedocs.io/en/stable/designing-the-database/?highlight=permissions#permissions-tab

Hope this helps,
Angela

On Wednesday, September 30, 2020 at 10:35:39 AM UTC-4 
manxnation...@gmail.com wrote:

> Hey all,
>
> How do I remove the 'Delete this record' option from a card when in edit?  
> I want to make sure my users can't accidentally delete a record when 
> editing.  
>
> I read the Arches Guide on Permissions Settings but I can't see to select 
> 'Permissions Manager' from the Resource Model Manage... list - see attached 
> screenshots.
>
> Thanks all,
>
> Jude.
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/3e661195-7e9a-4cd9-aa6c-0c37bdd905b4n%40googlegroups.com.


[Arches] Two Arches installations live in the Caribbean!

2020-09-23 Thread Angela Labrador
I'm excited to share with the Arches community two more installations that 
are live!

   - The Jamaica National Inventory of Historic Places 
   , managed by the Jamaica National 
   Heritage Trust: https://siteinventory.jnht.com/ 


   - The Barbados National Registry of Historic Places 
   , managed by the Ministry of Creative 
   Economy, Culture and Sports:  https://heritagebarbados.gov.bb/

Both sites were part of an initiative to establish and improve 
community-driven, national inventories/registers in the region as part of 
the Organization of American States 
 project, "Enhancing the 
Framework for the Development of a Heritage Economy in the Caribbean". The 
project was funded by the Permanent Mission of the United States to the 
Organization of American States.

We congratulate the governments of Barbados and Jamaica for their hard work 
in establishing and launching their inventories and community engagement 
campaigns (an especially challenging feat during COVID-19 curfews and 
work-from-home orders!). 

Technical expertise in establishing the programs, customizing Arches, and 
training was provided by my firm, Coherit Associates LLC. Arches 
installation and server administration was provided by LegionGIS.  

We recognize David Myers, Alison Dalgity, and Alina Myklebust at GCI, who 
provided guidance and support in implementing Arches in the region. And we 
so appreciate the ongoing technical support provided by members of this 
community! 

Thank you to everyone who collaborated in this effort!   

Angela

 

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/dfec9544-468d-4324-aa22-216e6e1ed924n%40googlegroups.com.


[Arches] Re: Multiple CSS and JS files missing from /media/packages

2020-08-24 Thread Angela Labrador
Hi Philip,

You're nearly there. You probably still need to install the required 
packages using yarn:
cd Projects/myproject/myproject
yarn install

That should install all of those packages in your media/packages folder. 

Hope this helps,
Angela

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/99108b4d-cb54-474a-84d0-6fa26d082c79o%40googlegroups.com.


[Arches] Re: Internal server error (500) Non-valid UUID error

2020-08-11 Thread Angela Labrador
Hi Anais,

Dale reported a similar error in version 4: 
https://groups.google.com/d/msg/archesproject/gYnmrToi8eE/PUJ-6ys-AQAJ

I'm not sure if the same troubleshooting would apply for v5, but do you 
have pending migrations to run as Cyrus suggested in that thread? 

Angela
 

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/8b23d7a0-9afe-4262-af2a-ef46045c68a1o%40googlegroups.com.


[Arches] Re: Initial installation - getting .pbf - st_asmvtgeom() does not exist error

2020-07-28 Thread Angela Labrador
Hi Kuba,

I have not encountered this error before, but I believe this function is 
part of PostGIS. Do you get any errors in your console when you go to the 
/search page and view your map? Is it just an error with this one resource 
or with all? If you trigger the error again, can you send a full screenshot 
of the gray traceback area?

Thanks,
Angela



On Friday, July 24, 2020 at 5:11:59 PM UTC-4 kuba...@gmail.com wrote:

> Hello,
> I have another problem with initial arches installation.
>
> After adding a resource and displaying that in the search panel the shape 
> layer is not showed on the map box.
> In browser console it is showed as errors in downloading /mvt/#.pbf 
> files.
>
> Error states that function st_asmvtgeom(geometry, geometry) does not exist 
> probably there is something wrong with arguments types. Maybe some 
> libraries incompatibility? 
> I am on Ubuntu 16.04 and already checked that PostgreSQL, Postgis, GDAL 
> are in proper versions.
>
> I will be very grateful for any hint what can be wrong. 
>
> [image: Adnotacja 2020-07-24 230429.png]
>
> Best regards,
> Kuba
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/091f36fd-f44c-42cc-912b-c645ced7ac7en%40googlegroups.com.


[Arches] Re: Arches Collector Configuration - couchdb problem

2020-07-24 Thread Angela Labrador
Hi Kuba, 

What version of couchdb do you have installed? I have seen this issue on 
servers where an apt-get update was run, which inadvertently brought 
couchdb up to version 3, which is not compatible with Arches.

Angela

On Wednesday, July 22, 2020 at 2:44:51 PM UTC-4 kuba...@gmail.com wrote:

> Hello!
> I need to choose a data management platform and I'm playing around with 
> arches installation.
> Unfortunately I stucked on testing the Arches Data Collector App.
>
> In app I added an instance and can see available projects (previously 
> activated in Arches Collector Manager) 
> When trying to download project I see error: Unable to sync survey
>
> In server logs that shows up as:
> Unauthorized: /couchdb/project_###
> "GET /couchdb/project_### HTTP/1.1" 401
>
>
> I already have added ClientID to settings.py and also tried with:
> COUCHDB_URL = 'http://admin:admin@localhost:5984'
>
>
> Connection directly to couchdb works just fine - I get response for:
> culr -X GET http://admin:admin@localhost:5984 /project_###
>
> It's worth adding that arches instance is behind reversed proxy.
>
> What more can I do to get it working?
>
> Best regards,
> Kuba
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/d23f392f-4186-442e-82c0-d20cf6df526dn%40googlegroups.com.


[Arches] Re: Performance / Missing files

2020-07-13 Thread Angela Labrador
Hi Elishai,

This looks like the packages managed by yarn aren't installed. You'll want 
to navigate to your project directory and find the file package.json and 
then run yarn install from within that directory.  For example:

cd Projects/myproject/myproject
yarn install

If you did this already as part of your installation and you're serving 
Arches over Apache (or another web server), you may need to run 
collectstatic, which will place these files somewhere that the server can 
find them -- see the section under handling static files: 
https://arches.readthedocs.io/en/stable/serving-arches-with-apache/

Hope this helps,
Angela

On Thursday, July 9, 2020 at 8:18:58 AM UTC-4, Elishai Cohen wrote:
>
> Hi,
>
> I've installed Arches v5 following Arches documentation:
> https://arches.readthedocs.io/en/stable/
> after that, I loaded ontologies. I loaded only ontologies, not the full 
> package of Arches.
>
> When using the app, navigating to Search, I'm getting a lot of errors of 
> missing files.
>
> Please see attached files.
>
>
> Best,
> Elishai
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/b8b491c2-71a9-4a7f-95fe-4ba9641a8bf1o%40googlegroups.com.


[Arches] Re: Uploading photos via Arches Collector and duplicate filename woes

2020-06-12 Thread Angela Labrador
Following up on this thread; Adam Cox and I looked into this further and it 
appears that this behavior is related to django-storages. There is a 
setting,  AWS_S3_FILE_OVERWRITE, that defaults to True. (By default files 
with the same name will overwrite each other. Set this to False to have 
extra characters appended.). So, adding this to settings_local.py fixed the 
issue. Anyone using s3 buckets to store uploaded files, will probably want 
to make sure they have this set to False.

Angela

On Thursday, June 4, 2020 at 5:03:25 PM UTC-4, Angela Labrador wrote:
>
> Hi Arches Collector fans,
>
> I've been experiencing the following issue, and wondering if this is 
> expected behavior or a bug:
>
> I have a resource model that basically amounts to a condition assessment 
> report with a file-list node for uploading photos.
>
>1. I submit a report with a photo from my phone through the collector
>2. Sync the project 
>3. Resulting report is perfect online
>4. I submit a second report with a new photo from my phone through the 
>collector
>5. Sync the project 
>6. Resulting new report is perfect -- BUT the photo in the first 
>report is overwritten by the second report's photo
>
> This seems to be caused by how the collector defaults to naming photos 
> "1.jpg" (rather than using the phone's native filename or uid) -- and so, 
> when the second report is synced to the server, the new photo overwrites 
> the previously uploaded "1.jpg"
>
> Is this expected? Are collector users supposed to manually set a filename? 
> If so, how will they know it's a filename not in use?
>
> It seems as though the process_mobile_data method in datatypes.py would be 
> a convenient place to rename files with a uuid or something? It looks like 
> it's doing some logic to that effect for individual instances (in the case 
> of multiple photos uploaded per report) but not across all existing files.  
>
> As an aside, Arches appears to have the same behavior, but I just haven't 
> encountered the problem because the upload widget doesn't default to 
> "1.jpg" but instead uses the filename provided by the computer, so there's 
> a smaller chance of duplicate names. 
>
> In both cases, this could become quite a problem as it basically allows 
> users to overwrite existing uploaded files without a warning. 
>
> I welcome all ideas and reflections -- especially among those of you 
> dealing with large databases containing lots of uploaded media! (If it 
> matters, this is in an environment where media files are being stored in 
> aws s3 bucket.)
>
> Thanks!
>
> Angela
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/e9ce7add-1598-490d-8274-7339338080d5o%40googlegroups.com.


[Arches] Uploading photos via Arches Collector and duplicate filename woes

2020-06-04 Thread Angela Labrador
Hi Arches Collector fans,

I've been experiencing the following issue, and wondering if this is 
expected behavior or a bug:

I have a resource model that basically amounts to a condition assessment 
report with a file-list node for uploading photos.

   1. I submit a report with a photo from my phone through the collector
   2. Sync the project 
   3. Resulting report is perfect online
   4. I submit a second report with a new photo from my phone through the 
   collector
   5. Sync the project 
   6. Resulting new report is perfect -- BUT the photo in the first report 
   is overwritten by the second report's photo

This seems to be caused by how the collector defaults to naming photos 
"1.jpg" (rather than using the phone's native filename or uid) -- and so, 
when the second report is synced to the server, the new photo overwrites 
the previously uploaded "1.jpg"

Is this expected? Are collector users supposed to manually set a filename? 
If so, how will they know it's a filename not in use?

It seems as though the process_mobile_data method in datatypes.py would be 
a convenient place to rename files with a uuid or something? It looks like 
it's doing some logic to that effect for individual instances (in the case 
of multiple photos uploaded per report) but not across all existing files.  

As an aside, Arches appears to have the same behavior, but I just haven't 
encountered the problem because the upload widget doesn't default to 
"1.jpg" but instead uses the filename provided by the computer, so there's 
a smaller chance of duplicate names. 

In both cases, this could become quite a problem as it basically allows 
users to overwrite existing uploaded files without a warning. 

I welcome all ideas and reflections -- especially among those of you 
dealing with large databases containing lots of uploaded media! (If it 
matters, this is in an environment where media files are being stored in 
aws s3 bucket.)

Thanks!

Angela

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/35d363b3-894d-41e5-bce9-d4848a08bb64o%40googlegroups.com.


[Arches] Re: Setting DATE_IMPORT_EXPORT_FORMAT for Collector

2020-06-04 Thread Angela Labrador
Thanks, Alina! 

I've coded a workaround that parses the date, at least according to the 
formats that I've encountered on a few different android and ios devices. 
It's probably not robust enough for a pull request, but if anyone else has 
been dealing with this problem, I'm happy to explain what I did (edits are 
mainly in 
https://github.com/legiongis/arches/blob/stable/5.0.x-fpan-dateparse/arches/app/datatypes/datatypes.py
 and  
https://github.com/legiongis/arches/blob/stable/5.0.x-fpan-dateparse/arches/app/models/mobile_survey.py
)

Angela







On Friday, April 3, 2020 at 9:05:14 PM UTC-4, Alina Myklebust wrote:
>
> Hi Angela,
>
> I also experienced a similar issue with syncing dates using the Collector 
> app in version 4.4.3.  If I recall correctly, the issue was logged in 
> Github.  
>
> I'll check with the app developers to see if there is an update.  
>
> Best,
>
> Alina
>
>
>
> On Wednesday, April 1, 2020 at 1:55:40 PM UTC-7, Angela Labrador wrote:
>>
>> Hi everyone, 
>>
>> I'm running into a problem syncing a date using the Collector app in 
>> Arches 5 (and previously in 4). I'm getting the following error:
>>
>> arches.app.models.tile.TileValidationError: '2020-04-02T00:00:00.000-04:00 
>> None is not in the correct format, make sure it is in this format: 
>> %Y-%m-%d or set the date format in 
>> settings.DATE_IMPORT_EXPORT_FORMAT. This data was not imported.'
>>
>>
>> and so I added in my settings_local.py file:
>> DATE_IMPORT_EXPORT_FORMAT = ['%Y-%m-%dT%H:%M:%S.%fZ', 
>> '%Y-%m-%dT%H:%M:%S.%f%z 
>> %Z', '%Y-%m-%dT%H:%M:%S.%f%z', '%Y-%m-%dT%H:%M:%S.%-f%z %Z']
>>
>>
>> However, none of these match the format string (I'm most unsure of the 
>> last portion with the milliseconds and time zone). 
>>
>> Back in the Arches' project resource model, the node is datatype = date, 
>> and the card widget is using date format ISO 6801 -MM-DD. No project 
>> overrides on any of these. In the collector app, I get the standard pop up 
>> calendar and can choose a date (no time). 
>>
>> Grateful for ideas. Thanks,
>> Angela
>>
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/70553905-be0b-4557-be0c-c7bd0c964774o%40googlegroups.com.


[Arches] Re: Editing a Resource node after data entry

2020-05-20 Thread Angela Labrador
Hi Brendon,

Take a look at this 
post: https://groups.google.com/d/msg/archesproject/4VL7sZV9D-I/L-3U8-FFAgAJ

This should allow you to edit your resource model midstream (with caution).

It would be nice to have a management tool that exports business data and 
prepares an import with the new mapping with the new node value set to null 
(or a default value) for a fresh import into the new/revised resource 
model. (You can do this manually right now, but it would be nice to 
automate.) I think that would probably be the more "proper way" than adding 
new nodes on a live data set. 

Hope this helps,
Angela

 

On Monday, May 18, 2020 at 1:17:49 PM UTC-4, Brendon Bangert wrote:
>
> Howdy Arches Users,
>
> Another week another question. Our dev team is wondering if there is a 
> workaround for editing branches/nodes that have already had data entry 
> created. We have noticed that after we start entering data, but wish to 
> edit a branch, we can either 1. not edit the branch, or 2. branch edits, do 
> not push/update on the resource model the at has received data entry. 
> Currently we are having to purge data in order to change the desired 
> branch. If there is a backend workflow or a more proper solution I this 
> would save us some time when attempting to update our resource models. If 
> there is any clarification or photographic documentation needed to keep 
> this conversation going I would be more than happy to provide.
>
> Thanks,
> Brendon
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/45b077ee-915f-441d-9f0e-2d6f48469596%40googlegroups.com.


Re: [Arches] Re: v5 documentation

2020-05-13 Thread Angela Labrador
Hi all,

I would be happy to pitch in on a documentation sprint! Count me in. :-)

Angela

On Wed, May 13, 2020 at 1:52 PM Adam Cox  wrote:

> Hi Lily and Mahmoud, really, you're both right. A little of the structural
> work to set the documentation version to 5 has been done (as Mahmoud
> pointed out), however, to my knowledge there has been no concerted effort
> since the release of v5 to actually update the documentation in a holistic
> manner--just bits and pieces like software requirements, etc. I think a few
> days of a coordinated "documentation sprint" would go a really long way
> toward fixing that. I would be happy to play some sort of role in such an
> effort, because it would benefit the community hugely (obviously), but
> can't commit at this time to fully coordinating it... perhaps
> co-coordinating.
>
> If others are interested in contributing their time or resources, I think
> we should use this thread to begin planning. I will also note that the
> documentation repo (https://github.com/archesproject/arches-docs) has its
> own issue ticketing system, so collecting to-do task in there is always
> good (they are plenty of them already!).
>
> Adam
>
> On Tue, May 12, 2020 at 2:31 PM Lily Pregill  wrote:
>
>> Thanks Mahmoud! I was looking at:
>> https://arches.readthedocs.io/en/stable/overview/ and the version says
>> 4.4.1.
>>
>> On the v5 version, the page title of the Overview page reads "Overview
>> 4.4.1" so something to fix.
>>
>> best,
>> Lily
>>
>>
>>
>>
>> --
>> *From:* archesproject@googlegroups.com 
>> on behalf of Mahmoud Abdelrazek 
>> *Sent:* Tuesday, May 12, 2020 12:11 PM
>> *To:* Arches Project 
>> *Subject:* [Arches] Re: v5 documentation
>>
>> Hi Lily,
>>
>> I am not sure if this is what you are looking for, but here is a link to
>> v5 documentation https://arches.readthedocs.io/en/5.0.0/
>>
>> Best regards,
>> Mahmoud
>>
>> On Tuesday, May 12, 2020 at 8:55:21 PM UTC+2, Lily Pregill wrote:
>>
>> Hello,
>>
>> Does anyone know if the current documentation has been updated for v5?
>> The version history does not reflect v5:
>>
>> v4.4 February, 2019: Release of Arches Collector
>>  mobile
>> data collection app
>>
>> v4.0 July, 2017: Significant site redesign, addition of graph creation
>> UI, system settings UI, internal tileserver (TileStache), updated
>> dependencies (MapBox GL, ElasticSearch 5.2, Yarn)
>>
>> v3.0 April, 2015: Updated architecture, inclusion of the Reference Data
>> Manager, updated dependencies (ElasticSearch, OpenLayers, Knockout)
>>
>> v2.0 March, 2014: Improved upload of digital files, assorted bug fixes
>>
>> v1.0 October, 2013: Initial Release
>>
>>
>> Thanks,
>>
>> Lily
>>
>>
>> *Lily Pregill*, Systems Architect | The J. Paul Getty Trust | (310) 440
>> 6394  |  getty.edu 
>>
>> --
>> -- To post, send email to archesproject@googlegroups.com. To
>> unsubscribe, send email to archesproject+unsubscr...@googlegroups.com.
>> For more information, visit
>> https://groups.google.com/d/forum/archesproject?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Arches Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to archesproject+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/archesproject/6749807d-07b4-43e4-b5ca-f76dc059d0c8%40googlegroups.com
>> 
>> .
>>   *CAUTION: This email originated from outside of the Getty. Do not
>> click links or open attachments unless you verify the sender and know the
>> content is safe.*
>>
>> --
>> -- To post, send email to archesproject@googlegroups.com. To
>> unsubscribe, send email to archesproject+unsubscr...@googlegroups.com.
>> For more information, visit
>> https://groups.google.com/d/forum/archesproject?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Arches Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to archesproject+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/archesproject/BYAPR05MB6517EE8F27F9CBD91C33E35FDEBE0%40BYAPR05MB6517.namprd05.prod.outlook.com
>> 
>> .
>>
> --
> -- To post, send email to archesproject@googlegroups.com. To unsubscribe,
> send email to archesproject+unsubscr...@googlegroups.com. For more
> information, visit https://groups.google.com/d/forum/archesproject?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Arches Project" group.
> 

[Arches] Re: Errored-out Search Engine

2020-04-15 Thread Angela Labrador
Hi Brendon,

Is Elasticsearch running? That is usually my first question when I get 
search errors. If you have command line access to the server running 
elasticsearch you can quickly test by:
curl localhost:9200

If it's running you'll get something like:
{
  "name" : "localhost",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "DoZwos0YR26WsHSZYO4O2A",
  "version" : {
"number" : "7.2.0",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "508c38a",
"build_date" : "2019-06-20T15:54:18.811730Z",
"build_snapshot" : false,
"lucene_version" : "8.0.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}


See: 
https://arches.readthedocs.io/en/stable/arches-and-elasticsearch/#arches-and-elasticsearch

If this isn't the issue -- do you see any errors in your console? (in 
Chrome, press Ctrl + Shift + i to open the developer tools and click on the 
Console tab)

Angela

On Wednesday, April 15, 2020 at 2:41:15 PM UTC-4, Brendon Bangert wrote:
>
> *
>
> Howdy Arches Developers,
>
> Another week means a new question I have! This week we are currently 
> running into the issue where our search engine is producing the following 
> errors and doesn't enable us to do any actual searching whatsoever. If 
> anyone has had a similar error or know of a resource we can reference to 
> fix this it would be much appreciated! 
> [image: Error.PNG]
>
>
>
>
>
>
>
>
>
> If there is any additional documentation that is needed I would be more 
> than happy to provide.
>
> Thanks,
> Brendon
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/22431791-7f34-4b32-ad99-0ed9fd753ba6%40googlegroups.com.


[Arches] Re: Custom Card Components: Nested Concept Lists and Option based Boolean Toggles

2020-04-09 Thread Angela Labrador
Hi Brendon,

I've worked on a card component with Adam Cox that automatically fills in 
the current django username on a text node in form view. I would think that 
parts of the knockout would be somewhat similar (but you wouldn't have to 
do the additional check of getting the variable from the django template). 
We opted to modify the default text widget rather than create a new 
component because of concerns regarding editing the resource model 
midstream, but you could just do this as a custom and not have to do the 
additional node.id check that we had to.

The repo is at https://github.com/legiongis/fpan  and the files with 
relevant code would be:

   - media/js/views/components/widgets/text.js 
   - templates/views/components/widgets/text.htm
   - 
   - templates/views/components/cards/default.htm

I found the google extension "Knockoutjs context debugger" to be really 
helpful during this.

Hope this helps,
Angela


On Thursday, April 9, 2020 at 9:44:57 AM UTC-4, Brendon Bangert wrote:
>
> Dear Arches Developers,
>
> I am posting today hoping everyone Is doing well in our global time of 
> crisis. Working remotely has given me more time to pursue our current 
> team's database and with this a closer inspection and custom card 
> components. Concerning a previous forum post I had created and with no 
> immediate access to a in-house programmer, our team is currently wondering 
> if anyone else has created any custom card components they would be 
> interested in sharing. Additionally I wanted to start up the conversation 
> of the possibility of creating a card component that enables for 
> information to appear if, an certain option is selected from a concept 
> list. Feel free to post thoughts, or interests in similar customization 
> your team is looking for. I wanted to not only get this dialogue started 
> but all in all see if anyone else has been seeking something similar.
>
> Cheers,
> Brendon
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/d3eb8584-f1ed-4705-a46a-a774d506fdf6%40googlegroups.com.


[Arches] Setting DATE_IMPORT_EXPORT_FORMAT for Collector

2020-04-01 Thread Angela Labrador
Hi everyone, 

I'm running into a problem syncing a date using the Collector app in Arches 
5 (and previously in 4). I'm getting the following error:

arches.app.models.tile.TileValidationError: '2020-04-02T00:00:00.000-04:00 
None is not in the correct format, make sure it is in this format: 
%Y-%m-%d or set the date format in 
settings.DATE_IMPORT_EXPORT_FORMAT. This data was not imported.'


and so I added in my settings_local.py file:
DATE_IMPORT_EXPORT_FORMAT = ['%Y-%m-%dT%H:%M:%S.%fZ', '%Y-%m-%dT%H:%M:%S.%f%z 
%Z', '%Y-%m-%dT%H:%M:%S.%f%z', '%Y-%m-%dT%H:%M:%S.%-f%z %Z']


However, none of these match the format string (I'm most unsure of the last 
portion with the milliseconds and time zone). 

Back in the Arches' project resource model, the node is datatype = date, 
and the card widget is using date format ISO 6801 -MM-DD. No project 
overrides on any of these. In the collector app, I get the standard pop up 
calendar and can choose a date (no time). 

Grateful for ideas. Thanks,
Angela

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/f5dd0f88-f489-469e-832b-681b8aa5421c%40googlegroups.com.


[Arches] Re: QA/Type & Resource Approval: How to?

2020-03-11 Thread Angela Labrador
Hi Dennis,

That makes a lot of sense -- thank you for the explanation! I think I was 
expecting to see what was in the docs and that I had missed a setting. I 
now see how it works when it's the first provisional entry vs a subsequent 
provisional edit (and it does work just as you describe). Sorry to barge 
into this thread...

All best,
Angela

On Tuesday, March 10, 2020 at 6:04:16 PM UTC-5, Dennis Wuthrich wrote:
>
> Hi Angela,
>
> From your screen shot, it looks like Arches is working as designed.  
> Here's what's happening:
>
> In your example, it looks like the provisional edit shown in your screen 
> capture is in fact the very first time the Name card for the resource 
> instance was edited.  If you look at the message in the pink banner it says 
> "This is a new contribution by a provisional editor".  In plainer language, 
> what Arches is trying to say is "this is the first edit of this card, and 
> its been submitted by a provisional editor".  Because this is the first and 
> ONLY edit for this card, Arches doesn't need to show the information your 
> are expecting on the right-hand side of the form.
>
> Think of it this way: when a provisional editor submits a new tile, 
> there's no way for any one else to see the tile until its been approved.  
> So there will never be multiple edits to a brand-new tile from a 
> provisional editor.
>
> You SHOULD see provisional editors listed on the right side of a card when 
> provisional editors alter an existing approved tile.
>
> Hope this helps,
>
> Dennis
>
> On Tuesday, March 10, 2020 at 3:15:18 PM UTC-7, Angela Labrador wrote:
>>
>> Hi Brendon and Dennis,
>>
>> We're having a similar issue on a site running version 4.4.1. The 
>> provisional QA Type search works perfectly. When we click Edit for a 
>> resource with provisional edits, the provisional edit card icons are 
>> showing up as gold on the left, and we are getting the pink banner at the 
>> top of the form. However, we are never shown the information to the right 
>> of the data entry card that was described above (what looks like what 
>> should be provided by the provisional-tile-manager template?).
>>
>> Any ideas? Are we missing something obvious here? Permissions seem in 
>> order -- creating the resource as a resource editor and reviewing as a 
>> Resource Reviewer.
>>
>> Did you ever solve it on your end Brendon?
>>
>> Thanks,
>> Angela
>>
>>
>>
>> [image: Capture.PNG]
>>  
>>
>> On Wednesday, February 26, 2020 at 4:32:30 PM UTC-6, Dennis Wuthrich 
>> wrote:
>>>
>>> Brendon,
>>>
>>> Which version of Arches are you using?  This may be a case where the 
>>> documentation is out of synch with the latest version of Arches.  In any 
>>> case, the latest Arches provisional editing review highlights cards that 
>>> require review.  For each card, all users who have edited the card (and who 
>>> do not belong to the Resource Reviewer group) are listed on the right side 
>>> of the data entry card.  Just click on each account to review and 
>>> approve/discard their edits.
>>>
>>> Cheers,
>>>
>>> Dennis
>>>
>>> On Wednesday, February 19, 2020 at 3:13:26 PM UTC-8, Brendon Bangert 
>>> wrote:
>>>>
>>>> Dear Arches Users,
>>>>
>>>> Our current dev team is experiencing issues establishing how to 
>>>> properly work the QA approval process. We currently have managed to get 
>>>> the 
>>>> QA type filter to appear on our framework however, we cannot get either of 
>>>> these shown options to appear anywhere (The photo attached). Bear in mind 
>>>> this image was taken from the development documents, however, there is no 
>>>> present procedure for how to go about making both option 3, and 
>>>> subsequentially option 4 to appear. 
>>>>
>>>> Thanks,
>>>>
>>>> Brendon R. Bangert
>>>>
>>>> [image: Capture.PNG]
>>>>
>>>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/76e912f3-bf9f-4529-91b9-91b2bdf070b0%40googlegroups.com.


[Arches] Re: QA/Type & Resource Approval: How to?

2020-03-10 Thread Angela Labrador
Hi Brendon and Dennis,

We're having a similar issue on a site running version 4.4.1. The 
provisional QA Type search works perfectly. When we click Edit for a 
resource with provisional edits, the provisional edit card icons are 
showing up as gold on the left, and we are getting the pink banner at the 
top of the form. However, we are never shown the information to the right 
of the data entry card that was described above (what looks like what 
should be provided by the provisional-tile-manager template?).

Any ideas? Are we missing something obvious here? Permissions seem in order 
-- creating the resource as a resource editor and reviewing as a Resource 
Reviewer.

Did you ever solve it on your end Brendon?

Thanks,
Angela



[image: Capture.PNG]
 

On Wednesday, February 26, 2020 at 4:32:30 PM UTC-6, Dennis Wuthrich wrote:
>
> Brendon,
>
> Which version of Arches are you using?  This may be a case where the 
> documentation is out of synch with the latest version of Arches.  In any 
> case, the latest Arches provisional editing review highlights cards that 
> require review.  For each card, all users who have edited the card (and who 
> do not belong to the Resource Reviewer group) are listed on the right side 
> of the data entry card.  Just click on each account to review and 
> approve/discard their edits.
>
> Cheers,
>
> Dennis
>
> On Wednesday, February 19, 2020 at 3:13:26 PM UTC-8, Brendon Bangert wrote:
>>
>> Dear Arches Users,
>>
>> Our current dev team is experiencing issues establishing how to properly 
>> work the QA approval process. We currently have managed to get the QA type 
>> filter to appear on our framework however, we cannot get either of these 
>> shown options to appear anywhere (The photo attached). Bear in mind this 
>> image was taken from the development documents, however, there is no 
>> present procedure for how to go about making both option 3, and 
>> subsequentially option 4 to appear. 
>>
>> Thanks,
>>
>> Brendon R. Bangert
>>
>> [image: Capture.PNG]
>>
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/36f0ac5e-7e6c-4d19-9f9e-b66eaebff761%40googlegroups.com.


[Arches] Re: Pre-populating text widget with username

2020-01-21 Thread Angela Labrador
Thanks, Andrew! You got me on the right track...for others interested, I 
was able to get this working with my test case of a hardcoded value with 
the following:

return ko.components.register('text-widget', {
viewModel: function(params) {
params.configKeys = ['placeholder', 'width', 'maxLength', 
'defaultValue'];
this.username = ko.observable("abc");
this.username.subscribe(function(newValue) {
params.value(newValue);
});
this.username.subscribe(function(oldValue) {
params.value(oldValue);
}, null, "beforeChange");
WidgetViewModel.apply(this, [params]); 
},
template: { require: 'text!widget-templates/text' }
});


On Monday, January 20, 2020 at 4:18:01 AM UTC-5, Andrew Jones wrote:
>
> The underlying WidgetViewModel is using *value *to save to the database.
>
> If you have bound *this.**username* observable to the textInput then you 
> will need to update *this.value* when it changes: 
>
> this.username.subscribe(function(usernameValue) {
> this.value(usernameValue);
> });
>
> I've not tested this at all and can't remember if usernameValue is 
> returned as a value or observable. If it is an observable then you'll need 
> to user usernameValue().
>
> Andy
>
> On Friday, January 17, 2020 at 8:25:58 PM UTC, Angela Labrador wrote:
>>
>> Sure -- here's my sanity check version (putting aside the need to pass 
>> the django {{user.username}} as the autofill value and just using a plain 
>> string of "abc"):
>>
>> templates/views/components/widgets/text.htm
>> 
>> 
>> 
>> 
>> 
>> 
>>
>>
>> media/js/views/components/widgets/text.js
>> define(['knockout', 'underscore', 'viewmodels/widget'], function (ko, _, 
>> WidgetViewModel) {
>> /**
>> * registers a text-widget component for use in forms
>> * @function external:"ko.components".text-widget
>> * @param {object} params
>> * @param {string} params.value - the value being managed
>> * @param {function} params.config - observable containing config 
>> object
>> * @param {string} params.config().label - label to use alongside the 
>> text input
>> * @param {string} params.config().placeholder - default text to show 
>> in the text input
>> */
>> return ko.components.register('text-widget', {
>> viewModel: function(params) {
>> params.configKeys = ['placeholder', 'width', 'maxLength', 
>> 'defaultValue'];
>> WidgetViewModel.apply(this, [params]); 
>> this.username = ko.observable("abc");
>> },
>> template: { require: 'text!widget-templates/text' }
>> });
>> });
>>
>>
>> This displays 'abc' in the form field upon load, but returns a 500 error 
>> on tile when I click add. I'm not too surprised since params.value is not 
>> getting set, but I can't wrap my head around how to autofill the field on 
>> the template without setting *all* textwidget params.values to 
>> {{user.username}}. I even tried setting attr: value={{user.username}} on 
>> the template side without touching the viewmodel, but while the username 
>> appeared, it was the same 500 error on tile (no value being passed). 
>>
>> Thanks for any ideas!
>> Angela
>>  
>>
>>
>> On Friday, January 17, 2020 at 4:31:06 AM UTC-5, Andrew Jones wrote:
>>>
>>> Sounds like you're close. do you mind posting the viewmodel code as a 
>>> fresh pair of eyes might be able to help?
>>>
>>> On Wednesday, January 15, 2020 at 11:34:51 PM UTC, Angela Labrador wrote:
>>>>
>>>> Hi everyone,
>>>>
>>>> I have a node, let's call it  (datatype string), which uses the 
>>>> default text widget. When users are completing the relevant form, I would 
>>>> like to autofill  with the {{user.username}} value (but to still 
>>>> allow users to change the value). 
>>>>
>>>> I've been trying to avoid writing a new widget to handle this scenario 
>>>> and instead use the existing text widget viewmodel and template. I'm 
>>>> successfully able to target the correct node by using knockout if/ifnot 
>>>> bindings
>>>> e.g.:
>>>>
>>>> 
>>>> ...
>>>> 
>>>> 
>>>> 
>>>> 
>>>>
>>>>
>>>> H

[Arches] Re: Pre-populating text widget with username

2020-01-17 Thread Angela Labrador
Sure -- here's my sanity check version (putting aside the need to pass the 
django {{user.username}} as the autofill value and just using a plain 
string of "abc"):

templates/views/components/widgets/text.htm








media/js/views/components/widgets/text.js
define(['knockout', 'underscore', 'viewmodels/widget'], function (ko, _, 
WidgetViewModel) {
/**
* registers a text-widget component for use in forms
* @function external:"ko.components".text-widget
* @param {object} params
* @param {string} params.value - the value being managed
* @param {function} params.config - observable containing config object
* @param {string} params.config().label - label to use alongside the 
text input
* @param {string} params.config().placeholder - default text to show in 
the text input
*/
return ko.components.register('text-widget', {
viewModel: function(params) {
params.configKeys = ['placeholder', 'width', 'maxLength', 
'defaultValue'];
WidgetViewModel.apply(this, [params]); 
this.username = ko.observable("abc");
},
template: { require: 'text!widget-templates/text' }
});
});


This displays 'abc' in the form field upon load, but returns a 500 error on 
tile when I click add. I'm not too surprised since params.value is not 
getting set, but I can't wrap my head around how to autofill the field on 
the template without setting *all* textwidget params.values to 
{{user.username}}. I even tried setting attr: value={{user.username}} on 
the template side without touching the viewmodel, but while the username 
appeared, it was the same 500 error on tile (no value being passed). 

Thanks for any ideas!
Angela
 


On Friday, January 17, 2020 at 4:31:06 AM UTC-5, Andrew Jones wrote:
>
> Sounds like you're close. do you mind posting the viewmodel code as a 
> fresh pair of eyes might be able to help?
>
> On Wednesday, January 15, 2020 at 11:34:51 PM UTC, Angela Labrador wrote:
>>
>> Hi everyone,
>>
>> I have a node, let's call it  (datatype string), which uses the 
>> default text widget. When users are completing the relevant form, I would 
>> like to autofill  with the {{user.username}} value (but to still 
>> allow users to change the value). 
>>
>> I've been trying to avoid writing a new widget to handle this scenario 
>> and instead use the existing text widget viewmodel and template. I'm 
>> successfully able to target the correct node by using knockout if/ifnot 
>> bindings
>> e.g.:
>>
>> 
>> ...
>> 
>> 
>> 
>> 
>>
>>
>> However, each attempt I make at the custom input fails (using either 
>> value or textInput data-binds). It's seemingly easy to make the correct 
>> username appear in the form field when the card loads (by setting 
>> params.value to {{user.username}}) but every time I click Add on the form, 
>> the tile save function fails validation (500 error), so I'm not actually 
>> passing the value correctly or it's getting set/unset at the wrong times or 
>> in the wrong order. As a sanity check I've also tried a simple 
>> data-bind="textInput: userName..." in the template and then this.userName = 
>> ko.observable('abc'); in the textwidget viewmodel, but while abc appears in 
>> the field, I get the same 500 error upon submit. Even when I manually 
>> delete the field and type something new, the form fails. I should note that 
>> the card has multiple text widgets on it.
>>
>> I'm fairly new to knockout, so I could be attacking this all wrong or 
>> missing something fundamental. Any ideas for how this could be done? 
>> (Trying to avoid editing the resource model...but maybe that can't be 
>> avoided).
>>
>> Thanks!
>> Angela
>>
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/5501d281-3d89-4164-aa5b-50e0cef6017c%40googlegroups.com.


[Arches] Pre-populating text widget with username

2020-01-15 Thread Angela Labrador
Hi everyone,

I have a node, let's call it  (datatype string), which uses the 
default text widget. When users are completing the relevant form, I would 
like to autofill  with the {{user.username}} value (but to still 
allow users to change the value). 

I've been trying to avoid writing a new widget to handle this scenario and 
instead use the existing text widget viewmodel and template. I'm 
successfully able to target the correct node by using knockout if/ifnot 
bindings
e.g.:


...






However, each attempt I make at the custom input fails (using either value 
or textInput data-binds). It's seemingly easy to make the correct username 
appear in the form field when the card loads (by setting params.value to 
{{user.username}}) but every time I click Add on the form, the tile save 
function fails validation (500 error), so I'm not actually passing the 
value correctly or it's getting set/unset at the wrong times or in the 
wrong order. As a sanity check I've also tried a simple 
data-bind="textInput: userName..." in the template and then this.userName = 
ko.observable('abc'); in the textwidget viewmodel, but while abc appears in 
the field, I get the same 500 error upon submit. Even when I manually 
delete the field and type something new, the form fails. I should note that 
the card has multiple text widgets on it.

I'm fairly new to knockout, so I could be attacking this all wrong or 
missing something fundamental. Any ideas for how this could be done? 
(Trying to avoid editing the resource model...but maybe that can't be 
avoided).

Thanks!
Angela

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/3d81849c-4ae3-494c-8b85-9235b6f9ea5d%40googlegroups.com.


Re: [Arches] Arches and Intangible Heritage

2019-06-05 Thread Angela Labrador
Hi Selene,

It's Angela (from the recent crafts workshop in Barbados!). I have done
some experimentation in this vein (actually preparing a paper on it now, so
good timing!).

The OAS cultural heritage project, of which Belize is a participating
member state, is using Arches for tangible heritage inventories, and we
published a guide, which includes a section on databases that would still
be relevant -- you can download the pdf here:
http://coherit.com/projectfiles/Output3ImplementationGuide.pdf. Feel free
to have NICH contact Celia Toppin at the OAS if they're interested in
implementing this -- the project and donor would be very excited to hear.

As for ICH, I have found the theoretical work that has been done in the
Columbia Caribbean region to be really helpful in thinking through the
entities (many of them place-based) that would be modeled in a system such
as Arches. Their approach is translated as "An Eco-Technological Approach,"
and while it focuses mainly on handcrafts, I think it is just as viable for
the other four domains of ICH.
http://www.scielo.org.co/scielo.php?script=sci_arttext=S0122-1450201300016

Arches is primed to work with the CIDOC-CRM ontology. Although it was born
out of more of a tangible heritage context, it does include immaterial
things within its standard now. Also, if you consider that ICH is mediated
through tangible things (i.e. knowledge/skill through a person or
information resource, performance at a location through a person), you will
find that you can map the ICH world using CIDOC.

So, my practical suggestion would be to start by modeling your ICH
inventory using CIDOC on paper/whiteboard/whatever first. Test to see if it
will be a good fit for Belize -- I think it would be and that Arches can
work very well for then managing these data digitally.

I think the more we can break down the silos between tangible and
intangible, and to recognize how both are place-based, the better our
inventory and management systems will be. Plus, if NICH takes up Arches for
tangible, then that would create a pool of colleagues and experts using the
same system in your agency -- always good for sustainability.

All best,
Angela

Angela Labrador, PhD.
Coherit Associates LLC
www.coherit.com

On Tue, Jun 4, 2019 at 4:08 PM Selene Solis  wrote:

> Hello Everyone,
>
> I'm from Belize and new to Arches. I'm only now beginning to explore it as
> an option to facilitate the development of an inventory / registry of
> places of historical importance, and to assist in the development of our
> inventory of Intangible Cultural Heritage.
>
> Has anybody in the group used Arches to compile  / reflect / ICH - related
> inventories? If so, in what way and how was the experience.
>
> Any insight anyone is able to provide would be greatly appreciated. Keep
> in mind, I'm just starting out with exploring the software as an option.
>
> Thanks in advance for any responses,
>
> Selene Solis
>
> --
> -- To post, send email to archesproject@googlegroups.com. To unsubscribe,
> send email to archesproject+unsubscr...@googlegroups.com. For more
> information, visit https://groups.google.com/d/forum/archesproject?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Arches Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to archesproject+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/archesproject/ed09930d-299d-4ef0-9f2b-ce0bf8a73226%40googlegroups.com
> <https://groups.google.com/d/msgid/archesproject/ed09930d-299d-4ef0-9f2b-ce0bf8a73226%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/CAJ1rqug2EjOotvkWyPBbyp8ZS5ov92b_Pia0TorhgSni-9wu%2Bw%40mail.gmail.com.


[Arches] Re: Changing order of items in a data collection

2019-03-29 Thread Angela Labrador
Hi, 

To extend this question:

It *is* still possible to add sort order values to concepts in the RDM 
Collections -- that works fine. 

However, there is this nifty drag and drop interface in the Collections 
panel, which suggests that when the user drags and drops collection 
concepts to change the order, that those changes should in fact be 
committed (but aren't, as Neil notes above). Is the drag and drop meant to 
commit changes? (Screenshot attached shows resorted collection concepts in 
the drag and drop panel that I believe Neil is referencing)

Thanks for any thoughts,
Angela


 

[image: Capture.JPG]
  



On Friday, March 29, 2019 at 12:18:14 PM UTC-4, Neil Silberman wrote:
>
> Hi all: We have successfully configured the thesauri and collections, 
> which are all displayed in alphabetical order. However we would like to 
> change the order in which terms appear in dropdown menus to precisely match 
> the order on a paper form that our group has formulated. Its possible to 
> move the terms around temporarily, but when the collection is closed, the 
> terms all revert to alphabetical order. Is there some way to change the 
> order to be permanently non-alphabetical? Thanks in advance for any help in 
> this.
>
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Arches] Re: Time Zone

2018-09-06 Thread Angela Labrador
Hi Dale --

You're in the right file, but the wrong lines -- that area controls the 
database's timezone settings.

If you look further down in your settings_local.py, you will find the 
TIME_ZONE line and the USE_TZ line -- edit those (which control Django). 
They're around line 322 for me (Arches 4.3.0).

You may have to restart Apache or your Django testserver.

Angela

On Thursday, September 6, 2018 at 9:26:08 AM UTC-4, Dale Lloyd wrote:
>
> Arches runs on Ubuntu. Ubuntu is set to the local London time zone, but 
> Arches is using the Chicago time zone.
>
> I tried editing settings_local.py:
>
> DATABASES = {
> ...
>
> "TIME_ZONE": "Europe/London",
>
> ...
> } 
> ...
> USE_TZ = True
>
>
>
> But the Apache error log shows:
>
> ImproperlyConfigured: Connection 'default' cannot set TIME_ZONE because 
> its engine handles time zones conversions natively.
>
> Please could somebody let me know how to get Arches to use our local time 
> zone?
>
>
>
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Arches] Re: error initialising

2018-08-30 Thread Angela Labrador
Thanks for confirming so quickly, Adam!

I had looked at the xenial dependencies script and saw node legacy listed,
so it seemed deliberate...but I just kept hitting those issues with v4.2.6.

Will move forward by installing 6.2.0.

Thanks again,
Angela

On Thu, Aug 30, 2018 at 10:50 AM Adam Cox  wrote:

> Angela, I believe that the Node version is the problem. I encountered this
> just last week, and had also run the xenial setup script, so I thought I
> would be fine. I got the same node version warning as you and when I
> upgraded (after which I must have reinstalled yarn but don't recall)
> everything worked fine.
>
> Hopefully a member of the Farallon team can address this, because it does
> look like legacy node was deliberately chosen:
> https://github.com/archesproject/arches/blob/master/arches/install/ubuntu_xenial_setup.sh#L45
> (and has been chosen from the start:
> https://github.com/archesproject/arches/blame/379a5859a3abf8720fc84f6391280ef639947f88/arches/install/ubuntu_xenial_setup.sh#L6
> ).
>
> This is what I have working for me now:
>
>
>
>
> Hope that helps,
> Adam
>
> On Thu, Aug 30, 2018 at 9:19 AM, Angela Labrador  wrote:
>
>> This just happened to me on two fresh Arches 4 installations. When I run
>> collectstatic, the packages directory is never copied into my static dir
>> that apache is serving, thus various javascript reference errors start
>> popping up because the js scripts aren't loading/being found (effectively
>> breaking the site beyond the home page).
>>
>> I tried reinstalling yarn (in my virtualenv) as Adam suggested above --
>> it is at 1.9.4, although it does give me a warning that I'm using Node
>> 4.2.6, which is not supported. Is this legacy version used by design? Or
>> did something go wrong during my installation (Ubuntu Xenial)?
>>
>> Like Ben, I can hunt around for the javascript files and copy them over
>> to my static folder manually, but I wonder what didn't run correctly during
>> installation (and what other errors may be lurking because of that).
>>
>> Thanks,
>> Angela
>>
>> On Wednesday, August 8, 2018 at 12:42:32 PM UTC-4, Ben O'Steen wrote:
>>>
>>> I've been hitting something similar. I've noticed that the package.json
>>> file is not created or copied over when you run "arches-project create
>>> ...". I'm just learning the project so do not know that this is by design,
>>> and whether this should be done manually. I fixed my dev site by copying
>>> over this to my project root (and editing the metadata at the top to
>>> reflect my project, though if you do that or not it will not affect the
>>> yarn install AFAIK)
>>>
>>> Ben
>>>
>>> On 8 August 2018 at 09:07, Adam Cox  wrote:
>>>
>>>> Hi David, just wanted to check back on this, a fresh reinstall should
>>>> be helpful, however is sounds like yarn install did not get run
>>>> properly during the installation. If you encounter this problem again,
>>>> enter your project and try running yarn install. This should install
>>>> all of those .js files that you were missing. This should have happened
>>>> automatically after you created your project, but perhaps there was a
>>>> hangup.
>>>>
>>>> Adam
>>>>
>>>> On Tuesday, July 31, 2018 at 8:51:02 AM UTC-7, David Lopes wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> Is anyone familiar with this error?
>>>>> The instalation went well but afterwards no access to the site's
>>>>> management, Could it be not enough RAM?
>>>>>
>>>>>
>>>>>
>>>>> <https://lh3.googleusercontent.com/-9suz_MIVZd0/W2CE-ZsccMI/Fjk/6pUOteTCJ0c0eJr6_0xWfO2rOGd06ZglACLcBGAs/s1600/2018-07-30-171231_1600x804_scrot.png>
>>>>>
>>>>>
>>>>> Thank you, best regards.
>>>>>
>>>> --
>>>> -- To post, send email to arches...@googlegroups.com. To unsubscribe,
>>>> send email to archesprojec...@googlegroups.com. For more information,
>>>> visit https://groups.google.com/d/forum/archesproject?hl=en
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Arches Project" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to archesprojec...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
&

Re: [Arches] Re: error initialising

2018-08-30 Thread Angela Labrador
This just happened to me on two fresh Arches 4 installations. When I run 
collectstatic, the packages directory is never copied into my static dir 
that apache is serving, thus various javascript reference errors start 
popping up because the js scripts aren't loading/being found (effectively 
breaking the site beyond the home page).

I tried reinstalling yarn (in my virtualenv) as Adam suggested above -- it 
is at 1.9.4, although it does give me a warning that I'm using Node 4.2.6, 
which is not supported. Is this legacy version used by design? Or did 
something go wrong during my installation (Ubuntu Xenial)?

Like Ben, I can hunt around for the javascript files and copy them over to 
my static folder manually, but I wonder what didn't run correctly during 
installation (and what other errors may be lurking because of that).

Thanks,
Angela

On Wednesday, August 8, 2018 at 12:42:32 PM UTC-4, Ben O'Steen wrote:
>
> I've been hitting something similar. I've noticed that the package.json 
> file is not created or copied over when you run "arches-project create 
> ...". I'm just learning the project so do not know that this is by design, 
> and whether this should be done manually. I fixed my dev site by copying 
> over this to my project root (and editing the metadata at the top to 
> reflect my project, though if you do that or not it will not affect the 
> yarn install AFAIK)
>
> Ben
>
> On 8 August 2018 at 09:07, Adam Cox > 
> wrote:
>
>> Hi David, just wanted to check back on this, a fresh reinstall should be 
>> helpful, however is sounds like yarn install did not get run properly 
>> during the installation. If you encounter this problem again, enter your 
>> project and try running yarn install. This should install all of those 
>> .js files that you were missing. This should have happened automatically 
>> after you created your project, but perhaps there was a hangup.
>>
>> Adam
>>
>> On Tuesday, July 31, 2018 at 8:51:02 AM UTC-7, David Lopes wrote:
>>>
>>> Hi,
>>>
>>> Is anyone familiar with this error? 
>>> The instalation went well but afterwards no access to the site's 
>>> management, Could it be not enough RAM?
>>>
>>>
>>>
>>> 
>>>
>>>
>>> Thank you, best regards. 
>>>
>> -- 
>> -- To post, send email to arches...@googlegroups.com . To 
>> unsubscribe, send email to archesprojec...@googlegroups.com . 
>> For more information, visit 
>> https://groups.google.com/d/forum/archesproject?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Arches Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to archesprojec...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Arches] Supporting "fuzzy dates", approximations, and uncertain dates in Arches

2016-05-06 Thread Angela Labrador
Greetings!

While learning how Arches works and testing it out in house, we found that 
adding Extended Date/Time Format 
<http://www.loc.gov/standards/datetime/pre-submission.html>support to 
Arches date fields would possibly benefit users who need to manage a wider 
range of dates in their inventory system: dates such as "about 1800" or 
date ranges such as "1934 - present". 

We've developed a validation function that can handle such date strings 
while maintaining consistency and basic integrity for search in Arches. The 
feature is available to the community at our Github repository along with 
more detailed technical documentation 
<https://github.com/coherit/edtf-arches-hip> for installing and testing. 
Our recent blog article 
<http://www.coherit.com/blog/fuzzy-dates-edtf-arches/> provides some 
background as well. 

Please try it out -- we welcome all contributions and issue reports at our 
repo!

Hope this helps out some folks,
Angela Labrador, PhD.
Coherit Associates, LLC

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Arches] Re: Best practices for place data not meant for publication

2015-12-12 Thread Angela Labrador
I have made a ticket on Bitbucket for this (Issue #299 - I hope I did this
right).

https://bitbucket.org/arches/arches3/issues/299/support-for-private-place-data


On Fri, Dec 11, 2015 at 2:24 PM, Alexei Peters <apet...@fargeo.com> wrote:

> Angela could you make a ticket for this?   People can then upvote that
> issue so that we can gauge it's importance to the community.
> Thanks,
> Alexei
>
>
> Director of Web Development - Farallon Geographics, Inc. - 971.227.3173
>
> On Fri, Dec 11, 2015 at 2:24 AM, Edmund Lee <
> edmund@historicengland.org.uk> wrote:
>
>> I would second this (+1) as a valuable additional feature for Arches.
>> While personally I'm very much on the Open Information side, there are
>> sites which need to be managed (and receorded in systems such as Arches)
>> without making precise locational information availailable to all.
>>
>> Ed
>>
>> On Tuesday, December 8, 2015 at 4:11:40 PM UTC, Angela Labrador wrote:
>>
>>> Hello all,
>>>
>>> Apologies if this has already been addressed:
>>>
>>> I'm dealing with a use case wherein a particular heritage site's
>>> location is "Not for publication" but still needs to be tracked within
>>> Arches by authenticated users. The ACL grants permissions per node, and I
>>> have not found a flag that allows for per instance override (e.g. by
>>> default all locations are available to anonymous users, but if field_x=true
>>> or address_type="private" then the place data are only available to
>>> authenticated users).
>>>
>>> Since this is a common issue with archaeological sites and certain
>>> Indigenous and sacred sites, I'm wondering how others have dealt with this
>>> or if I'm missing something obvious.
>>>
>>> Many thanks,
>>> Angela
>>>
>>>
>> --
>> -- To post, send email to archesproject@googlegroups.com. To
>> unsubscribe, send email to archesproject+unsubscr...@googlegroups.com.
>> For more information, visit
>> https://groups.google.com/d/forum/archesproject?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Arches Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to archesproject+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> -- To post, send email to archesproject@googlegroups.com. To unsubscribe,
> send email to archesproject+unsubscr...@googlegroups.com. For more
> information, visit https://groups.google.com/d/forum/archesproject?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Arches Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/archesproject/mcGTbq9nK58/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> archesproject+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Arches] Best practices for place data not meant for publication

2015-12-08 Thread Angela Labrador
Hello all,

Apologies if this has already been addressed:

I'm dealing with a use case wherein a particular heritage site's location 
is "Not for publication" but still needs to be tracked within Arches by 
authenticated users. The ACL grants permissions per node, and I have not 
found a flag that allows for per instance override (e.g. by default all 
locations are available to anonymous users, but if field_x=true or 
address_type="private" then the place data are only available to 
authenticated users). 

Since this is a common issue with archaeological sites and certain 
Indigenous and sacred sites, I'm wondering how others have dealt with this 
or if I'm missing something obvious. 

Many thanks,
Angela
 

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Arches] cloud/vps reserve specs

2015-10-30 Thread Angela Labrador
I understand the minimum requirements as posted for Arches is 8-16GB of 
RAM, which for institutions with in house servers or dedicated server 
hosting levels (already), is fairly economical. 

But for small organizations with little to no budget, a vps or cloud setup 
would be nice. However, having 8-16GB of RAM in reserve typically scales a 
vps plan into uneconomical and fairly over spec'ed territory. For instance, 
on linode, 8GB of RAM also gets you 6 CPU cores, 192GB SSD, and 8TB 
transfer at $80/month, which seems ridiculously overpowered. With AWS EC2, 
you're looking at a t2.large instance at the least, which puts you at 
$76/mo. 

For those of you running Linux vps or cloud instances out there, I'm 
curious what your average load has been and what resources your instance 
needs in reserve. For those on AWS, are you on a t2 instance, and if so, 
how are the CPU credits working out?

I understand this all scales depending upon dataset size and number of 
requests, so any stats people can share would be really helpful for 
estimating budgets and planning for future steps up in instance specs as 
the dataset grows.

Many thanks,
Angela

P.S. I can share the following for my testing instance: 
Linode 1GB RAM 1CPU core running Ubuntu trusty with the sample Arches 3 hip 
data, with 1 demo user accessing, the load was minimal: max CPU usage 8%, 
i/o rate 76 avg with highest spike at 1890, using 1% of monthly bandwidth 
to install and access (2 work weeks of fairly regular access/usage). 
But getting some production data would be nice...

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Arches] jQuery error on fresh install of 3.0.4 and hip 1.0.3

2015-09-15 Thread Angela Labrador
Amazingly helpful -- thank you!

Once I followed these instructions (and chgrp to www-data on the new static
dir) the install was golden and I no longer have the jquery error.

Looking back, I think I was just missing this step all along and had
bungled things by doing the work of collectstatic manually by copying files
to my local custom media dir (although not completely, hence the error).

Thanks again,
Angela

On Tue, Sep 15, 2015 at 1:01 PM, Adam Cox <mr.adam...@gmail.com> wrote:

> Hi Angela, you'll need to do a little bit of set up, and then run *(ENV)* 
> *python
> manage.py collectstatic*.  What will be happening is
>
>- Django collects all of the files from all of the STATICFILES_DIRS
>and puts them into one new STATIC_ROOT directory
>- Django creates a new url prefix every time a static file is requested
>- Apache is configured to take that url and point it to the new
>directory that is now holding all of the static files
>
> Here's are steps to accomplish this:
>
> 1. in settings.py:
> (leave STATICFILES_DIRS as it is)
> STATIC_ROOT = os.path.join(PACKAGE_ROOT, 'static')
> STATIC_URL = "/static/"
>
> 2. create that directory (inside your app):
> *mkdir /srv/crhim/my_hip_app/my_hip_app/static*
>
> 3. run the collectstatic command (with virtual environment activated!)
> *(ENV) cd /srv/crhim/my_hip_app/ && python manage.py collectstatic*
>
> 4. tell apache where to find the files, and give it access to the directory
>
> add these lines to your httpd file (or 000-default.conf on ubuntu):
>
> Alias /static/ /srv/crhim/my_hip_app/my_hip_app/static
>
> 
> Options Indexes FollowSymLinks
> AllowOverride None
> Require all granted
> 
>
> 5. restart apache
>
> Once you've done this, you'll need to run collect static any time you
> change a file that resides in your media directory (images, .css, or .js).
> It's necessary to set things up like this anyway, because after you've set
> DEBUG = False django will no longer serve those static files--it is left up
> to apache.
>
> Good luck!
>
> On Tuesday, September 15, 2015 at 11:20:57 AM UTC-5, Angela Labrador wrote:
>>
>> Thanks, Adam. I started over in order to test all this:
>>
>>- Reinstalled all dependencies using the bash script at
>>http://arches3.readthedocs.org/en/latest/installing-dependencies-linux/
>>- Ran through all installation instructions for arches and arches_hip
>>- Opened the firewall to allow temp remote access to django
>>development server
>>
>> NO ERRORS when using the django dev server! Hooray!
>>
>> However, when I host through apache, none of the contents of the arches
>> or arches_hip media directories (e.g. css, js, etc.) are being hosted. I'm
>> assuming this is related to
>> STATICFILES_DIRS = (os.path.join(PACKAGE_ROOT, 'media'),) +
>> STATICFILES_DIRS
>> in settings.py.
>>
>> In my apache host conf, I have media successfully aliased to my app's
>> specific media directory (the one where I would put my custom files like
>> package.css). But, it is not aggregating the other sources for these static
>> files.
>>
>> What is the best way to edit settings.py and/or httpd.conf to make sure
>> that the media directories under arches/ and arches_hip/ are also being
>> hosted? Are people hardcoding this into settings.py? Using symlinks from
>> /var/www?
>>
>> Many thanks,
>> Angela
>>
>>
>>
>>
>>
>>
>> On Friday, September 11, 2015 at 3:59:55 PM UTC-4, Adam Cox wrote:
>>>
>>> Well, to check if it's a problem in your virtual environment, you could
>>> just make a new one (called ENV2 or something), install arches-hip there,
>>> and use it instead.  Activate it, reinstall the package and then run the
>>> dev server and see if the problem persists (you'd have to reconfigure the
>>> virtual host if you want apache to use the new virtual environment).  Make
>>> sure that your settings.py points to the defaults in arches-hip, i.e.
>>> comment out both the RESOURCE_GRAPH_LOCATIONS and CONCEPT_SCHEME_LOCATIONS
>>> variables so your app will use the defaults.
>>>
>>>
>>> On Fri, Sep 11, 2015 at 2:16 PM, Angela Labrador <ala...@gmail.com>
>>> wrote:
>>>
>>>> Great catch, Adam.
>>>>
>>>> Good news: I rebuilt the database and reloaded the sample authority
>>>> files -- now I'm at 1221 concepts (I must have added one while poking
>>>> around).
>>>>
>>>> Not so great news: I disabled apache, edite

Re: [Arches] jQuery error on fresh install of 3.0.4 and hip 1.0.3

2015-09-15 Thread Angela Labrador
Thanks, Adam. I started over in order to test all this: 

   - Reinstalled all dependencies using the bash script at 
   http://arches3.readthedocs.org/en/latest/installing-dependencies-linux/
   - Ran through all installation instructions for arches and arches_hip
   - Opened the firewall to allow temp remote access to django development 
   server

NO ERRORS when using the django dev server! Hooray!

However, when I host through apache, none of the contents of the arches or 
arches_hip media directories (e.g. css, js, etc.) are being hosted. I'm 
assuming this is related to 
STATICFILES_DIRS = (os.path.join(PACKAGE_ROOT, 'media'),) + STATICFILES_DIRS
in settings.py. 

In my apache host conf, I have media successfully aliased to my app's 
specific media directory (the one where I would put my custom files like 
package.css). But, it is not aggregating the other sources for these static 
files. 

What is the best way to edit settings.py and/or httpd.conf to make sure 
that the media directories under arches/ and arches_hip/ are also being 
hosted? Are people hardcoding this into settings.py? Using symlinks from 
/var/www?

Many thanks,
Angela






On Friday, September 11, 2015 at 3:59:55 PM UTC-4, Adam Cox wrote:
>
> Well, to check if it's a problem in your virtual environment, you could 
> just make a new one (called ENV2 or something), install arches-hip there, 
> and use it instead.  Activate it, reinstall the package and then run the 
> dev server and see if the problem persists (you'd have to reconfigure the 
> virtual host if you want apache to use the new virtual environment).  Make 
> sure that your settings.py points to the defaults in arches-hip, i.e. 
> comment out both the RESOURCE_GRAPH_LOCATIONS and CONCEPT_SCHEME_LOCATIONS 
> variables so your app will use the defaults.
>
>
> On Fri, Sep 11, 2015 at 2:16 PM, Angela Labrador <ala...@gmail.com 
> > wrote:
>
>> Great catch, Adam.
>>
>> Good news: I rebuilt the database and reloaded the sample authority files 
>> -- now I'm at 1221 concepts (I must have added one while poking around).
>>
>> Not so great news: I disabled apache, edited iptables, ran the django 
>> development server on 0.0.0.0:8000, pointed the web browser to the new 
>> port, and... still got the error.
>>
>> It sounds like it must be something local to my environment, and likely a 
>> path missing in my settings file or local env. I'll comb through the docs 
>> again and my logs to see if I can track it down. If any other ideas occur 
>> to anyone, I'm all ears!
>>
>> Thanks,
>> Angela 
>>
>> On Fri, Sep 11, 2015 at 1:49 PM, Adam Cox <mr.ad...@gmail.com 
>> > wrote:
>>
>>> Hi Angela, you could run the development server just to make sure that 
>>> apache isn't giving you trouble (though it doesn't really seem like that 
>>> kind of error).  Just make sure port 8000 is accessible and use *python 
>>> manage.py runserver 0:8000*.
>>>
>>> I've tried a fresh install of Arches and didn't encounter the errors you 
>>> found. I have in the past however, and not having loaded the concept 
>>> schemes is generally the problem.  Have you modified any of them (or the 
>>> resource graphs)?  I noticed that on my fresh install there were 1221 
>>> concepts, not 1222.
>>>
>>> On Friday, September 11, 2015 at 12:12:23 PM UTC-5, Angela Labrador 
>>> wrote:
>>>>
>>>> HI Alexei,
>>>>
>>>> Thanks for looking into this. Yes, I did load the sample data with no 
>>>> errors reported while running load_concept_scheme. RDM shows 43 
>>>> collections, 2 schemes, 136 entity types, and 1222 concepts.
>>>>
>>>> I should have mentioned that this is on Ubuntu Trusty 14.04.3 and using 
>>>> Apache2 (I believe I have mod_wsgi set up correctly, but that's another 
>>>> variable to throw in the mix as it could be a path missing in my vhost 
>>>> conf 
>>>> file).
>>>>
>>>> Thanks again,
>>>> Angela
>>>>
>>>> On Fri, Sep 11, 2015 at 12:15 PM, Alexei Peters <ape...@fargeo.com> 
>>>> wrote:
>>>>
>>>>> Hi Angela,
>>>>> I'll take a look at this this morning and let you know what I find out.
>>>>> Did you happen to load the sample data?
>>>>> Cheers,
>>>>> Alexei 
>>>>>
>>>>> Sent from my Windows Phone
>>>>> --
>>>>> From: Angela Labrador
>>>>> Sent: ‎9/‎11/‎2015 7:25 AM
>>>>> To: Arches Project
>>&g

Re: [Arches] jQuery error on fresh install of 3.0.4 and hip 1.0.3

2015-09-11 Thread Angela Labrador
HI Alexei,

Thanks for looking into this. Yes, I did load the sample data with no
errors reported while running load_concept_scheme. RDM shows 43
collections, 2 schemes, 136 entity types, and 1222 concepts.

I should have mentioned that this is on Ubuntu Trusty 14.04.3 and using
Apache2 (I believe I have mod_wsgi set up correctly, but that's another
variable to throw in the mix as it could be a path missing in my vhost conf
file).

Thanks again,
Angela

On Fri, Sep 11, 2015 at 12:15 PM, Alexei Peters <apet...@fargeo.com> wrote:

> Hi Angela,
> I'll take a look at this this morning and let you know what I find out.
> Did you happen to load the sample data?
> Cheers,
> Alexei
>
> Sent from my Windows Phone
> ------
> From: Angela Labrador <ala...@gmail.com>
> Sent: ‎9/‎11/‎2015 7:25 AM
> To: Arches Project <archesproject@googlegroups.com>
> Subject: [Arches] jQuery error on fresh install of 3.0.4 and hip 1.0.3
>
> Hello,
>
> I'm really enjoying learning and working with Arches so far. I have run
> into a jQuery error on a clean install of Arches 3.0.4 and Arches-Hip 1.0.3
> that I could use some help with:
>
> When I go to the Resource Manager form for historic resource or historic
> district (resources/HERITAGE_RESOURCE.E18/summary/
> or resources/HERITAGE_RESOURCE_GROUP.E27/summary/) I get the following:
> Uncaught TypeError: Cannot read property 'undefined' of undefined
> /media/js/views/forms/sections/branch-list.js:20
> and "Date Type" and "Keyword" is in red. (When I go to any of the other
> items in the Resource Manager, these fields are in gray and no error is
> thrown.)
>
> I am wondering if...
>
> 1) This is an expected error and is due to not having something set up
> correctly within my data model or not having a particular vocabulary set up
> yet. (I get the error regardless of whether I load the sample authority
> files or not.)
>
> 2) This is an unexpected error and I am missing a js file, have some issue
> with my jQuery version, have a permissions issue or... something else...?
>
> Many thanks for any advice or feedback and great work,
> Angela
>
>
> --
> -- To post, send email to archesproject@googlegroups.com. To unsubscribe,
> send email to archesproject+unsubscr...@googlegroups.com. For more
> information, visit https://groups.google.com/d/forum/archesproject?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Arches Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to archesproject+unsubscr...@googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Arches] jQuery error on fresh install of 3.0.4 and hip 1.0.3

2015-09-11 Thread Angela Labrador
Great catch, Adam.

Good news: I rebuilt the database and reloaded the sample authority files
-- now I'm at 1221 concepts (I must have added one while poking around).

Not so great news: I disabled apache, edited iptables, ran the django
development server on 0.0.0.0:8000, pointed the web browser to the new
port, and... still got the error.

It sounds like it must be something local to my environment, and likely a
path missing in my settings file or local env. I'll comb through the docs
again and my logs to see if I can track it down. If any other ideas occur
to anyone, I'm all ears!

Thanks,
Angela

On Fri, Sep 11, 2015 at 1:49 PM, Adam Cox <mr.adam...@gmail.com> wrote:

> Hi Angela, you could run the development server just to make sure that
> apache isn't giving you trouble (though it doesn't really seem like that
> kind of error).  Just make sure port 8000 is accessible and use *python
> manage.py runserver 0:8000*.
>
> I've tried a fresh install of Arches and didn't encounter the errors you
> found. I have in the past however, and not having loaded the concept
> schemes is generally the problem.  Have you modified any of them (or the
> resource graphs)?  I noticed that on my fresh install there were 1221
> concepts, not 1222.
>
> On Friday, September 11, 2015 at 12:12:23 PM UTC-5, Angela Labrador wrote:
>>
>> HI Alexei,
>>
>> Thanks for looking into this. Yes, I did load the sample data with no
>> errors reported while running load_concept_scheme. RDM shows 43
>> collections, 2 schemes, 136 entity types, and 1222 concepts.
>>
>> I should have mentioned that this is on Ubuntu Trusty 14.04.3 and using
>> Apache2 (I believe I have mod_wsgi set up correctly, but that's another
>> variable to throw in the mix as it could be a path missing in my vhost conf
>> file).
>>
>> Thanks again,
>> Angela
>>
>> On Fri, Sep 11, 2015 at 12:15 PM, Alexei Peters <ape...@fargeo.com>
>> wrote:
>>
>>> Hi Angela,
>>> I'll take a look at this this morning and let you know what I find out.
>>> Did you happen to load the sample data?
>>> Cheers,
>>> Alexei
>>>
>>> Sent from my Windows Phone
>>> --
>>> From: Angela Labrador
>>> Sent: ‎9/‎11/‎2015 7:25 AM
>>> To: Arches Project
>>> Subject: [Arches] jQuery error on fresh install of 3.0.4 and hip 1.0.3
>>>
>>> Hello,
>>>
>>> I'm really enjoying learning and working with Arches so far. I have run
>>> into a jQuery error on a clean install of Arches 3.0.4 and Arches-Hip 1.0.3
>>> that I could use some help with:
>>>
>>> When I go to the Resource Manager form for historic resource or historic
>>> district (resources/HERITAGE_RESOURCE.E18/summary/
>>> or resources/HERITAGE_RESOURCE_GROUP.E27/summary/) I get the following:
>>> Uncaught TypeError: Cannot read property 'undefined' of undefined
>>> /media/js/views/forms/sections/branch-list.js:20
>>> and "Date Type" and "Keyword" is in red. (When I go to any of the other
>>> items in the Resource Manager, these fields are in gray and no error is
>>> thrown.)
>>>
>>> I am wondering if...
>>>
>>> 1) This is an expected error and is due to not having something set up
>>> correctly within my data model or not having a particular vocabulary set up
>>> yet. (I get the error regardless of whether I load the sample authority
>>> files or not.)
>>>
>>> 2) This is an unexpected error and I am missing a js file, have some
>>> issue with my jQuery version, have a permissions issue or... something
>>> else...?
>>>
>>> Many thanks for any advice or feedback and great work,
>>> Angela
>>>
>>>
>>> --
>>> -- To post, send email to arches...@googlegroups.com. To unsubscribe,
>>> send email to archesprojec...@googlegroups.com. For more information,
>>> visit https://groups.google.com/d/forum/archesproject?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Arches Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to archesprojec...@googlegroups.com.
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> -- To post, send email to archesproject@googlegroups.com. To unsubscribe,
> send email to archesproject+unsubscr...@googlegroups.com. For more
> information, visit https://groups.google.com/d/forum/archesprojec