Conversation
Add auto migrate
STD-2 | Switch db type to Postgres
STD-10 | Add model configurator for domain services
Teacher was replaced, Course with its blocks added Minor changes in config and DbContext
STD-1 | Implement JWT auth system
And minor changes in Quiz, Content and Tag
RedactedAt is nullable now Content have new FK
RedactedAt in Course is nullable now
Also decorative //connection part added We do not need it in Content, cause it consist of connection parts
Were added in "Nullable patch" by mistake
STD-7 | Domain models (code)
Update DateCreatedModified functional Little style fixes
STD-12 | Add functional for DateCreated and DateModified
Create main.yml
1-1 connection within Content/Course and 1-M connection within Teacher/Course was added. Also other minor changes
Connections in CourseConnection was added Course Course was added to TheoryBlock and PracticalBlock
Update main.yml
Content was removed, connections is now direct
STD-13 | Entity type configurations for EF Core
* Docker support * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update Dockerfile * Docker support * Test * Test db * Test db v2 * Update main.yml * Test something * Test dev mode * Test dev mode v2 * Test dev mode v3 * Test dev mode v3 * Update main.yml * Update main.yml
* add MediatR to the project * move handlers to inside the queries\commands * adjust error messages to use ErrorConstants
* Add first draft of courses page * Add button to courses page
* Add Email Sender * Fix namespaces
* Added course CRUD commands/queries * Added cancellationToken to async methods and condition in AddCourseCommand handler * ToLower names in AddCourseCommand * Changed search method in RemoveCourseByIdCommand * Fixed condotionals in searches * Fixed tabulation Co-authored-by: Егор Павшук <egor.pavshuk@outlook.com> Co-authored-by: Maria Dodonova <maridodonova@gmail.com>
* RemoveTagCommand.cs was added * Major changes in RemoveTagCommand.cs RemoveTagCommand.cs was renamed to RemoveTagByIdCommand.cs cancellationToken was added to tag in GetTagByIdQuery.cs, to if statement condition and SaveChangesAsync in AddTagCommand.cs and to tag + SaveChangesAsync in RemoveTagByIdCommand.cs RemoveTagByIdCommand.cs was partly reworked * Unnecessary using was removed in RemoveTagByIdCommand.cs
* add commands, implement basic register and login functionality * refresh token implementation * add automapper * add missing profile config * add logout functionality * add error messages * remove comment in RefreshTokenCommand * Fix redurant Co-authored-by: Dmytro Kudrenko <dmytro.kudrenko@dedicatedlab.com>
* Query Task added * created: // AddTheoryBlockCommand.cs // GetTheoryBlockByIdQuery.cs // RemoveTheoryBlockByIdCommand.cs * Fixwd conversions #bodyazaebal * Argument Fix * Fix Equals and code style Co-authored-by: SleepyF0X <kotohomka@gmail.com>
* STD-37 | Add Fluent Validator * change error code from 402 to 400 Co-authored-by: Nikolai Arkharov <arharovoversteam@gmail.com>
* fix namespaces * add missing import
* STD-26 | TheoryBlock Repository (#16) * ITheoryBlockRepository was added * TheoryBlockRepo was added Trying to fix it now * TheoryBlockRepository.cs was added I`ll try to fix it now * TheoryBlockRepository.cs done * TheoryBlockRepository.cs redacted, pre-dev 1 _context is now readonly if statement and FindAsync in GetTheoryBlocksByCourseIdAsync was deleted "potentially deleted if statement" in Update was added * Minor changes, pre-dev 2 "potentially deleted if statement" comment was removed * SaveChangesAsync was added, pre-dev 3 "()" in return new OperationResult were removed too * Method AlternativeResult was added to implement DRY principle, pre-dev 4 * AlternativeResult method changes, pre-dev 5 AlternativeResult was renamed to BuildErrorResponse Method moved to the end of the TheoryBlockRepository.cs * STD-24 | Tag Repository (#17) * Added ITagRepository interface and TagRepository class * Were realised methods in TagRepository * Inverted if statements. Co-authored-by: Егор Павшук <egor.pavshuk@outlook.com> Co-authored-by: Maria Dodonova <maridodonova@gmail.com> * Std 27 (#25) * STD-14 | Add code analyzers (#18) * STD-29 | Add global error handler (#19) * STD-29 | Add global error handler * Fixes * Created IPracticalBlockRepository interface in the StudySharp.Domain/Repositories folder Created PracticalBlockRepository class in the StudySharp.DomainServices/Repositories folder * Fixed StudySharpDbContext.cs * PracticalBlockRepository.cs sealed added Co-authored-by: SleepyF0X <kotohomka@gmail.com> * Std 25 (#23) * STD-14 | Add code analyzers (#18) * STD-29 | Add global error handler (#19) * STD-29 | Add global error handler * Fixes * Create build.yml * Update build.yml * Update build.yml * Update build.yml * Update main.yml * Update main.yml * STD-5 | CI\CD (#20) * Docker support * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update Dockerfile * Docker support * Test * Test db * Test db v2 * Update main.yml * Test something * Test dev mode * Test dev mode v2 * Test dev mode v3 * Test dev mode v3 * Update main.yml * Update main.yml * Added ICourseRepository interface and CourseRepository class * STD-25 | Added ICourseRepository interface and CourseRepository class Co-authored-by: SleepyF0X <kotohomka@gmail.com> * STD-36 | PracticalBlock commands\queries * Fixed STD-36 * Fixed spaces * Some fixes * Rename and Cancellation token * Fixed Update * Rename handler Co-authored-by: zefirlover <71660586+zefirlover@users.noreply.github.com> Co-authored-by: Egor-Pavshuk <70218372+Egor-Pavshuk@users.noreply.github.com> Co-authored-by: Егор Павшук <egor.pavshuk@outlook.com> Co-authored-by: Maria Dodonova <maridodonova@gmail.com> Co-authored-by: Andrew <47719935+Evenya@users.noreply.github.com> Co-authored-by: SleepyF0X <kotohomka@gmail.com>
* add JwtAuthServiceExtensions, remove inheritance, change way of DI for JwtTokenConfig to use Options pattern * move validation logic to FluentValidator validators * Add StudySharpDbContextSeedData * adjust StudySharpDbContextSeedData * fix errors * adjust refreshToken validations to use FluentValidator Co-authored-by: Егор Павшук <egor.pavshuk@outlook.com>
* STD-32 | Add Email service * Remove unused usings
* Add validators for Tag commands/queries * Add cancellation tokens to async methods and remove useless checks * Change FindAsync to AnyAsync Co-authored-by: Егор Павшук <egor.pavshuk@outlook.com>
* Added course controller and course requests and responses * Fixed http get/post * Added course mapper profile * Fix attributes in CourseController * Add attributes to RemoveCourseByIdRequest and to GetCourseByIdRequest models * Replace GetCourseByIdQuery by GetCoursesQuery in GetCourses method * Delete RemoveCourseByIdResponse * Fix attribute and return types in CourseController * Add GetCoursesByTeacherId query, handler, method in the controller, request and response * Add attributes in CourseController * Add validation for the existence of the teacher * Add Map for GetCoursesByTeacherId
* Query Task added * created: // AddTheoryBlockCommand.cs // GetTheoryBlockByIdQuery.cs // RemoveTheoryBlockByIdCommand.cs * Added course controller and course requests and responses * Fixed http get/post * Added course mapper profile * Fixwd conversions #bodyazaebal * Argument Fix * AddTheoryBlockRequest, RemoveTheoryBlockByIdRequest and TheoryBlockController created * Fix Equals and code style * HttpGet by Id added into TheoryBlockController.cs and other minor changes Added: GetTheoryBlockByIdRequest GetTheoryBlockByIdResponse GetTheoryBlocksRequest GetTheoryBlocksResponse TheoryBlockProfile * After review update * Remove stupid generics * GetTheoryBlockByCourseId pre-update Add GetTheoryBlockByCourseIdRequest and GetTheoryBlockByCourseIdResponse Add GetTheoryBlockByCourseId logic to the TheoryBlockController.cs, now commented due to lack of some queries * Add "Update" functionality to the TheoryBlockController * Add GetTheoryBlockByCourseId Add GetTheoryBlockByCourseIdQuery Uncomment code in TheoryBlockController.cs * Pre-rewrite update * Major update of the TheoryBlockController TheoryBlockController now works like a part of Course Remove GetTheoryBlocksRequest.cs due to is uselessness Other minor changes due to adding CourseId validation * GetTheoryBlockByCourseIdQuery returns a List of TheoryBlocks if theoryBlock == null * Pull update from dev * Add Course validation In AddTheoryBlockCommand, GetTheoryBlockByCourseIdQuery, GetTheoryBlockByIdQuery, RemoveTheoryBlockByIdCommand, UpdateTheoryBlockCommand * Remove useless comment * Minor changes Delete GetTheoryBlocksResponse.cs GetTheoryBlockByCourseId => GetTheoryBlocksByCourseId * Remove unnecessary Course elements * Tests 1/2 Add row in mapper profile Rename and minor changes in GetTheoryBlocksByCourseIdQuery.cs * Tests 2/2 Some changes in Update and Remove blocks * Tests 3/2 Fixed CourseId validation in UpdateTheoryBlockCommand.cs Update now works correctly Other minor changes * Add now works, rewrite operation result text in GetTheoryBlockByIdQuery Other minor changes * Rework courseId exception in Remove, GetById, GetByCourseId, rework exception texts in GetByCourseId * Unnecessary comments was removed * Change course to courseExistent Co-authored-by: Evenya <evenyarls@gmail.com> Co-authored-by: Maria Dodonova <maridodonova@gmail.com> Co-authored-by: SleepyF0X <kotohomka@gmail.com>
* Initial commit Added basic logic for course updating * small clean up Co-authored-by: Nikolai Arkharov <arharovoversteam@gmail.com>
* STD-41 Practical Block Controller * PracticalBlockController fixes * Rename Fix
* redo seed Roles logic to sync with DomainRoles file * adjust Registration and Login process to use roles * add role seed additional logic for development environment * add isInitialized variable to seed data
* Add PracticalBlockRules interface and methods * Rewrite validation to PracticalBlock commands * Rewrite validation for PracticalBlock queries and fix GetPracticalBlocksByCourseIdQuery * Add validation for Name and Description in UpdatePracticalBlockCommand * Fix Name length validation Co-authored-by: Егор Павшук <egor.pavshuk@outlook.com>
* add mediatR pipeline behavior to proceed with validation * move to Helpers folder
This file contains hidden or 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
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.