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

Add original heading id to investments #3597

Merged
merged 2 commits into from
Oct 1, 2019
Merged

Add original heading id to investments #3597

merged 2 commits into from
Oct 1, 2019

Conversation

voodoorai2000
Copy link
Member

@voodoorai2000 voodoorai2000 commented Jun 7, 2019

References

PR: AyuntamientoMadrid#2033

Context

Investments can be reclassified to a different heading during the participatory budget process.

Whilst we are recording this change of heading in the previous_heading_id attribute, we are only keeping the last heading. If there are multiple reclassifications we lose this chain of reclassifications.

Objectives

Keep a record of the heading id in which an investment was created, just in case it gets reclassified multiple times.

@voodoorai2000 voodoorai2000 added this to Review in Roadmap Jun 14, 2019
Investments can be reclassified to a different heading during the participatory budget process.

Whilst we are recording this change of heading in the `previous_heading_id` attribute, we are only keeping the _last_ heading. If there are multiple reclassifications we lose this chain of reclassifications.

In this commit we are adding an `original_heading_id` attribute, that will only be set once, when creating the investment, and will not get lost with multiple reclassificaitons of an investment.
By default we want this attribute to be the current heading id for existing investments. If there have been reclassifications, this field should be updated accordingly.
Roadmap automation moved this from Reviewing to Testing Sep 12, 2019
@javierm javierm merged commit fd4e007 into master Oct 1, 2019
Roadmap automation moved this from Testing to Release 1.1.0 Oct 1, 2019
@javierm javierm deleted the original_heading_id branch October 1, 2019 12:52
smarques pushed a commit to venetochevogliamo/consul that referenced this pull request Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Roadmap
  
Release 1.1.0
Development

Successfully merging this pull request may close these issues.

None yet

2 participants