Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to add parties without relationships #1581

Closed
dpalomino opened this issue Jun 12, 2017 · 9 comments
Closed

Ability to add parties without relationships #1581

dpalomino opened this issue Jun 12, 2017 · 9 comments
Assignees
Labels

Comments

@dpalomino
Copy link

dpalomino commented Jun 12, 2017

Updating description with new requirement format:

Problem Statement

There is a need from some partners to be able to add parties without having to associate (yet) those parties to specific locations via a relationship entity.

Context / Use Case

The best example of this could be when an organization is collecting in a first phase all the information regarding the landowner, and in a second phase when going to the field an visiting the actual parcels, the information regarding the location.

User Story

As a data collector, I want to be able to add a party entity using the web UI without creating first any location.

Description

For doing that we will be including a "+Add party" button in the drop down Add menu, right between "+Add location" and "Add resource":
screen shot 2017-06-12 at 17 35 04

Clicking on "Add party" should redirect the user to the "Parties" section where a web form would be appearing on the right side to create the new party.

Conditional attributes for party types ("IN", "GR" and "CO") should be considered in the same way as we do when adding a relationship with a new party via the "Add location" section.


cc: @clash99

We have detected a need from some partners to add a party entity without having to attach the party entity to a location via a relationship entity. That's because for instance they are collecting party information first.

So we need a mechanism to add parties via the WUI with no relationships with locations.

For doing that we will be including a "+Add party" button in the drop down Add menu, right between "+Add location" and "Add resource":
screen shot 2017-06-12 at 17 35 04

Clicking on "Add party" should redirect the user to the "Parties" section where a web form would be appearing on the right side to create the new party.

Conditional attributes for party types "IN", "GR" and "CO" should be considered in the way as we are doing when adding a relationship with a new party via the "Add location" section.

@dpalomino
Copy link
Author

Problem Statement

There is a need from some partners to be able to add parties without having to associate (yet) those parties to specific locations via a relationship entity.

Context / Use Case

The best example of this could be when an organization is collecting in a first phase all the information regarding the landowner, and in a second phase when going to the field an visiting the actual parcels, the information regarding the location.

User Story

As a data collector, I want to be able to add a party entity using the web UI without creating first any location.

Description

For doing that we will be including a "+Add party" button in the drop down Add menu, right between "+Add location" and "Add resource":
screen shot 2017-06-12 at 17 35 04

Clicking on "Add party" should redirect the user to the "Parties" section where a web form would be appearing on the right side to create the new party.

Conditional attributes for party types ("IN", "GR" and "CO") should be considered in the same way as we do when adding a relationship with a new party via the "Add location" section.

@clash99
Copy link
Contributor

clash99 commented Jun 29, 2017

We should also add and "add" button to the party index page.

@clash99
Copy link
Contributor

clash99 commented Jul 18, 2017

Wireframes

Party Index

party index

Add Party Modal

party index_ add party modal

@clash99
Copy link
Contributor

clash99 commented Jul 18, 2017

@laura-barluzzi - Here is a link to the start of the functional specs for this task: https://drive.google.com/open?id=1ySPJCYRnf0CKYh6igaclD2N8JdBKuqmScS7OU5KK4sE

I've copied this from another requirements document so you will see some strike-through text remaining that should be updated with your notes on how to proceed or removed. Let me know if you have any questions. Thanks!

@clash99 clash99 changed the title Add party button Ability to add parties without relationships Jul 18, 2017
@clash99
Copy link
Contributor

clash99 commented Jul 18, 2017

@dpalomino and @laura-barluzzi - One thing I should note is that this task is to add parties to the party index without being party of a relationship.

A natural progression is for a user to be able to add a relationship/location once viewing a party but I think due to time constraints, we should tackle that at a later date. Adding parties to the party index will allow them to appear in the dropdown when adding a relationship to a location. I believe that is an acceptable workflow. Let me know if you disagree.

Parties listed in dropdown when adding a relationship to a location

screenshot 2017-07-13 10 19 38

@dpalomino
Copy link
Author

Hey @clash99!

Nice wireframes, as always :-)

@dpalomino and @laura-barluzzi - One thing I should note is that this task is to add parties to the party index without being party of a relationship.

A natural progression is for a user to be able to add a relationship/location once viewing a party but I think due to time constraints, we should tackle that at a later date. Adding parties to the party index will allow them to appear in the dropdown when adding a relationship to a location. I believe that is an acceptable workflow. Let me know if you disagree.

Totally agree. I think that workaround is totally acceptable for now.

Thanks!

@laura-barluzzi
Copy link
Contributor

Hi @clash99, at a first look I think I agree with your proposal of showing the dropdown list of existing parties (which would display also those created from the party index in template/party/party_list.html. However, I wouldn't remove the option to do what already happens -- I'd try just to "add" this new way of adding a party rather than removing the existing way. In other words, in the "ADD RELATIONSHIP" modal I would allow the user to choose an existing party or type in a new one (as already happens). I am still not super familiar with the party/model.py document though so I still have to come up with a clear way to work this out -- I need more playing/reading! :)

@clash99
Copy link
Contributor

clash99 commented Jul 20, 2017

@laura-barluzzi Yes, agree with above comment. We don't want to change the way to add a party or select existing parties in the relationship area. That should remain the same.

@laura-barluzzi
Copy link
Contributor

[UPDATE] Current code work-in-progress is available at my active branch add_party_without_relationship

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants