Open maxachis opened 1 month ago
The only thing keeping us from a proper v2 beta is #32, IMO.
So now with a semi-stable v2 Production Database set up, we can make more progress on this.
Steps I'll need to take to finish setting up:
/notifications
endpoint. We can trigger that manually now and then later rejigger it to occur on a regular basis.Automation job set up! I've created an automation
repository for storing this (and likely eventually other) automation jobs that don't require a whole repository.
https://github.com/Police-Data-Accessibility-Project/automation/tree/main
In automation.pdap.io
, I set it to run on the second day of every month.
I gave it a run and it successfully ran to completion, but of course it had no notification jobs to send out. So next step will be to give it some notification jobs, along with some follows, and then test that.
@maxachis this is OK—but I'm curious why it wouldn't go in the main repo of the app? It occurs to me that if we changed something about the API which affected notifications, we'd have to make an accompanying PR in that other repository.
@josh-chamberlain It's a worthwhile question, and one that I suppose depends on our design philosophy!
There's definite benefits in having everything in one big mondo app, in terms of everything being centralized and not having to make parallel PRs.
The downsides, as I see it, are as follows
Now my views on this have evolved over time -- some of the repositories I mentioned above, like the Data Source Mirror and Health Monitor, could probably be moved to the automation repository just to keep things focused. So I do think some consolidation is in order. But I think too much consolidation risks making a big blob of confusion.
I'll pull @joshuagraber into this, because he may have some insight that maybe we haven't yet considered.
@maxachis
I would also say that consolidating based on automation is less worthwhile, because the only thing they have in common is the fact that they are automated; I don't think it has much effect either way. In fact, maybe my issue is actually calling the repo automations
when it doesn't contain all of them (or need to).
So what do you think about, instead, just naming that new repo notifications
and leaving them where they are? They are pretty important for us, and will likely grow in scope.
The more stuff you have in a repo, the more stuff needs to be downloaded for that repo. That adds time and resources for every user, every Github Action, every automation job that makes use of it.
Agreed here. But the current contents is not going to break anyone's bandwidth.
I would also say that consolidating based on automation is less worthwhile, because the only thing they have in common is the fact that they are automated; I don't think it has much effect either way. In fact, maybe my issue is actually calling the repo automations when it doesn't contain all of them (or need to).
Agreed here, too. If we're centralizing and sharing automation jobs, I would suggest creating org-level Github Actions and then accessing them via matrices in the GH workflow files that are stored in various repositories. I've been considering doing this for the client workflows that are more or less duplicated in design-system
and data-sources-app
/ ds-v2
. If that's a route we're considering, I'm happy to implement it for those shared client workflows as a POC.
So what do you think about, instead, just naming that new repo notifications and leaving them where they are? They are pretty important for us, and will likely grow in scope.
But also agreed here, and I think in this particular case, we can consider notifications a micro-service, and give it its own repo.
@josh-chamberlain @joshuagraber Alright! The repository has been renamed to notifications
!
Follows :
478
part of: #26
To implement the above endpoint properly, an automation job will need set up which can take subscribed users and send them notifications about updated data requests and sources.
This requires several other components:
Other things to consider:
Requirements