-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark tutorial street_edge_id in database #2772
Comments
There is some debate as to whether to go with a single row table or to use key-value pairs with many rows in the config table. I would lean towards the former so that everything is in the correct data type instead of keeping everything in a string when using key-value pairs. |
I like the former for reasons you articulate though I realize this might be
a large number of fields with a single row!
|
Looking at the
|
Whoever does this will need to do the following:
For the database names, we'll need to use the database names from our servers, even if they don't match what you named your database locally. If your local database doesn't match the name, you can manually run an insert into the table on your database! Here are the names of the databases:
|
closing as this is under #3320. |
Brief description of problem/feature
I added the tutorial
street_edge_id
to thecityparams.conf
file so that we can access it throughout our application. But we still don't have access to the ID when running queries on the database directly, outside of the application. The workaround right now is that we can get the the ID with the following query:This happens to get the correct ID in every city, but we should add something more direct.
Potential solution(s)
We should probably add a
config
table at this point. There are probably some other configs in thecityparams.conf
file that would work better in the database, either because they are useful when running standalone queries or because the config can change frequently and we don't want to do a new code deployment for a config change.The text was updated successfully, but these errors were encountered: