normandy icon indicating copy to clipboard operation
normandy copied to clipboard

API Feature request: recipe list for "was enabled any time between timestamp X and Y"

Open sunahsuh opened this issue 6 years ago • 1 comments

Getting enabled states out helps a lot with being able to recreate what was enabled in the past day for ETL jobs (thank you!). As the number of recipes grows, however, it'd help a lot to be able to pass in timestamp filters that return "any recipe whose enabled state overlaps with the given time period." Otherwise, I'm unfortunately stuck with trying to pull down every recipe and recreating history.

sunahsuh avatar Aug 06 '19 20:08 sunahsuh

This kind of higher level query about the data stored in Normandy's data isn't something the API currently has a concept of. I expect it might take a while to get this feature, though that's up to @jaredkerim nowadays.

In the meantime, I've actually written the "pulling down every recipe and recreating history" code already. If that's helpful, you can get it here: https://github.com/mythmon/normandy-edi/blob/a7f6da4b413ba8c3ac9d3187671cab07de4a6148/edi/cli.py#L303-L335

mythmon avatar Aug 06 '19 21:08 mythmon