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

update puvspr.dat entries [MARXAN-946] #1158

Merged
merged 11 commits into from
Jul 13, 2022

Conversation

angelhigueraacid
Copy link
Contributor

@angelhigueraacid angelhigueraacid commented Jul 5, 2022

This PR changes the way puvspr.dat file is generated. Now, the calculations are made once a created specification is made, for each of the features selected in the specification, the calculation will be performed and stored, in order to retrieve this results when creating puvspr.dat file.

In case the project is a legacy project, no calculations will be performed for any feature within the specification. Also, this PR adds SplitCreateFeatures used for creating one feature per subset contained within a split feature.

Another PR will be created for exporting and importing the puvspr_calculations made for project features.

Feature relevant tickets

update puvspr.dat entries only for changed/added/deleted features

@vercel
Copy link

vercel bot commented Jul 5, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
marxan ✅ Ready (Inspect) Visit Preview Jul 13, 2022 at 11:51AM (UTC)
marxan-storybook ✅ Ready (Inspect) Visit Preview Jul 13, 2022 at 11:51AM (UTC)

Copy link
Member

@hotzevzl hotzevzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @angelhigueraacid!

all looks good - I have left a bunch of typo and minor comments.

the two main bits to consider more carefully are my comment about PuvsprDatLegacyProject.getLegacyAndMarxanFeatures() and on whether we should add a FK from the calculations table to projects_pu (at the expense of... an extra join or queries to get the value to write?)

@hotzevzl hotzevzl changed the title Feat/marxan 946 update puvspr.dat entries update puvspr.dat entries [MARXAN-946] Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Everything related the api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants