Skip to content

Commit dd29290

Browse files
authored
Merge branch 'master' into cpsc310-remove-schedule-branch
2 parents 4f0d5e3 + b37b052 commit dd29290

File tree

15 files changed

+777
-681
lines changed

15 files changed

+777
-681
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
build:
88
docker:
99
# specify the version you desire here
10-
- image: cimg/node:12.22.1
10+
- image: cimg/node:12.22.7
1111
- image: circleci/mongo:3.6
1212

1313
# Specify service dependencies here if necessary
@@ -176,7 +176,7 @@ jobs:
176176

177177
build_run_stop:
178178
machine:
179-
image: ubuntu-1604:201903-01
179+
image: ubuntu-2004:202201-02
180180
working_directory: ~/project
181181

182182
environment:

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ testOutput
2020
.rysncexclude
2121
LICENSE
2222
README.md
23-
yarn.lock

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,18 @@ packages/portal/backend/src/custom/CustomCourseRoutes.ts
5454
**/.env*
5555

5656
# Misc
57-
ssl/
5857
/data/
5958
.rsyncexclude
6059
testOutput/
6160
packages/autotest/testOutput/
6261
packages/autotest/test/data/
6362

63+
# SSL
64+
ssl/
65+
copy-certs.sh.log
66+
start-classy.sh.log
67+
stop-classy.sh.log
68+
6469
# Excludes plugins aside default plugin
6570
plugins/*
6671
!plugins/default/
@@ -69,3 +74,5 @@ plugins/default/**/*.js.map
6974
!plugins/example/
7075
plugins/example/**/*.js
7176
plugins/example/**/*.js.map
77+
docker-compose.override.yml
78+
packages/proxy/nginx.rconf

helper-scripts/set-nginx-conf.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ file="./plugins/$plugin/nginx/nginx.rconf"
88

99
if [[ -f $file ]]; then
1010
echo "Nginx.rconf file found in $plugin plugin"
11-
echo "Overwriting default Classy/packages/proxy/nginx.rconf file"
11+
echo "Overriding Classy/packages/proxy/nginx.rconf.default"
1212
cp $file ./packages/proxy/nginx.rconf
13-
echo "Default Classy/packages/proxy/nginx.rconf file overwritten"
13+
echo "Classy/packages/proxy/nginx.rconf file written"
1414
else
15-
echo "No nginx.conf found in $plugin plugin"
15+
echo "$file not found."
1616
fi

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@
4343
"webpack": "^5.38.1"
4444
},
4545
"dependencies": {
46+
"@types/bson": "^4.2.0",
4647
"@types/mongodb": "^3.0.5",
4748
"@types/node-schedule": "^1.2.2",
4849
"dotenv": "4.0.0",
4950
"fs-extra": "5.0.0",
50-
"jszip": "3.2.1",
51+
"jszip": "3.7.0",
5152
"mongodb": "^3.0.2",
52-
"node-fetch": "^2.6.0",
53+
"node-fetch": "^2.6.7",
5354
"restify": "^8.4.0"
5455
},
5556
"resolutions": {

packages/autotest/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ WORKDIR /app
66

77
# The common package requires the .env file directly so we have to pass it through
88
COPY .env ./
9+
COPY yarn.lock ./
910
COPY package.json tsconfig.json ./
1011
COPY packages/common ./packages/common
1112
COPY packages/portal/backend ./packages/portal/backend

packages/autotest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"dockerode": "^2.5.7",
2525
"dotenv": "4.0.0",
2626
"fs-extra": "5.0.0",
27-
"jszip": "^3.2.1",
27+
"jszip": "^3.7.0",
2828
"xunit-viewer": "^7.1.5",
2929
"mocha": "^9.0.0",
3030
"mocha-junit-reporter": "^1.17.0",

packages/portal/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ WORKDIR /app
1010

1111
# The common package requires the .env file directly so we have to pass it through
1212
COPY .env ./
13+
COPY yarn.lock ./
1314
COPY package.json tsconfig.json .env ./
1415
COPY packages/common ./packages/common
1516
COPY packages/portal ./packages/portal

packages/portal/backend/src/controllers/GitHubActions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ export class GitHubActions implements IGitHubActions {
13271327

13281328
function initGitDir() {
13291329
Log.info('GitHubActions::importRepoFS(..)::initGitDir() - start');
1330-
return exec(`cd ${cloneTempDir.path} && git init -q`)
1330+
return exec(`cd ${cloneTempDir.path} && git init -q && git branch -m main`)
13311331
.then(function(result: any) {
13321332
Log.info('GitHubActions::importRepoFS(..)::initGitDir() - done');
13331333
that.reportStdOut(result.stdout, 'GitHubActions::importRepoFS(..)::initGitDir()');
@@ -1361,7 +1361,7 @@ export class GitHubActions implements IGitHubActions {
13611361
function pushToNewRepo() {
13621362
const pushStart = Date.now();
13631363
Log.info('GitHubActions::importRepoFS(..)::pushToNewRepo() - start');
1364-
const command = `cd ${cloneTempDir.path} && git push -q origin master`;
1364+
const command = `cd ${cloneTempDir.path} && git push -q origin main`;
13651365
return exec(command)
13661366
.then(function(result: any) {
13671367
Log.info('GitHubActions::importRepoFS(..)::pushToNewRepo() - done; took: ' + Util.took(pushStart));

packages/portal/backend/src/controllers/GitHubController.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export interface IGitHubController {
3131
getRepositoryUrl(repo: Repository): Promise<string>;
3232

3333
getTeamUrl(team: Team): Promise<string>;
34+
35+
releaseRepository(repo: Repository, teams: Team[], asCollaborators?: boolean): Promise<boolean>;
3436
}
3537

3638
export interface GitTeamTuple {
@@ -516,4 +518,11 @@ export class TestGitHubController implements IGitHubController {
516518
Log.warn("TestGitHubController::updateBranchProtection(..) - TEST");
517519
return true;
518520
}
521+
522+
public async releaseRepository(repo: Repository,
523+
teams: Team[],
524+
asCollaborators: boolean = false): Promise<boolean> {
525+
Log.warn("TestGitHubController::releaseRepository(..) - TEST");
526+
return true;
527+
}
519528
}

0 commit comments

Comments
 (0)