Skip to content

feat(transactions): complete module with CRUD operations and budget calculations & fix auth validation#8

Open
IsraaXx wants to merge 33 commits intodevelopfrom
feature/transaction
Open

feat(transactions): complete module with CRUD operations and budget calculations & fix auth validation#8
IsraaXx wants to merge 33 commits intodevelopfrom
feature/transaction

Conversation

@IsraaXx
Copy link
Copy Markdown
Member

@IsraaXx IsraaXx commented Mar 18, 2026

Summary

This PR establishes the core foundation of the transactions module by introducing full CRUD capabilities, essential database entities, and architectural refactoring. Additionally, it resolves a critical validation issue in the authentication flow to ensure secure access.

Key Changes:

  • Auth Security Fix: Updated AuthService to validate passwords using passwordEncoder.matches() and throw InvalidCredentialsException for incorrect credentials.

  • Module Refactoring: Renamed the categories package to transactions to align with the new system architecture.

  • Database Setup: Created Transaction entity, TransactionType enum, and TransactionRepository with required custom queries.

  • Transactions & Categories CRUD APIs: - Implemented full CRUD operations (POST, GET, PATCH, DELETE) matching the project's @AuthenticationPrincipal security standard.

    • Added Request/Response DTOs with strict validation for creating and updating records.

    • Created clean data Mappers using Kotlin extension functions.

    • Implemented @Transactional- service logic for secure batch saving, updating, and soft-deleting of entries.

    • Integrated budget calculation logic seamlessly with the retrieval APIs.

@IsraaXx IsraaXx changed the title feat(transaction): initialize module base & fix auth validation feat(transaction): implement create transaction API & fix auth validation Mar 23, 2026
@IsraaXx IsraaXx changed the title feat(transaction): implement create transaction API & fix auth validation feat(transactions): complete module with CRUD operations and budget calculations & fix auth validation Mar 31, 2026
@IsraaXx IsraaXx requested a review from Joseph-Sameh-0 March 31, 2026 13:23
@IsraaXx IsraaXx marked this pull request as ready for review March 31, 2026 14:01
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.

3 participants