Closed nobrayner closed 3 years ago
Raid Creation:
createdAt
to current datetime as numerical timestampduration
- i.e. will be null/undefinedRaid Completion:
duration
to be the calculated duration in days (minimum one day)Website will display the duration
if it exists, otherwise will calculate and display the days since createdAt
(minimum one day)
const raidDuration = raidStats.duration ? `${raidStats.duration} days` : /* calculate duration in days from raidStats.createdAt /*
Stat Compaction:
files
map (object) where the key is the filepath. The value would be another map (object) like so:
{
/* link to the file url for later */
url: 'https://github.com/:owner/:repo/blob/:branch/:filepath',
file: '/path/to/filename.png',
/* list of all users (user Ids) who have made a change to the file */
contributors: [
1234,
5678,
],
}