Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Outsource new_data==TRUE logic from web_tool_script_1.R #130

Closed
jacobvjk opened this issue Oct 7, 2020 · 5 comments
Closed

Outsource new_data==TRUE logic from web_tool_script_1.R #130

jacobvjk opened this issue Oct 7, 2020 · 5 comments
Assignees

Comments

@jacobvjk
Copy link
Member

jacobvjk commented Oct 7, 2020

https://github.com/2DegreesInvesting/PACTA_analysis/blob/a25b552c66d69ea169c9f14791e45df8a2c1cdf1/web_tool_script_1.R#L65

Regarding this switch, @Clare2D and I were thinking about outsourcing this to another script in this repo that is not called from the webtool scripts so it does not interfere with them running. this new script would check that the data for the webtool is in the right format and it would be possible to trigger an update of the pacta-data. It would only be called internally. Any opinions on this @cjyetman @maurolepore

@cjyetman
Copy link
Member

cjyetman commented Oct 7, 2020

related to #123

@maurolepore
Copy link
Contributor

I don't understand enough to suggest anything here. But I'm happy to review a draft PR or draft it myself if we pair program.

@jacobvjk
Copy link
Member Author

jacobvjk commented Oct 7, 2020

That's fine, I would want to get some of the essential remaining issues done first, but hopefully get back to this asap then

@cjyetman cjyetman self-assigned this Oct 9, 2020
@cjyetman
Copy link
Member

I don't think this is an issue anymore... new_data seems to always be FALSE now. Frankly, I have no idea why or how. Maybe something changed when the default branches were getting moved around?

I thought that what was in parameter_files/WebParameters_docker.yml and in parameter_files/WebParameters_2dii.yml were different, but now they both have new_data: FALSE, and git claims those lines haven't been changed for months.

🤷

@cjyetman
Copy link
Member

this has been superseded by #235

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

No branches or pull requests

3 participants