Skip to content

Kotovych final project#24

Open
RomanKotovych wants to merge 32 commits into
demologin:masterfrom
RomanKotovych:master
Open

Kotovych final project#24
RomanKotovych wants to merge 32 commits into
demologin:masterfrom
RomanKotovych:master

Conversation

@RomanKotovych

@RomanKotovych RomanKotovych commented Aug 28, 2024

Copy link
Copy Markdown

JWT на костылях

This commit introduces integration testing using Testcontainers.

- Added Testcontainers dependencies to the project.
- Configured a PostgreSQL container for testing purposes.
- Updated test classes to use the Testcontainers environment.
- Removed the hardcoded database configuration from application-test.yaml.

This change improves the reliability and consistency of our tests by using a containerized environment.
Added localization support for English and French languages
using Spring's localization features.

Implemented:
- Configured LocaleResolver and LocaleChangeInterceptor
- Created message properties files for English and French
- Updated templates to use messages from properties files
- Added a language switcher to the main page
Added Russian translation for UI elements:
- Buttons
- Sidebar
- Home page
- Footer
- Email templates

Also added messages_ru.properties file and updated language switcher.
Added endpoints to get the time a task has spent in development
and testing phases.

This commit also includes:
- Database updates with initial activity data.
- Updates to README.md with new features.
The `calculateTimeBetweenStatuses` method was refactored to use
the Stream API for better readability and conciseness.

The logic remains the same, calculating the time difference
between two statuses in a list of activities.
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