Police-Data-Accessibility-Project / data-sources-app

An API and UI for using and maintaining the Data Sources database
MIT License
2 stars 5 forks source link

Set up data-sources-v2-dev and data-sources-v2 Digital Ocean Apps #333

Closed maxachis closed 2 months ago

maxachis commented 3 months ago

Now that we're ready to start doing more flexible testing, it's time to start setting up these applications.

Currently, data-sources-v2 exists in Digital Ocean, but its build has been failing. I think I know why, but to make sure I'm right, I'll need to get data-sources-v2-dev started first and be able to implement steps that data-sources-v2 will emulate.

I can probably do a lot of the requisite steps on my own, but things that I probably can't do on my own is:

josh-chamberlain commented 3 months ago

@maxachis data-sources-v2-dev created. I used the dev database envar and didn't add a secret key yet since I'm not sure whether we need a separate API key for dev stuff.

maxachis commented 3 months ago

@josh-chamberlain Excellent. Working on setting it up now. I am wondering if we want to give the app admin-level permissions to the dev database -- it's dev, so it's not the most risky thing, but we probably want to develop a precise role that is more specific, if we don't have that yet (and I think we do).

maxachis commented 3 months ago

@josh-chamberlain It's up! Now to get the main v2 version running, I need to add the runtime.txt file in the PR below. There may be more steps, but this one is necessary.

https://data-sources-v2.pdap.dev/

josh-chamberlain commented 3 months ago

@maxachis woohoo! that's great.

re: admin-level permissions, sounds good—I think we should discuss it. We do plan to give people described as "admins" the ability to edit requests here: #256

we don't have too many other admin actions planned yet. we would probably use retool or something, with dedicated endpoints, for internal tools (or develop internal tools as their own little app)

so, now's a good time to get more precise.

maxachis commented 2 months ago

Now that everything here seems to be properly set up, I think we can comfortably close this issue.