-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: basic backend functionality for milestone II #21
Merged
Conversation
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
* feat: Add Relation User-Survey (#13) *major: database connection perf: add relation user-survey * Feat add controllers (#14) * minor advancements * change controller pathing * add basic auth and whitelisting * add User Roles and Permissions * completed basic auth * feat: first non-functionating draft of getSurvey * add admin roles and permissions * Working commit * Working commit * implementing SurveyService and FakeRepo * working status, implementation of getAllSurveys * minor changes Co-authored-by: Gio02092001 <[email protected]> * Feat database access repository (#15) * feat: working repository connection * feat: Add Repository and Services * feat: Add findById Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Gio02092001 <[email protected]>
changes to DataModel: Relation AnswerPossibility - MCAnswerContent added; position and content in MCAnswerContent deleted; Database DDL Dummy Updated changes to logic: in AnswerPossibilityRepository fix wrong SQL-Statement; AnserService.results: add Initial defaultValues 0 for ArrayList get all MCAnswersContents from DB getPosition from reference to AnswerPossibility counter +1 return ArrayList (can be changed later again) Add files: McAnswerContentRepository and McAnswerContentService Minor Changes: created to do createMcAnswerContent when creating Answer
Milestone 1 completed
janniksinz
added a commit
that referenced
this pull request
Apr 9, 2021
* feat: Add Relation User-Survey (#13) perf: add relation user-survey * Feat add controllers (#14) * minor advancements * change controller pathing * add basic auth and whitelisting * add User Roles and Permissions * completed basic auth * feat: first non-functionating draft of getSurvey * add admin roles and permissions * Working commit * Working commit * implementing SurveyService and FakeRepo * working status, implementation of getAllSurveys * minor changes Co-authored-by: Gio02092001 <[email protected]> * Feat database access repository (#15) * feat: working repository connection * feat: Add Repository and Services * feat: Add findById Co-authored-by: Gio02092001 <[email protected]> * Feat database access repository (#17) * feat: working repository connection * feat: working repository connection * feat: working repository connection * feat: Add Repository and Services * feat: Add findById * feat: Add findById * working commit, add queries * AuthTokenRepository * feat: Add AuthToken and Relation * commit working * changes * remove any security * working commit getting Answers from DB * feat: get User by Id * feat: addAnswer * feat: addAnswer working * changing @controller to @RestController * feat: Add deleteUser by Id * feat: Add deleteSurvey by Id * working commit * working commit Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: inesmaurer <[email protected]> * Perf controller (#18) * working commit * working commit * create answercontent table * added ResultSet for AnswerPossibilities * added ResultSet for AnswerPossibilities * added ResultSet for AnswerPossibilities * working commit * added ResultClass * set TODOs * feat: getSurveyBySurveyId * feat: getSurveyBySurveyId * created DDL statements to create dummy objects * added Positions to MCAnswerContent and AnswerPossibility as well as filled DB * feat: Add getBasicResults changes to DataModel: Relation AnswerPossibility - MCAnswerContent added; position and content in MCAnswerContent deleted; Database DDL Dummy Updated changes to logic: in AnswerPossibilityRepository fix wrong SQL-Statement; AnserService.results: add Initial defaultValues 0 for ArrayList get all MCAnswersContents from DB getPosition from reference to AnswerPossibility counter +1 return ArrayList (can be changed later again) Add files: McAnswerContentRepository and McAnswerContentService Minor Changes: created to do createMcAnswerContent when creating Answer * feat: Add sendSurvey * working commit * working commit * add SendElement structure * add SendElement structure * feat: sendSurveyElement Co-authored-by: Andreas <[email protected]> Co-authored-by: inesmaurer <[email protected]> Co-authored-by: Jarg <[email protected]> Co-authored-by: Gio02092001 <[email protected]> * feat: basic backend functionality for milestone II (#21) * database connection (#16) * feat: Add Relation User-Survey (#13) *major: database connection perf: add relation user-survey * Feat add controllers (#14) * minor advancements * change controller pathing * add basic auth and whitelisting * add User Roles and Permissions * completed basic auth * feat: first non-functionating draft of getSurvey * add admin roles and permissions * Working commit * Working commit * implementing SurveyService and FakeRepo * working status, implementation of getAllSurveys * minor changes Co-authored-by: Gio02092001 <[email protected]> * Feat database access repository (#15) * feat: working repository connection * feat: Add Repository and Services * feat: Add findById Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Gio02092001 <[email protected]> * working commit * working commit * create answercontent table * added ResultSet for AnswerPossibilities * added ResultSet for AnswerPossibilities * added ResultSet for AnswerPossibilities * working commit * added ResultClass * set TODOs * feat: getSurveyBySurveyId * feat: getSurveyBySurveyId * created DDL statements to create dummy objects * added Positions to MCAnswerContent and AnswerPossibility as well as filled DB * feat: Add getBasicResults changes to DataModel: Relation AnswerPossibility - MCAnswerContent added; position and content in MCAnswerContent deleted; Database DDL Dummy Updated changes to logic: in AnswerPossibilityRepository fix wrong SQL-Statement; AnserService.results: add Initial defaultValues 0 for ArrayList get all MCAnswersContents from DB getPosition from reference to AnswerPossibility counter +1 return ArrayList (can be changed later again) Add files: McAnswerContentRepository and McAnswerContentService Minor Changes: created to do createMcAnswerContent when creating Answer * feat: Add sendSurvey * working commit * working commit * add SendElement structure * add SendElement structure * feat: sendSurveyElement * add responseEntity and Response Code * add CorsConfig * add CorsConfig * fix: getSurvey * feat: getResultsBySurveyId + countParticipants * fix: Controllers * fix: importStatements * update DDL statements to create dummy objects" including mcanswer * fix: save survey at once with surveyElement and Answer_possibilities Milestone 1 completed * fix: send Answer * fix: send Answer with Dummies * fix: send Answer with Dummies * fix: getResults * cross origin annotation * cross origin annotation * fix: add cosConfigurer to Application * Fix cross-origin bugs * fix: createAnswerPossibility * Fix cross-origin bugs (finally) * fix: getCountParticipants and AnswerService Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Andreas <[email protected]> Co-authored-by: inesmaurer <[email protected]> Co-authored-by: Jarg <[email protected]> Co-authored-by: Marlo Kessler <[email protected]> * fix: overhaul to working stage * feat: JWT security implementation - source https://loizenai.com/angular-10-spring-boot-jwt-authentication-example/ - needs testing - needs debugging !!DONT MERGE!! functionality not tested * add ToDo to build RegEx checks * running commit - UserModel jwt security has been makeshift adapted to previous models and database * rename to AuthController * feat: jwt security - endpoints for auth - auto insert roles into db * fix: UserAccountLocked Error set nonAccountLocked, nonAccountExpired, nonCredentialsExpired, Enabled to true This could be overhauled later on? * add Auth ToDo * changed username to name on response * add equals check * small additions * fix: getUsername not reachable on auth on authentication due to inheritance of certain classes, the only way to obtain the user from the auth_token is through the username So I had to change name back to username and integrate with the naming convention of the endpoints and the DB * implement a TestController to allow for easy check of auth on static-auth endpoints * fix: Implemented login & signup with frontend * adding security features and tests (#24) * add 2 minor tests for auth (the test base on static auth_tokens) these tokens should be replaced by 4 requests: - registering an admin, user - logging into an admin, user -> using these tokens * add Test ToDos * add user_token test * fix: exception handling * removed useless antMatcher * feat: add changePassword() Co-authored-by: Gio02092001 <[email protected]> * fix depedencies Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: inesmaurer <[email protected]> Co-authored-by: Andreas <[email protected]> Co-authored-by: Jarg <[email protected]> Co-authored-by: Marlo Kessler <[email protected]>
Gio02092001
added a commit
that referenced
this pull request
Apr 19, 2021
* feat: Add Relation User-Survey (#13) perf: add relation user-survey * Feat add controllers (#14) * minor advancements * change controller pathing * add basic auth and whitelisting * add User Roles and Permissions * completed basic auth * feat: first non-functionating draft of getSurvey * add admin roles and permissions * Working commit * Working commit * implementing SurveyService and FakeRepo * working status, implementation of getAllSurveys * minor changes Co-authored-by: Gio02092001 <[email protected]> * Feat database access repository (#15) * feat: working repository connection * feat: Add Repository and Services * feat: Add findById Co-authored-by: Gio02092001 <[email protected]> * Feat database access repository (#17) * feat: working repository connection * feat: working repository connection * feat: working repository connection * feat: Add Repository and Services * feat: Add findById * feat: Add findById * working commit, add queries * AuthTokenRepository * feat: Add AuthToken and Relation * commit working * changes * remove any security * working commit getting Answers from DB * feat: get User by Id * feat: addAnswer * feat: addAnswer working * changing @controller to @RestController * feat: Add deleteUser by Id * feat: Add deleteSurvey by Id * working commit * working commit Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: inesmaurer <[email protected]> * Perf controller (#18) * working commit * working commit * create answercontent table * added ResultSet for AnswerPossibilities * added ResultSet for AnswerPossibilities * added ResultSet for AnswerPossibilities * working commit * added ResultClass * set TODOs * feat: getSurveyBySurveyId * feat: getSurveyBySurveyId * created DDL statements to create dummy objects * added Positions to MCAnswerContent and AnswerPossibility as well as filled DB * feat: Add getBasicResults changes to DataModel: Relation AnswerPossibility - MCAnswerContent added; position and content in MCAnswerContent deleted; Database DDL Dummy Updated changes to logic: in AnswerPossibilityRepository fix wrong SQL-Statement; AnserService.results: add Initial defaultValues 0 for ArrayList get all MCAnswersContents from DB getPosition from reference to AnswerPossibility counter +1 return ArrayList (can be changed later again) Add files: McAnswerContentRepository and McAnswerContentService Minor Changes: created to do createMcAnswerContent when creating Answer * feat: Add sendSurvey * working commit * working commit * add SendElement structure * add SendElement structure * feat: sendSurveyElement Co-authored-by: Andreas <[email protected]> Co-authored-by: inesmaurer <[email protected]> Co-authored-by: Jarg <[email protected]> Co-authored-by: Gio02092001 <[email protected]> * feat: basic backend functionality for milestone II (#21) * database connection (#16) * feat: Add Relation User-Survey (#13) *major: database connection perf: add relation user-survey * Feat add controllers (#14) * minor advancements * change controller pathing * add basic auth and whitelisting * add User Roles and Permissions * completed basic auth * feat: first non-functionating draft of getSurvey * add admin roles and permissions * Working commit * Working commit * implementing SurveyService and FakeRepo * working status, implementation of getAllSurveys * minor changes Co-authored-by: Gio02092001 <[email protected]> * Feat database access repository (#15) * feat: working repository connection * feat: Add Repository and Services * feat: Add findById Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Gio02092001 <[email protected]> * working commit * working commit * create answercontent table * added ResultSet for AnswerPossibilities * added ResultSet for AnswerPossibilities * added ResultSet for AnswerPossibilities * working commit * added ResultClass * set TODOs * feat: getSurveyBySurveyId * feat: getSurveyBySurveyId * created DDL statements to create dummy objects * added Positions to MCAnswerContent and AnswerPossibility as well as filled DB * feat: Add getBasicResults changes to DataModel: Relation AnswerPossibility - MCAnswerContent added; position and content in MCAnswerContent deleted; Database DDL Dummy Updated changes to logic: in AnswerPossibilityRepository fix wrong SQL-Statement; AnserService.results: add Initial defaultValues 0 for ArrayList get all MCAnswersContents from DB getPosition from reference to AnswerPossibility counter +1 return ArrayList (can be changed later again) Add files: McAnswerContentRepository and McAnswerContentService Minor Changes: created to do createMcAnswerContent when creating Answer * feat: Add sendSurvey * working commit * working commit * add SendElement structure * add SendElement structure * feat: sendSurveyElement * add responseEntity and Response Code * add CorsConfig * add CorsConfig * fix: getSurvey * feat: getResultsBySurveyId + countParticipants * fix: Controllers * fix: importStatements * update DDL statements to create dummy objects" including mcanswer * fix: save survey at once with surveyElement and Answer_possibilities Milestone 1 completed * fix: send Answer * fix: send Answer with Dummies * fix: send Answer with Dummies * fix: getResults * cross origin annotation * cross origin annotation * fix: add cosConfigurer to Application * Fix cross-origin bugs * fix: createAnswerPossibility * Fix cross-origin bugs (finally) * fix: getCountParticipants and AnswerService Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Andreas <[email protected]> Co-authored-by: inesmaurer <[email protected]> Co-authored-by: Jarg <[email protected]> Co-authored-by: Marlo Kessler <[email protected]> * fix: overhaul to working stage * feat: JWT security implementation - source https://loizenai.com/angular-10-spring-boot-jwt-authentication-example/ - needs testing - needs debugging !!DONT MERGE!! functionality not tested * add ToDo to build RegEx checks * running commit - UserModel jwt security has been makeshift adapted to previous models and database * rename to AuthController * feat: jwt security - endpoints for auth - auto insert roles into db * fix: UserAccountLocked Error set nonAccountLocked, nonAccountExpired, nonCredentialsExpired, Enabled to true This could be overhauled later on? * add Auth ToDo * changed username to name on response * add equals check * small additions * fix: getUsername not reachable on auth on authentication due to inheritance of certain classes, the only way to obtain the user from the auth_token is through the username So I had to change name back to username and integrate with the naming convention of the endpoints and the DB * implement a TestController to allow for easy check of auth on static-auth endpoints * fix: Implemented login & signup with frontend * adding security features and tests (#24) * add 2 minor tests for auth (the test base on static auth_tokens) these tokens should be replaced by 4 requests: - registering an admin, user - logging into an admin, user -> using these tokens * add Test ToDos * add user_token test * fix: exception handling * removed useless antMatcher * feat: add changePassword() Co-authored-by: Gio02092001 <[email protected]> * fix depedencies * Unit tests (#26) * add REST test for getAlSurveys - HTTPStatus Code * add ToDos * feat: created getParticipant + Test files * feat: getSurvey Test * fix Repo problems * delete: ParticipantControllerTest.java * added RequestExample for Request with Body * removed redundant methods in ParticipantController * added comments, some additional lines to tests, ongoing problems with addSurvey * added comments, some additional lines to tests, ongoing problems with addSurvey * added comments, some additional lines to tests, ongoing problems with addSurvey * feat: addSurvey improved * feat: addSurveyTest functioning Co-authored-by: inesmaurer <[email protected]> Co-authored-by: Jarg <[email protected]> * feat: add changePassword() for Admin * feat: delete DTO ChangePassword * feat: delete AuthToken and AuthTokenRepository, set User.username to email at SignUp and add name to UserModel * feat: add AdminChangPw * feat: change user PWs via admin authority * feat: add Date to Answer and SendAnswer * working on TimeResults in AnswerService * feat: add TimeResults + Logging - 3 DTOs that save the time&AnswerResponse - Logger in all Services and Controllers - Logging in the "Time-Answer-Methods" - deletion of many deprecated/unnecessary files and methods this should give back a list of Results & Date for every SurveyElement * minor comment change * minor naming change * fix: get&set at TimeResultMcList * fix: get&set at TimeResultMc * fix: minor * feat: deleteUser * minor change getBasicResults from analyticscontroller * more logging * edit logger * perf: updated * switching to ResponseEntities * feat: changePW Admin * feat: deleteUser Admin * fix: getTimeResults and add Handling of wrong input of Start and end dates * add: return null if no Answer for SurveyElement is present * docs: docstrings in AnswerService * perf: using auth user on addSurvey * fix: minor * add element_id to basic answers * add element_id to basic answers * add element_id to timelineAnswer structure * fix: use new AggregatedResult() for Basic Results * fix: use new AggregatedResult() for Basic Results * more logging * fix: order all Returned Lists * fix: add survey and get timeline results * fix: rename in SurveyElement.java * add: Drop Table * Timeline Answer (#27) * feature: adminController.numberOfParticipants existing errors with Answer, feature doesn;t work * feature: adminController.numberOfParticipants existing errors with Answer, feature doesn;t work * change * work in progress * feat: TimelineAnswer * fix: unused code deleted * fix: working timelineAnswers * add authors Co-authored-by: wi19225 <[email protected]>, Giovanni Carlucci * fix: AnswerCount * fix: AnswerCount * fix: change get to post in AnalyticsController getCountParticipants * pref: deleted depricated helper method * add swagger-ui able to access openAPI3 definition under localhost:8088/swagger-ui.html * fixes Imports Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: inesmaurer <[email protected]> Co-authored-by: Andreas <[email protected]> Co-authored-by: Jarg <[email protected]> Co-authored-by: Marlo Kessler <[email protected]>
janniksinz
added a commit
that referenced
this pull request
May 4, 2021
* feat: Add Relation User-Survey (#13) perf: add relation user-survey * feat: add more feat-controllers (#14) * feat: add User Roles and Permissions * feat: admin roles and permissions * Feat database access repository (#15) * feat: working repository connection * feat: Add Repository and Services * feat: Add findById Co-authored-by: Gio02092001 <[email protected]> * Feat database access repository (#17) * feat: working repository connection * feat: working repository connection * feat: working repository connection * feat: Add Repository and Services * feat: Add findById * feat: Add findById * working commit, add queries * AuthTokenRepository * feat: Add AuthToken and Relation * commit working * changes * remove any security * working commit getting Answers from DB * feat: get User by Id * feat: addAnswer * feat: addAnswer working * changing @controller to @RestController * feat: Add deleteUser by Id * feat: Add deleteSurvey by Id * working commit * working commit Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: inesmaurer <[email protected]> * Perf controller (#18) * working commit * working commit * create answercontent table * added ResultSet for AnswerPossibilities * added ResultSet for AnswerPossibilities * added ResultSet for AnswerPossibilities * working commit * added ResultClass * set TODOs * feat: getSurveyBySurveyId * feat: getSurveyBySurveyId * created DDL statements to create dummy objects * added Positions to MCAnswerContent and AnswerPossibility as well as filled DB * feat: Add getBasicResults changes to DataModel: Relation AnswerPossibility - MCAnswerContent added; position and content in MCAnswerContent deleted; Database DDL Dummy Updated changes to logic: in AnswerPossibilityRepository fix wrong SQL-Statement; AnserService.results: add Initial defaultValues 0 for ArrayList get all MCAnswersContents from DB getPosition from reference to AnswerPossibility counter +1 return ArrayList (can be changed later again) Add files: McAnswerContentRepository and McAnswerContentService Minor Changes: created to do createMcAnswerContent when creating Answer * feat: Add sendSurvey * working commit * working commit * add SendElement structure * add SendElement structure * feat: sendSurveyElement Co-authored-by: Andreas <[email protected]> Co-authored-by: inesmaurer <[email protected]> Co-authored-by: Jarg <[email protected]> Co-authored-by: Gio02092001 <[email protected]> * feat: basic backend functionality for milestone II (#21) * database connection (#16) * feat: Add Relation User-Survey (#13) *major: database connection perf: add relation user-survey * Feat add controllers (#14) * minor advancements * change controller pathing * add basic auth and whitelisting * add User Roles and Permissions * completed basic auth * feat: first non-functionating draft of getSurvey * add admin roles and permissions * Working commit * Working commit * implementing SurveyService and FakeRepo * working status, implementation of getAllSurveys * minor changes Co-authored-by: Gio02092001 <[email protected]> * Feat database access repository (#15) * feat: working repository connection * feat: Add Repository and Services * feat: Add findById Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Gio02092001 <[email protected]> * working commit * working commit * create answercontent table * added ResultSet for AnswerPossibilities * added ResultSet for AnswerPossibilities * added ResultSet for AnswerPossibilities * working commit * added ResultClass * set TODOs * feat: getSurveyBySurveyId * feat: getSurveyBySurveyId * created DDL statements to create dummy objects * added Positions to MCAnswerContent and AnswerPossibility as well as filled DB * feat: Add getBasicResults changes to DataModel: Relation AnswerPossibility - MCAnswerContent added; position and content in MCAnswerContent deleted; Database DDL Dummy Updated changes to logic: in AnswerPossibilityRepository fix wrong SQL-Statement; AnserService.results: add Initial defaultValues 0 for ArrayList get all MCAnswersContents from DB getPosition from reference to AnswerPossibility counter +1 return ArrayList (can be changed later again) Add files: McAnswerContentRepository and McAnswerContentService Minor Changes: created to do createMcAnswerContent when creating Answer * feat: Add sendSurvey * working commit * working commit * add SendElement structure * add SendElement structure * feat: sendSurveyElement * add responseEntity and Response Code * add CorsConfig * add CorsConfig * fix: getSurvey * feat: getResultsBySurveyId + countParticipants * fix: Controllers * fix: importStatements * update DDL statements to create dummy objects" including mcanswer * fix: save survey at once with surveyElement and Answer_possibilities Milestone 1 completed * fix: send Answer * fix: send Answer with Dummies * fix: send Answer with Dummies * fix: getResults * cross origin annotation * cross origin annotation * fix: add cosConfigurer to Application * Fix cross-origin bugs * fix: createAnswerPossibility * Fix cross-origin bugs (finally) * fix: getCountParticipants and AnswerService Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Andreas <[email protected]> Co-authored-by: inesmaurer <[email protected]> Co-authored-by: Jarg <[email protected]> Co-authored-by: Marlo Kessler <[email protected]> * fix: overhaul to working stage * feat: JWT security implementation - source https://loizenai.com/angular-10-spring-boot-jwt-authentication-example/ - needs testing - needs debugging !!DONT MERGE!! functionality not tested * add ToDo to build RegEx checks * running commit - UserModel jwt security has been makeshift adapted to previous models and database * rename to AuthController * feat: jwt security - endpoints for auth - auto insert roles into db * fix: UserAccountLocked Error set nonAccountLocked, nonAccountExpired, nonCredentialsExpired, Enabled to true This could be overhauled later on? * add Auth ToDo * changed username to name on response * add equals check * small additions * fix: getUsername not reachable on auth on authentication due to inheritance of certain classes, the only way to obtain the user from the auth_token is through the username So I had to change name back to username and integrate with the naming convention of the endpoints and the DB * implement a TestController to allow for easy check of auth on static-auth endpoints * fix: Implemented login & signup with frontend * adding security features and tests (#24) * add 2 minor tests for auth (the test base on static auth_tokens) these tokens should be replaced by 4 requests: - registering an admin, user - logging into an admin, user -> using these tokens * add Test ToDos * add user_token test * fix: exception handling * removed useless antMatcher * feat: add changePassword() Co-authored-by: Gio02092001 <[email protected]> * fix depedencies * Unit tests (#26) * add REST test for getAlSurveys - HTTPStatus Code * add ToDos * feat: created getParticipant + Test files * feat: getSurvey Test * fix Repo problems * delete: ParticipantControllerTest.java * added RequestExample for Request with Body * removed redundant methods in ParticipantController * added comments, some additional lines to tests, ongoing problems with addSurvey * added comments, some additional lines to tests, ongoing problems with addSurvey * added comments, some additional lines to tests, ongoing problems with addSurvey * feat: addSurvey improved * feat: addSurveyTest functioning Co-authored-by: inesmaurer <[email protected]> Co-authored-by: Jarg <[email protected]> * feat: add changePassword() for Admin * feat: delete DTO ChangePassword * feat: delete AuthToken and AuthTokenRepository, set User.username to email at SignUp and add name to UserModel * feat: add AdminChangPw * feat: change user PWs via admin authority * feat: add Date to Answer and SendAnswer * working on TimeResults in AnswerService * feat: add TimeResults + Logging - 3 DTOs that save the time&AnswerResponse - Logger in all Services and Controllers - Logging in the "Time-Answer-Methods" - deletion of many deprecated/unnecessary files and methods this should give back a list of Results & Date for every SurveyElement * minor comment change * minor naming change * fix: get&set at TimeResultMcList * fix: get&set at TimeResultMc * fix: minor * feat: deleteUser * minor change getBasicResults from analyticscontroller * more logging * edit logger * perf: updated * switching to ResponseEntities * feat: changePW Admin * feat: deleteUser Admin * fix: getTimeResults and add Handling of wrong input of Start and end dates * add: return null if no Answer for SurveyElement is present * docs: docstrings in AnswerService * perf: using auth user on addSurvey * fix: minor * add element_id to basic answers * add element_id to basic answers * add element_id to timelineAnswer structure * fix: use new AggregatedResult() for Basic Results * fix: use new AggregatedResult() for Basic Results * more logging * fix: order all Returned Lists * fix: add survey and get timeline results * fix: rename in SurveyElement.java * add: Drop Table * Timeline Answer (#27) * feature: adminController.numberOfParticipants existing errors with Answer, feature doesn;t work * feature: adminController.numberOfParticipants existing errors with Answer, feature doesn;t work * change * work in progress * feat: TimelineAnswer * fix: unused code deleted * fix: working timelineAnswers * add authors Co-authored-by: wi19225 <[email protected]>, Giovanni Carlucci * fix: AnswerCount * fix: AnswerCount * fix: change get to post in AnalyticsController getCountParticipants * pref: deleted depricated helper method * add swagger-ui able to access openAPI3 definition under localhost:8088/swagger-ui.html * fixes Imports * Feat update user (#29) * feat: user name, auth on admin creation - check for admin auth on creation of new admin - add name to user Entity * feat: email, password rules regex used the rules from ihateregex.io * fix: changeEmail * fix: changeEmail * feat: add changeName * fix: double POST in UserController * fix: naming convention * fix: changeUser application not running * fix: db changeUser * feat: changeUser regex check * feat: return new auth after change username * working commit * fix * better logging * Feat update user (#32) * feat: user name, auth on admin creation - check for admin auth on creation of new admin - add name to user Entity * feat: change username, name of user (or via admin) - change information in db - create new auth token - return valid token with new information * feat: email, password rules regex used the rules from ihateregex.io * fix: changeEmail * fix: double POST in UserController * fix: naming convention * fix: changeUser application not running * fix: db changeUser * feat: changeUser regex check * feat: return new auth after change username * getAllUsers endpoint * fix: username not found in token renew On renewing the token, instead of the UserDetails, a User was used to create new the new token. To get the UserDetails on use of the new token, the username had to be extractable from the token. Solved by setting the Username instead of the User on token creation. * moved endpoint to admin controller * getUser for Admin * default constructor * fix: no old password required on AdminChangePw * fix: change response type of changePassword in UserRepository * feat: user specific content & auth feat(chore): delete User with surveys * Get country (#30) * feat: getCountry bySurvey Endpoint * feat: getCountries overall for Admin Co-authored-by: wi19225 <[email protected]> * feat: changePW for admin & auth for user/admin controller * fix: ownsSurvey checks for survey and user before, it only checked if there was a survey from the user now it checks for actual ownership * rollback * fix: ownssurvey * Feat set participant (#31) * feature: adminController.numberOfParticipants existing errors with Answer, feature doesn;t work * feature: adminController.numberOfParticipants existing errors with Answer, feature doesn;t work * change * work in progress * feat: TimelineAnswer * fix: unused code deleted * fix: working timelineAnswers * add authors * feat: add setParticipant * feat: minor fix * feat: minor fix * feat: minor fix * feat: minor fix * feat: minor fix * bugfix: add cross origin * feat: Insert connection of participant to survey into survey_participant * fix: requested changes Co-authored-by: wi19225 <[email protected]> Co-authored-by: janniksinz <[email protected]> Co-authored-by: Marlo Kessler <[email protected]> * fix: deleteUser * fix: merge failure * fix: login&deleteUser * fix: add getSurvey in ParticipantController * fix: ownsSurvey with boolean Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: Gio02092001 <[email protected]> Co-authored-by: inesmaurer <[email protected]> Co-authored-by: Andreas <[email protected]> Co-authored-by: Jarg <[email protected]> Co-authored-by: Marlo Kessler <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.