-
Notifications
You must be signed in to change notification settings - Fork 4
[WIP] Send nags to product owners #21
base: master
Are you sure you want to change the base?
Conversation
Jacob mentioned in a call that storing the mapping from asset type/identifier to "person to nag" can be done in a YAML file. Is it OK for this file to be public along w/ the rest of this reposiory, or would doing this imply that the repository go private? |
Ended up deciding that it's probably best to store the mapping info in a model(s) rather than a YAML file, so I'll do that. |
So I'm running into some issues w/ structured scopes... I thought Alex said in our last meeting that they were immutable--or at least their asset type and identifier were--but from the admin UI it seems only their asset type is immutable. When I change the asset identifier in the admin UI, this doesn't trigger any changes in the I might be able to work around this if there were some endpoint I could ping to just get a list of all structured scopes for a program, but there doesn't seem to be--the One solution might be to simply sync all reports every time we sync, rather than filtering by Another solution might be to still sync with |
Ok, I've just merged everything in this PR so far except for the most recent commit (c223f0a) into |
This PR is essentially being blocked by #31 (which is just #21 (comment) turned into an issue). |
This fixes #3.
To do (some of these can be spun off into separate issues, maybe):
last_nagged_at
andnext_nag_at
fields toReport
and set them accordingly on model save.structured-scope
'sasset_identifier
andasset_type
fields with theReport
model.manage.py nag
command that notifies everyone needing a nag.manage.py nag
as part ofmanage.py runscheduler
.