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

Assign investments to headings based on their location #5120

Open
javierm opened this issue May 31, 2023 · 1 comment
Open

Assign investments to headings based on their location #5120

javierm opened this issue May 31, 2023 · 1 comment
Labels

Comments

@javierm
Copy link
Member

javierm commented May 31, 2023

Background

In pull request, #3907, we added the possibility to assign a geozone to a heading and make it appear on a budget's map.

On the other hand, when creating a new investment project, citizens can select which heading the project is associated to and the location of the investment on a map.

This might lead to inconsistencies, since a project might belong to a heading while being displayed on an area belonging to a different heading.

Objectives

Note: this is a draft. The problem is a complex one and we haven't found a solution yet; so what follows are just ideas.

It would be great if, when choosing a place on the map, the project was assigned automatically to a heading. However, there are some potential problems: what happens if the selected area doesn't belong to a heading? What happens if the heading isn't associated to a geozone? What happens if there are many headings associated to the same geozone?

@Senen
Copy link
Member

Senen commented Jun 29, 2023

Here is a not-so-good idea as detecting the Scope of operation automatically, but at least it reduces the chance to enter inconsistent information through the interface 🤔 .

  • The user goes to the new budget investment form
  • When the user changes de "Scope of operation", the map loads just the limits (polygon) for the selected option
  • The user only can add a marker if it's placed within the geozone limits
  • Maybe we can write a server-side validator to verify the coordinates are within the geozone limits. No idea about how complex this is at this time.

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

2 participants