Commit a25c5b9
Интеграция HwProj c университетской базой (#470)
* feat: add student info service implementation
* feat: make GetGroups work not only for software engineering
* feat: add interface for StudentsStats
* feat: add controllers for students information methods
* feat: update api.ts for new controllers
* feat: add group writing to course creation page
* feat: add st's writing to course creation page
* feat: Change language to russian for group fetching
* feat: add property for getting study program names
* feat: implement autocomplete for study program field
* feat: implement autocompletion for groups based on study program field
* fix: remove extra whitespaces in front of group names
* fix: remove "no options" popper
* fix: allow custom group names that don't require program name
* feat: add ProgramNames property to interface
* feat: remove controller for GetSts and its call on frontend
* feat: rename GetSts and make it fetch student names as well
* feat: convert student st number to an email
* feat: add controller to register students and add them to course
* feat: fetch, invite and add students to a create course
* docs: add comments for StudentStats and its interface
* docs: add comments to CreateCourse.tsx
* docs: add comments for StudentsStats.cs
* test: add tests for StudentsStats
* refactor: rename StudentsStats to StudentsInformation
* feat: move StudentsInformation client to CoursesController
* feat: add model for students
* feat: request password recovery in Register
* feat: use method instead of propery for groups fetching
* fix: change property to method in tests
* feat: use model instead of strings for fetching programs
* feat: use model instead of strings for fetching groups
* feat: invite students to course via CreateCourse controller
* feat: move login and password to appsettings
* refactor: move projects to a separate folder
* fix: remove reference to old project in apigateway
* feat: move default password to appsettings
* feat: add loading state for course creation
* feat: move configuration to startup
* fix: initialize studentIDs
* fix: don't open extra LDAP connections
* feat: optimize course creation with LINQ
* feat: make student fetching optional
* feat: use less requests to authservice client
* refactor: translate "create course"
* feat: Do less requests to CoursesService
* feat: restrict controllers to Lecturer's role
* feat: remove password field from appsettings
* chore: format Startup.cs
* feat: change default password to guid
* chore: format CoursesController
* chore: rename studentsInformation class
* chore: rename studentID
* feat: pass courseId to auth service method
* feat: change return type of course service method
* feat: change framework version
* chore: refactor comments
* feat: change framework versions
* feat: wrap groups in try catch
* fix: enable fetching students from db
* feat: move ldap parameters to appsettings.json
* feat: don't do extra calls in course creation
* feat: add Lazy to constructor
* feat: move disconnect to finally
* feat: make groups fetching async
* feat: don't create extra notifications
* feat: do one request to authserviceclient
* fix: change file names in sln
* revert 6e3dca6
* fix: fix names in .sln
* feat: delete password from register model
* test
* feat: sync branch
* fix: remove duplicates
* feat: make optimized batch registration
* feat: return empty list if there're connection errors
* feat: return empty list of connection failed
* feat: optimize existing students addition
* chore: update package-lock.json
* Delete test.txt
* Fix 1
* Fixes 2
* Fix docker
* Rebase fixes
* fixes
* Fixes 3
* Fix tests
---------
Co-authored-by: Alexander Bugaev <144491096+bygu4@users.noreply.github.com>
Co-authored-by: Alex Berezhnykh <berejnih.alex2011@yandex.ru>
Co-authored-by: Alexey.Berezhnykh <alexey.berezhnykh@jetbrains.com>1 parent dd0b3fb commit a25c5b9
27 files changed
Lines changed: 1024 additions & 150 deletions
File tree
- HwProj.APIGateway/HwProj.APIGateway.API
- Controllers
- HwProj.AuthService
- HwProj.AuthService.API
- Controllers
- Services
- HwProj.AuthService.Client
- HwProj.Common/HwProj.Models/CoursesService/ViewModels
- HwProj.CoursesService/HwProj.CoursesService.API
- Controllers
- Services
- Hwproj.StudentInfo
- IStudentsInfo
- StudentsInfo.Tests
- StudentsInfo
- hwproj.front/src
- api
- components/Courses
Lines changed: 52 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| 27 | + | |
24 | 28 | | |
25 | | - | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | | - | |
| 32 | + | |
| 33 | + | |
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
| |||
70 | 77 | | |
71 | 78 | | |
72 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
73 | 97 | | |
74 | 98 | | |
75 | 99 | | |
76 | 100 | | |
77 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
78 | 128 | | |
79 | 129 | | |
80 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
34 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | | - | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
60 | | - | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
9 | | - | |
| 16 | + | |
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | | - | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
| |||
158 | 165 | | |
159 | 166 | | |
160 | 167 | | |
161 | | - | |
| 168 | + | |
162 | 169 | | |
163 | 170 | | |
164 | 171 | | |
165 | | - | |
| 172 | + | |
166 | 173 | | |
167 | 174 | | |
168 | 175 | | |
169 | 176 | | |
170 | 177 | | |
171 | 178 | | |
172 | 179 | | |
173 | | - | |
| 180 | + | |
174 | 181 | | |
175 | 182 | | |
176 | 183 | | |
| |||
Lines changed: 30 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
96 | 123 | | |
97 | 124 | | |
98 | 125 | | |
| |||
136 | 163 | | |
137 | 164 | | |
138 | 165 | | |
139 | | - | |
| 166 | + | |
140 | 167 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | 168 | | |
147 | 169 | | |
148 | 170 | | |
| |||
163 | 185 | | |
164 | 186 | | |
165 | 187 | | |
166 | | - | |
| 188 | + | |
167 | 189 | | |
168 | 190 | | |
169 | | - | |
| 191 | + | |
170 | 192 | | |
171 | 193 | | |
172 | 194 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 35 | + | |
| 36 | + | |
40 | 37 | | |
41 | 38 | | |
42 | 39 | | |
| |||
52 | 49 | | |
53 | 50 | | |
54 | 51 | | |
55 | | - | |
| 52 | + | |
56 | 53 | | |
57 | 54 | | |
58 | 55 | | |
| |||
88 | 85 | | |
89 | 86 | | |
90 | 87 | | |
91 | | - | |
| 88 | + | |
| 89 | + | |
92 | 90 | | |
93 | 91 | | |
94 | 92 | | |
| |||
0 commit comments