Conversation
af8e489 to
f54659c
Compare
jaredlockhart
left a comment
There was a problem hiding this comment.
Okay one small labeling change but otherwise I think looks good thanks @moibra05 🙏 🎉
mikewilli
left a comment
There was a problem hiding this comment.
Left a few comments, but looks close. Do we need to do a data migration here as well or is this backwards compatible?
|
@mikewilli I don't have the full context so let me know if I misunderstood anything but I just made the changes you mentioned. |
mikewilli
left a comment
There was a problem hiding this comment.
Thanks for picking this up! Changes look good, left one small question about a possible tiny refactor.
As for the migration, I think the approach you chose is probably our best option. The results fetches are quick (couple seconds at most), so a one-time re-fetch of everything shouldn't be a big deal. We're also fetching everything automatically anyway, so there's no concern about accidentally overwriting results. I'd be interested in @jaredlockhart 's input in case he has a different opinion, but in lieu of that I'd say go ahead with your chosen approach.
| if data: | ||
| data.separate_weekly_retention_data( | ||
| raw_data.get(AnalysisWindow.WEEKLY, {}) | ||
| .get(AnalysisBasis.ENROLLMENTS, {}) | ||
| .get(segment) | ||
| ) |
There was a problem hiding this comment.
Would it make more sense to put this under if data and window == AnalysisWindow.WEEKLY?
Because
This commit
Fixes #16421