Commit 909bb59
authored
Develop into Master (#292)
* WIP role create route
* Change role service async calls to be in line with other services
* Write stats route
* Update docs
* Add tests
* Add role to vs code debugger
* Add role services
* Fix false async
* create role middleware
* role error constants and add to app.js
* create role controller
* WIP role route and role route tests
* Fix crucial bug, add additional search feature
* Update documentation
* Make test more descriptive
* Move variable to constants file
* create /api/role/ route
* Add success constants
* Add tests
* Fix validator logic
* fix bugs with services with missing await
* comenting and documentation
* Constants/successes (#213)
* Fix mention of docs to reflect new docs address
* version 1.1.0
* version 1.1.1
* allow booleanValidator to take comparator value for codeOfConduct
* Create tests for false codeOfConduct in hacker
* Move success messages to constants file
* add missing success message
* Add comments, change tests a little
* Remove duplicate check
* Fix develop (#223)
* Fix mention of docs to reflect new docs address
* version 1.1.0
* version 1.1.1
* allow booleanValidator to take comparator value for codeOfConduct
* Create tests for false codeOfConduct in hacker
* Separate account read into controller and middleware
* Move findbyid into middleware
* Separate sponsor controller in to middleware and controller
* Split team into middleware
* Split volunteer creation into middleware and controller
* Fix tests
* Add teamId to hacker
* Combine name and pronoun validators with duplicate logic into ascii validator
* change all name and pronoun validator to ascii validator
* Merge validations
* Update parsehacker to include teamId
* Create checks for team size for update
* WIP join team route
* Controller and WIP tests
* remove async, make devpost optional
* Fix typos and merge constants
* wip auth
* switch names to success.constant
* wip tests
* Bump winston from 2.4.2 to 2.4.4
Bumps [winston](https://github.com/winstonjs/winston) from 2.4.2 to 2.4.4.
- [Release notes](https://github.com/winstonjs/winston/releases)
- [Changelog](https://github.com/winstonjs/winston/blob/2.4.4/CHANGELOG.md)
- [Commits](winstonjs/winston@2.4.2...2.4.4)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* Bump jshint from 2.9.6 to 2.9.7
Bumps [jshint](https://github.com/jshint/jshint) from 2.9.6 to 2.9.7.
- [Release notes](https://github.com/jshint/jshint/releases)
- [Changelog](https://github.com/jshint/jshint/blob/master/CHANGELOG.md)
- [Commits](jshint/jshint@2.9.6...2.9.7)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* Bump express-validator from 5.2.0 to 5.3.1
Bumps [express-validator](https://github.com/express-validator/express-validator) from 5.2.0 to 5.3.1.
- [Release notes](https://github.com/express-validator/express-validator/releases)
- [Commits](express-validator/express-validator@v5.2.0...v5.3.1)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* Bump chai from 4.1.2 to 4.2.0
Bumps [chai](https://github.com/chaijs/chai) from 4.1.2 to 4.2.0.
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/master/History.md)
- [Commits](chaijs/chai@4.1.2...4.2.0)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* Bump express-winston from 2.5.1 to 2.6.0
Bumps [express-winston](https://github.com/bithavoc/express-winston) from 2.5.1 to 2.6.0.
- [Release notes](https://github.com/bithavoc/express-winston/releases)
- [Changelog](https://github.com/bithavoc/express-winston/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bithavoc/express-winston/commits/v2.6.0)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* Bump @types/mongoose from 5.0.13 to 5.3.5
Bumps [@types/mongoose](https://github.com/DefinitelyTyped/DefinitelyTyped) from 5.0.13 to 5.3.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* Bump @types/google-cloud__storage from 1.7.1 to 1.7.2
Bumps [@types/google-cloud__storage](https://github.com/DefinitelyTyped/DefinitelyTyped) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* Bump apidoc from 0.17.6 to 0.17.7
Bumps [apidoc](https://github.com/apidoc/apidoc) from 0.17.6 to 0.17.7.
- [Release notes](https://github.com/apidoc/apidoc/releases)
- [Changelog](https://github.com/apidoc/apidoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apidoc/apidoc/commits)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* Bump cors from 2.8.4 to 2.8.5
Bumps [cors](https://github.com/expressjs/cors) from 2.8.4 to 2.8.5.
- [Release notes](https://github.com/expressjs/cors/releases)
- [Changelog](https://github.com/expressjs/cors/blob/master/HISTORY.md)
- [Commits](expressjs/cors@v2.8.4...v2.8.5)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* Bump @types/mongodb from 3.0.18 to 3.1.18
Bumps [@types/mongodb](https://github.com/DefinitelyTyped/DefinitelyTyped) from 3.0.18 to 3.1.18.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* More test cases
* Bump mongoose from 5.1.0 to 5.4.1
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.1.0 to 5.4.1.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](Automattic/mongoose@5.1.0...5.4.1)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* update npm packages
* Fix typo
* Fix typos and make sure tests work
* Add documentation and comments
* remove WIP material
* Remove debug constants
* Change team services to also update hacker
* Bump dotenv from 5.0.1 to 6.2.0 (#240)
Bumps [dotenv](https://github.com/motdotla/dotenv) from 5.0.1 to 6.2.0.
- [Release notes](https://github.com/motdotla/dotenv/releases)
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](motdotla/dotenv@v5.0.1...v6.2.0)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* Update regex pattern
* change to enum validation (#259)
* Revert "Bump jsonwebtoken from 8.3.0 to 8.4.0"
This reverts commit e1cb108.
* Revert "Bump bcrypt from 3.0.0 to 3.0.3"
This reverts commit e40d783.
* Revert "Bump @google-cloud/storage from 2.3.1 to 2.3.4"
This reverts commit 1b4c8a2.
* Revert "Bump nodemon from 1.17.3 to 1.18.9"
This reverts commit 8b09373.
* Revert "Bump @types/express from 4.11.1 to 4.16.0"
This reverts commit 24f564e.
* Revert "Bump multer from 1.3.1 to 1.4.1"
This reverts commit c05f136.
* Revert "Bump express from 4.16.3 to 4.16.4"
This reverts commit d9ce20d.
* Revert "Bump chai-http from 4.0.0 to 4.2.0"
This reverts commit fc1f73d.
* Revert "version 1.1.2"
This reverts commit 4c81019.
* Revert "Develop (#225)"
This reverts commit 24a2748.
* Bump chai-http from 4.0.0 to 4.2.1
Bumps [chai-http](https://github.com/chaijs/chai-http) from 4.0.0 to 4.2.1.
- [Release notes](https://github.com/chaijs/chai-http/releases)
- [Changelog](https://github.com/chaijs/chai-http/blob/master/History.md)
- [Commits](chaijs/chai-http@4.0.0...4.2.1)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* Bump @types/mongoose from 5.3.5 to 5.3.6
Bumps [@types/mongoose](https://github.com/DefinitelyTyped/DefinitelyTyped) from 5.3.5 to 5.3.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* change errors
* Bump mongoose from 5.4.1 to 5.4.2
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.4.1 to 5.4.2.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](Automattic/mongoose@5.4.1...5.4.2)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* Bump @types/mongoose from 5.3.6 to 5.3.7
Bumps [@types/mongoose](https://github.com/DefinitelyTyped/DefinitelyTyped) from 5.3.6 to 5.3.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* Make projectName optional
* add next
* Fix bug where new Team validator looked for name, not teamName
* Update docs
* Change all instances of teamName to name
* Add check for hacker joining same team
* comments
* Make more items editable (#269)
* Make more items editable
* Update docs
* Add flags to mongoose connection (#272)
* Add invite route (#252)
* Add invite route
* Documentation
* Feature/team get (#270)
* Add routes and roles
* add showTeam with member names
* create tests
* Create middleware to display member names and add auth
* documentation and function commenting
* add some more test details
* docs and typo
* Change findMemberNames to use Mongoose.populate
* Change documentation to so param type is ObjectId
* Move id for get to be in req.param
* Fix documentation, make test cases more detailed
* Feature/team post (#273)
* change to enum validation
* Add authentication to team create
* Create team
* Add tests for team
* WIP team post duplication issue
* Add check for duplicate team name, and test for hacker already being in a team
* uncomment tests
* fix git merge mistake
* Remove testing code, make sure create also updates hacker
* docs
* Remove test index
* re-add index on team name
* fix merge issue
* Feature/274 stats query (#275)
* Add query param to stats
* Docs
* Fix test
* Feature/278 team leave (#279)
* Add route
* Change success name, add tests
* Fix api_data
* Add removeTeamIfEmpty
* Add leave to hackerRole
* Bug fix
* General team bugfixes
* fn name change
* Remove console.log
* Change function name
* Feature/team patch (#277)
* WIP team patch
* WIP team patch
* docs and tests
* fix merge issue
* WIP patch
* Commenting, fix parsePatch, remove unused function
* PR comments
* Description and errors
* Fix bracket issue
* Change link (#282)
* Bump mongoose from 5.4.2 to 5.4.3
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.4.2 to 5.4.3.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](Automattic/mongoose@5.4.2...5.4.3)
Signed-off-by: dependabot[bot] <support@dependabot.com>
* create volunteer get route (#285)
* create volunteer get route
* docs
* Finish route, add tests, update documentation (#289)
HackerByEmail route, add tests, update documentation
* 290 acceptance email (#291)
* edits
* typo1 parent f5a57ef commit 909bb59
21 files changed
Lines changed: 753 additions & 74 deletions
File tree
- assets/email/statusEmail
- constants
- controllers
- docs/api
- middlewares
- validators
- routes/api
- services
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
385 | | - | |
| 384 | + | |
| 385 | + | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
| 446 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
78 | 80 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
71 | 79 | | |
72 | 80 | | |
73 | 81 | | |
| |||
161 | 169 | | |
162 | 170 | | |
163 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
164 | 180 | | |
165 | 181 | | |
166 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
| 16 | + | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
21 | | - | |
| 19 | + | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
28 | 41 | | |
29 | 42 | | |
| 43 | + | |
30 | 44 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1248 | 1248 | | |
1249 | 1249 | | |
1250 | 1250 | | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
1251 | 1323 | | |
1252 | 1324 | | |
1253 | 1325 | | |
| |||
1280 | 1352 | | |
1281 | 1353 | | |
1282 | 1354 | | |
1283 | | - | |
| 1355 | + | |
1284 | 1356 | | |
1285 | 1357 | | |
1286 | 1358 | | |
| |||
2425 | 2497 | | |
2426 | 2498 | | |
2427 | 2499 | | |
| 2500 | + | |
2428 | 2501 | | |
2429 | 2502 | | |
2430 | 2503 | | |
| |||
2561 | 2634 | | |
2562 | 2635 | | |
2563 | 2636 | | |
| 2637 | + | |
| 2638 | + | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
| 2643 | + | |
| 2644 | + | |
| 2645 | + | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
| 2708 | + | |
2564 | 2709 | | |
2565 | 2710 | | |
2566 | 2711 | | |
0 commit comments