Skip to content
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

Recruitment Session and Interview Slots #28

Merged
merged 112 commits into from
Jun 1, 2024
Merged

Recruitment Session and Interview Slots #28

merged 112 commits into from
Jun 1, 2024

Conversation

whiitex
Copy link
Collaborator

@whiitex whiitex commented Jun 1, 2024

  • Added findAvailableTimeSlots method to retrieve time slots to hold interviews
  • Recruitment Session Controller, Service, Repository & Entity
  • CRUD operations for Recruitment Session
  • Improved API code coverage
  • Improved methods documentation
  • Refactored fronted file and folder structure

ozerodb and others added 30 commits January 3, 2024 13:35
* feat: session service, controller, entity

* feat: update recruitment-session: service, controller, entity

* test: mock recruitment session service, insert data mock

* fix: relative import of recruitment-session from shared folder

* fix: recruitment-session service Delete test

* fix: removed lastModified from UpdateRecruitmentSessionDto

* fix: ability check on recruitment session creation

* feat: check if recruitment session has pending interviews before deleting it

* feat: check for conflicts and consistency when updating a recruitment session state

* fix: check ability for update recruitment session

* refactor: removed unused imports in recruitment-session.controller.ts

* fix: use const for unchanged variable in createRecruitmentSession service method

* refactor: removed unused code in creatre-recruitment-session.dto.ts

* fix: updated Date[] in create and update Recruitment session DTOs

* test: Recruitment Session Controller tests

* refactor: removed unused imports

* feat: Recruitment session module

* fix: import of RecruitmentSessionState in recruitment-session.service.ts

* fix: find function recreuitment session

* fix: set findBy functions

* fix: adjustments about array of recruitment session

* test: create recruitment session

* add: test create RS on service.spec

* fix: changed array into scalar value in findBy and findActive

---------

Co-authored-by: Alberto Baroso <[email protected]>
RecruitmentSessionController:
- findActive: Retrieve the active recruitment session if it exists.
- createRecruitmentSession
- updateRecruitmentSession
- deleteRecruitmentSession

RecruitmentSessionService:
- createRecruitmentSession
- findAllRecruitmentSessions
- findRecruitmentSessionById
- findActiveRecruitmentSession
- deletRecruitmentSession
- updateRecruitmentSession
- sessionHasPendingInterviews: Check if a recruitment session has pending interviews (to be implemented).

DTOs:
- CreateRecruitmentSessionDTO
- UpdateRecruitmentSessionDTO
- RecruitmentSessionResponseDTO

Tests:
- Controller Unit tests: recruitment-session.controller.spec.ts
- Service Unit tests: recruitment-session.service.spec.ts


Commits:

* fix: missing dependencies and imports (#9)

* fix: added @joi/date library

* fix: added missing useState import
  fix: removed loading screen when auth token is empty

* docs: updated project description, useful links, and contributors in README.md (#10)

* feat session: service, controller, entity

* feat: update recruitment-session: service, controller, entity

* feat: update recruitment-session: service, controller, entity

* fix: dependencies in shared/abilities

* fix: mock shared -> required/optional fields

* fix: mock recruitment session service, insert data mock

* fix: relative import of recruitment-session from shared folder

* fix: recruitment-session service Delete test

* fix: removed lastModified from UpdateRecruitmentSessionDto

* fix: ability check on recruitment session creation

* feat: check if recruitment session has pending interviews before deleting it

* feat: check for conflicts and consistency when updating a recruitment session state

* fix: check ability for update recruitment session

* refactor: removed unused imports in recruitment-session.controller.ts

* fix: use const for unchanged variable in createRecruitmentSession service method

* refactor: removed unused code in creatre-recruitment-session.dto.ts

* fix: updated Date[] in create and update Recruitment session DTOs

* fix: added 'state' to recruitmentSession response DTO

* test: Recruitment Session Controller tests

* refactor: removed unused imports

---------

Co-authored-by: Alberto Baroso <[email protected]>
* feat: setup coverageDirectory and coveragePathIgnorePatterns

* ci: added SonarCloud Analysis job in GitHub actions

* ci: sonar-project.properties configuration

* Simplified workflow, single task, maximum gain

---------

Co-authored-by: Vincenzo Pellegrini <[email protected]>
refactor: availability.controller.ts using prettier
test: validate insert Availability schema
fix: used Relation as type of fields in Availability entity
@whiitex whiitex requested a review from AlbertoBaroso June 1, 2024 14:17
Copy link

sonarcloud bot commented Jun 1, 2024

@AlbertoBaroso AlbertoBaroso merged commit b97612e into main Jun 1, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants