Standard Energy Efficiency Data (SEED) Platform™ is a web-based application that helps organizations easily manage data on the energy performance of large groups of buildings.
Other
111
stars
54
forks
source link
Add ability to retrieve all Audit Template submissions #4750
The Audit Template get submissions endpoint is paginated and can only fetch a single type of submission statuses. The max per_page value is 100.
What's this PR do?
calls a loop that will increase the page number each iteration until the returned submissions are less than per_page.
allows multiple audit template status types to be saved to the org as a comma separated string. For each valid type, a request to AT will be made and added to the submissions
How should this be manually tested?
import submission data for a city with more than 100 submissions.
or
if city has less than 100 submissions, the per_page variable on Line 161 in /audit_template/audit_template.py can be changed to a value less than the total submissions (ex: per_page = 2).
Any background context you want to provide?
The Audit Template get submissions endpoint is paginated and can only fetch a single type of submission statuses. The max per_page value is 100.
What's this PR do?
per_page
.How should this be manually tested?
per_page
variable on Line 161 in /audit_template/audit_template.py can be changed to a value less than the total submissions (ex: per_page = 2).What are the relevant tickets?
4749
Screenshots (if appropriate)
Org Settings