[P1] Run tool over batch of input addresses #40
Labels
No labels
Bug
Client: Biosphere Capital
Client: Central Hawkes Bay District Council
Client: Forward Works Viewer
Client: Kea/Kākā Databases
Client: Otorohanga District Council
Stage: Blocked
Stage: Doing
Stage: Peer review / Staging
Stage: Ready
Stage: UAT AT
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lightweight/right-tree#40
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Wilfred wants to run the tool for a large number of input addresses (thousands) and any other required input data.
changed title from [1] Run tool over batch of input addresses to [{+P+}1] Run tool over batch of input addresses
There's a few options here:
Both solutions if they must return PDFs could end up returning a large number of files, or a single very large archive. Either way this could use up a lot of data.
Also some performance considerations may need to be made depending on how the PDF is generated. @mattn to check into this before an estimate.
Plant
instances and saves it to disk (becomes downloadable)<table>
, and saves it to diskThis does too many disk IO operations and should probably use Python's buffer objects to save intermediate data that won't be served to the end user, i.e. the HTML file and generated PDF.
Still need to consider if we want a CSV+PDF per-address or if there should be a bulk output format. Should check with Wilfred.
After speaking with Wilfred, it sounds like we can do this quite easily. It is also his number one priority. What he wants is to generate a CSV and PDF for each row of an input CSV containing:
which is essentially a filled out form from the frontend.
Spoken to Wilfred and he now wants this to become a front end form where a user inputs
On submit, this creates one or more records in a new table. This will require a new Django model (
StoredQuery
?) that will have options on the admin interface to generate a PDF per query, a functionality described in #29assigned to @mattn
mentioned in issue #44
mentioned in commit
a03de013de
mentioned in commit
fe59b0c854
mentioned in commit
108e3e0f67
mentioned in commit
ff197cc1a8
mentioned in merge request !44
mentioned in commit
0f36c79dbf
mentioned in commit 601b912d1451617ffcd9e01cb8c194958b81fef7
mentioned in merge request !45
mentioned in commit 13903b287db6beaef85f6634464ca7ad9af2ea20
mentioned in merge request !46
mentioned in commit
3f9f816a7e
mentioned in commit c4ad0b6e99fe8e4a83e70375bf4e7c9924b98764
mentioned in commit f33793d746dbb945d68a3e5862c036f2ebad0f29
mentioned in commit
9ac545a6d4
Demo with Wilfred went well and he's happy with the changes. Closing this now.