Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BC-6918 - Adjusting new school year 24/25 to seed data and test #5104

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions backup/setup/classes.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,36 @@
"$date": "2023-07-31T10:01:29.382Z"
},
"__v": 0
},
{
"_id": {
"$oid": "668c0a7b46c42b79f6034ff0"
},
"userIds": [
{
"$oid": "5fa2cccab229544f2c696917"
}
],
"teacherIds": [
{
"$oid": "5fa2c71bb229544f2c6966d9"
}
],
"schoolId": {
"$oid": "5fa2c5ccb229544f2c69666c"
},
"name": "b",
"gradeLevel": 9,
"year": {
"$oid": "5ebd6dc14a431f75ec9a3e7a"
},
"createdAt": {
"$date": "2024-07-08T10:00:26.985Z"
},
"updatedAt": {
"$date": "2024-07-08T10:01:29.382Z"
},
"__v": 0
},
{
"_id": {
Expand Down
22 changes: 11 additions & 11 deletions backup/setup/schools.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"__v": 0,
"fileStorageType": "awsS3",
"currentYear": {
"$oid": "5ebd6dc14a431f75ec9a3e79"
"$oid": "5ebd6dc14a431f75ec9a3e7a"
},
"purpose": "demo",
"permissions": {
Expand Down Expand Up @@ -53,7 +53,7 @@
},
"__v": 0,
"currentYear": {
"$oid": "5ebd6dc14a431f75ec9a3e79"
"$oid": "5ebd6dc14a431f75ec9a3e7a"
},
"purpose": "demo",
"permissions": {
Expand Down Expand Up @@ -89,7 +89,7 @@
},
"__v": 0,
"currentYear": {
"$oid": "5ebd6dc14a431f75ec9a3e79"
"$oid": "5ebd6dc14a431f75ec9a3e7a"
},
"purpose": "demo",
"features": [
Expand Down Expand Up @@ -131,7 +131,7 @@
"__v": 0,
"fileStorageType": "awsS3",
"currentYear": {
"$oid": "5ebd6dc14a431f75ec9a3e79"
"$oid": "5ebd6dc14a431f75ec9a3e7a"
},
"purpose": "expert",
"features" : [
Expand Down Expand Up @@ -167,7 +167,7 @@
},
"fileStorageType": "awsS3",
"currentYear": {
"$oid": "5ebd6dc14a431f75ec9a3e79"
"$oid": "5ebd6dc14a431f75ec9a3e7a"
},
"createdAt": {
"$date": "2020-11-04T15:16:28.827Z"
Expand Down Expand Up @@ -216,7 +216,7 @@
},
"fileStorageType": "awsS3",
"currentYear": {
"$oid": "5ebd6dc14a431f75ec9a3e79"
"$oid": "5ebd6dc14a431f75ec9a3e7a"
},
"createdAt": {
"$date": "2020-11-04T21:11:14.312Z"
Expand Down Expand Up @@ -258,7 +258,7 @@
"fileStorageType": "awsS3",
"timezone": "America/Belem",
"currentYear": {
"$oid": "5ebd6dc14a431f75ec9a3e79"
"$oid": "5ebd6dc14a431f75ec9a3e7a"
},
"createdAt": {
"$date": "2020-11-04T21:38:05.110Z"
Expand Down Expand Up @@ -303,7 +303,7 @@
},
"fileStorageType": "awsS3",
"currentYear": {
"$oid": "5ebd6dc14a431f75ec9a3e79"
"$oid": "5ebd6dc14a431f75ec9a3e7a"
},
"createdAt": {
"$date": "2020-12-08T16:58:36.527Z"
Expand Down Expand Up @@ -370,7 +370,7 @@
},
"__v": 0,
"currentYear": {
"$oid": "5ebd6dc14a431f75ec9a3e79"
"$oid": "5ebd6dc14a431f75ec9a3e7a"
},
"purpose": "demo",
"features": [
Expand Down Expand Up @@ -412,7 +412,7 @@
},
"__v": 0,
"currentYear": {
"$oid": "5ebd6dc14a431f75ec9a3e79"
"$oid": "5ebd6dc14a431f75ec9a3e7a"
},
"purpose": "demo",
"features": [
Expand Down Expand Up @@ -454,7 +454,7 @@
},
"__v": 0,
"currentYear": {
"$oid": "5ebd6dc14a431f75ec9a3e79"
"$oid": "5ebd6dc14a431f75ec9a3e7a"
},
"purpose": "demo",
"features": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ describe('Ldap Syncer Consumer Integration', () => {
it('should create school by the data', async () => {
const schoolName = 'test school';
const currentYear = {
_id: '5ebd6dc14a431f75ec9a3e77',
name: '2023/24',
startDate: '2023-08-01T00:00:00.000Z',
endDate: '2024-07-31T00:00:00.000Z',
_id: '5ebd6dc14a431f75ec9a3e7a',
name: '2024/25',
startDate: '2024-08-01T00:00:00.000Z',
endDate: '2025-07-31T00:00:00.000Z',
};
const states = await app.service('federalStates').find({ query: { abbreviation: 'NI' } });
const federalStateId = states.data[0]._id;
Expand Down
Loading