project improvements — config, tests, refactoring, and new features#98
Open
zinchuknadia wants to merge 12 commits into
Open
project improvements — config, tests, refactoring, and new features#98zinchuknadia wants to merge 12 commits into
zinchuknadia wants to merge 12 commits into
Conversation
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.
Changes included in this PR:
Remove VK and Yandex social login providers
VK and Yandex OAuth providers were removed as they are no longer needed.
This cleans up unused dependencies and configuration.
Move sensitive config (DB, OAuth, mail) to env variables
Extracted sensitive properties (DB credentials, OAuth IDs/secrets, mail settings)
into a separate config file. Values are now read from environment variables at startup.
Switch tests to H2 in-memory DB with Spring profile selection
Replaced PostgreSQL with H2 in-memory database for test execution.
Two datasource beans are defined; the active Spring profile determines which one is used.
Add tests for ProfileRestController (success and failure paths)
Added coverage for all public methods of ProfileRestController.
Both success and unsuccessful paths are tested.
Refactor FileUtil#upload to use modern NIO API
Replaced legacy File-based file handling with java.nio.file (Path and Files).
This aligns the code with modern Java best practices.
Add task time tracking (in-progress and testing duration)
Added two service methods to calculate time spent in development and testing stages.
Also added seed ACTIVITY records to changelog.sql with in_progress, ready_for_review, and done statuses.
Add Dockerfile for the application server
Added a Dockerfile to containerize the Spring Boot application.
Enables consistent builds and easier deployment.
Add docker-compose for server, database, and nginx
Added docker-compose.yml to run the application server together with PostgreSQL and nginx.
Used config/nginx.conf as the nginx configuration file.