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

Add Creation and Update Dates #48

Merged
merged 7 commits into from
Nov 26, 2023
Merged

Conversation

romandykyi
Copy link
Owner

@romandykyi romandykyi commented Nov 26, 2023

This pull request adds CreationDate and UpdateDate properties to entities.

Changes made

  • Introduced IHasUpdateDate and IHasCreationDate interfaces.
  • Updated BaseCrudService to set creation date and/or update date to entities.
  • Added date properties to all related DTOs.
  • Enhanced test data generation.
  • Wrote tests for new changes.

Affected entities

  • Classroom
  • Course
  • Grade
  • Group
  • Semester

Affected endpoints

  • GET api/classrooms
  • GET api/classrooms/[id]
  • GET api/courses
  • GET api/courses/[id]
  • GET api/grades
  • GET api/grades/[id]
  • GET api/groups
  • GET api/groups/[id]
  • GET api/semesters
  • GET api/semesters/[id]

Note: dotnet ef database update command should be executed.

Now `BaseCrudService` can assign creation and/or update dates to entities which have implemented `IHasCreationDate` and/or `IHasUpdateDate` interfaces.
Entities affected:
* Grade
* Classroom
* Course
* Group
* Semester
@romandykyi romandykyi merged commit 612a7e4 into master Nov 26, 2023
1 check passed
@romandykyi romandykyi deleted the add-creation-and-update-dates branch November 26, 2023 17:09
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.

1 participant