-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(seeds): create a devcomp orga to avoid conflicts
- Loading branch information
1 parent
148c06d
commit fbe7d0f
Showing
4 changed files
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { | ||
FEATURE_COMPUTE_ORGANIZATION_LEARNER_CERTIFICABILITY_ID, | ||
FEATURE_MULTIPLE_SENDING_ASSESSMENT_ID, | ||
USER_ID_ADMIN_ORGANIZATION, | ||
USER_ID_MEMBER_ORGANIZATION, | ||
} from '../common/constants.js'; | ||
import { organization } from '../common/tooling/index.js'; | ||
import { TEAM_DEVCOMP_ORGANIZATION_ID } from './constants.js'; | ||
|
||
export async function createDevcompOrganization(databaseBuilder) { | ||
await organization.createOrganization({ | ||
databaseBuilder, | ||
organizationId: TEAM_DEVCOMP_ORGANIZATION_ID, | ||
type: 'SCO', | ||
name: 'DevComp', | ||
isManagingStudents: true, | ||
externalId: 'SCO_DEVCOMP', | ||
adminIds: [USER_ID_ADMIN_ORGANIZATION], | ||
memberIds: [USER_ID_MEMBER_ORGANIZATION], | ||
features: [ | ||
{ id: FEATURE_COMPUTE_ORGANIZATION_LEARNER_CERTIFICABILITY_ID }, | ||
{ id: FEATURE_MULTIPLE_SENDING_ASSESSMENT_ID }, | ||
], | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters