Allow upload of custom population values

Open
#756 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
r
Domain
data, frontend

Research direction

Start with the 'Population Growth' section of the Shiny app, where the dropdown lives, and see how the existing scenario inputs are read and saved to params.json under the demographic_adjustment key. The issue proposes a 'Custom' option that reveals a template download and a fileInput(), with uploaded values validated on ingestion; the file format and validation schema are still open questions to settle first. Done means a user can download the template, upload a completed one, and see the values written to demographic_adjustment, with the process explained in the interface.

Written by the indexing model from the issue text.

Description

enhancement must

Presumably the flow will be like:

  1. Go to the 'Population Growth' section of the app.
  2. Select a new 'Custom' option from the dropdown, which will reveal (a) a button to download a template (probably CSV) and (b) a fileInput() element.
  3. Upload a completed version of the template, which we could validate on ingestion (perhaps using the schema in part).
  4. The values get written to the demographic_adjustment key of the scenario's params.json.

Would need to explain this process to the user in the interface and add some notes to project information, probably.

Dominant language
R
Stars
2
Forks
1
Avg merge
2d 10h
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from The-Strategy-Unit/nhp_inputs

All issues in The-Strategy-Unit/nhp_inputs

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.