Commit 70768ea
authored
Merge develop into master (#283)
* 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)1 parent 484bf49 commit 70768ea
66 files changed
Lines changed: 3688 additions & 974 deletions
File tree
- .vscode
- constants
- controllers
- docs/api
- locales
- middlewares
- validators
- models
- routes/api
- services
- tests
- util
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
182 | 198 | | |
183 | 199 | | |
184 | 200 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| 87 | + | |
| 88 | + | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| 30 | + | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
| |||
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
| 41 | + | |
35 | 42 | | |
36 | 43 | | |
37 | 44 | | |
| |||
48 | 55 | | |
49 | 56 | | |
50 | 57 | | |
| 58 | + | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
| |||
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
64 | 78 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
| |||
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
120 | | - | |
| 125 | + | |
| 126 | + | |
121 | 127 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| 59 | + | |
| 60 | + | |
53 | 61 | | |
54 | 62 | | |
55 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 13 | | |
18 | 14 | | |
19 | 15 | | |
| |||
62 | 58 | | |
63 | 59 | | |
64 | 60 | | |
65 | | - | |
| 61 | + | |
66 | 62 | | |
67 | 63 | | |
68 | 64 | | |
| |||
138 | 134 | | |
139 | 135 | | |
140 | 136 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 137 | + | |
146 | 138 | | |
147 | 139 | | |
148 | 140 | | |
149 | 141 | | |
150 | 142 | | |
151 | 143 | | |
152 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
153 | 161 | | |
154 | 162 | | |
155 | 163 | | |
| |||
159 | 167 | | |
160 | 168 | | |
161 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
162 | 177 | | |
163 | 178 | | |
164 | 179 | | |
| |||
170 | 185 | | |
171 | 186 | | |
172 | 187 | | |
173 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
174 | 198 | | |
175 | 199 | | |
176 | 200 | | |
| |||
180 | 204 | | |
181 | 205 | | |
182 | 206 | | |
| 207 | + | |
183 | 208 | | |
184 | 209 | | |
185 | 210 | | |
| |||
217 | 242 | | |
218 | 243 | | |
219 | 244 | | |
| 245 | + | |
220 | 246 | | |
221 | 247 | | |
222 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
29 | | - | |
30 | 33 | | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
| |||
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
44 | | - | |
| 52 | + | |
| 53 | + | |
45 | 54 | | |
46 | 55 | | |
47 | 56 | | |
| |||
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| 71 | + | |
| 72 | + | |
62 | 73 | | |
63 | 74 | | |
64 | 75 | | |
65 | 76 | | |
66 | 77 | | |
| 78 | + | |
67 | 79 | | |
68 | 80 | | |
69 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
70 | 86 | | |
71 | 87 | | |
72 | 88 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments