mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-10 20:56:29 +00:00
d51c0b6715
Updates github schema to include createdAt timestamps, and then updates the RelationalView to provide those timestamps as MsSinceEpoch. I added createdAt timestamps to Repos, Issues, Pulls, Reviews, and Comments, as these correspond to GitHub graph nodes where I think time-based filtering is relevant. I didn't add them to Users, Reactions, or Commits. Reactions, because they correspond to edges not nodes. (We could consider doing the time filtering on edges too, but I'd rather keep it simple for now.) Commits, because they're owned by a different plugin. Users, because... in a certain sense the user identity is timeless, the time factoring is mostly so we can evaluate how users' cred varies over time. Anyway, it will be easy to add more fields later if we need them. Test plan: - Inspect snapshot changes - Ran `yarn test --full` - Its only failure is pre-existing, per #1151 Thanks to @s-ben for some motivation and discussion about this change.