Comments (5)
Based on my testing today with the "secrets" branch, I concluded that when we replaced sqlite3 with AWS-postgreSQL, the API must have been pulling data from postgres and not a local sqlite instance. I may be wrong, and looking at the existing code I don't know how that would work exactly, but I am puzzled by the fact that I wiped out the reference to sqlite3 in settings.py
and I was still able to get a response from each endpoint and that the response included all the data I expected to see.
To be tested: what happens when I break the project_config.py
(e.g. give it a bad database password).
from team-budget.
@MikeTheCanuck the version that you're testing with may still be pulling data from the CSV files
from team-budget.
The two endpoints OCRB
and KPM
are still getting data from the CSV files. However, the summary
endpoint gets its data from the database. I just tested pull request #35 and confirmed that the endpoint can draw data from the AWS EC2 instance of PostgreSQL, rather than the sqlite3 that I used originally during development of that summary
endpoint.
from team-budget.
I would leave this issue open until we have refactored the endpoints, so that OCRB
and KPM
get their data from the database, rather than reading from the CSV file. At that point, we can probably get rid of the summary
endpoint, which is similar to OCRB
, although it shows one way to do filtering and sorting, which goes beyond the current functionality of OCRB
.
from team-budget.
Closed by the merge of pull request #59. All endpoints now read data from whichever database is specified in the project_config.py
file. I tested with the AWS EC2 instance running PostgreSQL and also tested with the configuration set for the embedded sqlite3 database. They both worked. Not at the same time, of course. But you can change the project_config.py
and restart the server to access a different database.
from team-budget.
Related Issues (20)
- Improve startup response from the Django app (to solve AWS deploy blocker) HOT 5
- ImproperlyConfigured exception when running makemigrations HOT 4
- Verify Production DB has no duplicate rows HOT 1
- Fix staticfiles in production HOT 1
- critical error: psycogreen missing from requirements file
- Critical error: missing gevent from requirements file
- RuntimeError: cannot release un-acquired lock HOT 4
- Why "fiscal_year" in BudgetHistory but "fy" in OCRB and KPM? HOT 1
- Take advantage of whatever minification that Brian Grant implemented in Emergency Response HOT 2
- Add `service_area_name` property to output of `/budget/history/bureau/` endpoint
- Add `% of total` property to the `/budget/history/bureau/` endpoint
- duplicate records in OCRB table in Integration environment PostgreSQL database HOT 5
- Data extract is missing anything from the Elected Officials service area HOT 1
- Monkey patch warning only on Budget Django app
- Empty JSON responses when using local sqlite3 database HOT 1
- service.civicpdx.orgβs server DNS address could not be found HOT 2
- Exception happens when browsing to local development instance of /budget/ route
- 126 static files copied to '/code/staticfiles' occurs on every Docker build
- Eliminate or document the env var WARNINGs during start-proj.sh -l
- Review API responses vs. previously hardcoded values powering budget bubbles
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from team-budget.