Skip to content

Commit

Permalink
Merge pull request #153 from chingu-x/chore/seed-sprint-dates
Browse files Browse the repository at this point in the history
Update seed files to include v48-51
  • Loading branch information
cherylli authored May 19, 2024
2 parents 84034e1 + 7a142b2 commit 81584ca
Show file tree
Hide file tree
Showing 9 changed files with 930 additions and 39 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Another example [here](https://co-pilot.dev/changelog)
- Update/Add more form input types [#146](https://github.com/chingu-x/chingu-dashboard-be/pull/146)
- Update seed files (include a time for sprint end dates, add url input type) [#151](https://github.com/chingu-x/chingu-dashboard-be/pull/151)
- Update the deleteFeature method to use a DeleteFeatureResponse and return an object with a successful status and a message [#150](https://github.com/chingu-x/chingu-dashboard-be/pull/150)
- Update seed data to include voyage 49-51 [#152](https://github.com/chingu-x/chingu-dashboard-be/pull/152)



Expand Down
2 changes: 1 addition & 1 deletion prisma/seed/forms/checkinform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const populateCheckinForm = async () => {
},
},
text: "Is there anyone on your team who has not been active? If yes, please select the user. If no, move onto the next question.",
answerRequired: true,
answerRequired: false,
},
{
order: 7,
Expand Down
64 changes: 47 additions & 17 deletions prisma/seed/sprints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,63 +16,93 @@ export const populateSprints = async () => {
number: 1,
startDate: voyage.startDate,
endDate: new Date(
addDays(voyage.startDate, 6).setHours(
23,
addDays(voyage.startDate, 7).setUTCHours(
4,
59,
59,
),
),
},
{
number: 2,
startDate: addDays(voyage.startDate, 7),
startDate: new Date(
addDays(voyage.startDate, 7).setUTCHours(
5,
0,
0,
),
),
endDate: new Date(
addDays(voyage.startDate, 13).setHours(
23,
addDays(voyage.startDate, 14).setUTCHours(
4,
59,
59,
),
),
},
{
number: 3,
startDate: addDays(voyage.startDate, 14),
startDate: new Date(
addDays(voyage.startDate, 14).setUTCHours(
5,
0,
0,
),
),
endDate: new Date(
addDays(voyage.startDate, 20).setHours(
23,
addDays(voyage.startDate, 21).setUTCHours(
4,
59,
59,
),
),
},
{
number: 4,
startDate: addDays(voyage.startDate, 21),
startDate: new Date(
addDays(voyage.startDate, 21).setUTCHours(
5,
0,
0,
),
),
endDate: new Date(
addDays(voyage.startDate, 27).setHours(
23,
addDays(voyage.startDate, 28).setUTCHours(
4,
59,
59,
),
),
},
{
number: 5,
startDate: addDays(voyage.startDate, 28),
startDate: new Date(
addDays(voyage.startDate, 28).setUTCHours(
5,
0,
0,
),
),
endDate: new Date(
addDays(voyage.startDate, 34).setHours(
23,
addDays(voyage.startDate, 35).setUTCHours(
4,
59,
59,
),
),
},
{
number: 6,
startDate: addDays(voyage.startDate, 35),
startDate: new Date(
addDays(voyage.startDate, 35).setUTCHours(
5,
0,
0,
),
),
endDate: new Date(
addDays(voyage.startDate, 41).setHours(
23,
addDays(voyage.startDate, 42).setUTCHours(
4,
59,
59,
),
Expand Down
4 changes: 2 additions & 2 deletions prisma/seed/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const populateUsers = async () => {
githubId: "larryc-github",
discordId: "larryc-discord",
avatar: "https://gravatar.com/avatar/3bfaef00e02a22f99e17c66e7a9fdd31?s=400&d=monsterid&r=x",
timezone: "America/Los_Angeles",
timezone: "America/Chicago",
comment: "Member seems to be inactive",
countryCode: "US",
gender: {
Expand Down Expand Up @@ -159,7 +159,7 @@ export const populateUsers = async () => {
firstName: "Not in a voyage",
lastName: "Voyage",
avatar: "https://gravatar.com/avatar/3bfaef00e02a22f99e17c66e7a9fdd31?s=400&d=wavatar&r=x",
timezone: "America/Los_Angeles",
timezone: "America/New_York",
comment:
"This user is not in a voyage - does not have the 'voyager' role",
countryCode: "US",
Expand Down
Loading

0 comments on commit 81584ca

Please sign in to comment.