Skip to content

promotion: preprod to prod - #57

Merged
hei-teacher merged 10 commits into
prodfrom
preprod
Jul 30, 2026
Merged

promotion: preprod to prod#57
hei-teacher merged 10 commits into
prodfrom
preprod

Conversation

@SalomiaZK

Copy link
Copy Markdown
Collaborator

No description provided.

SalomiaZK and others added 7 commits May 22, 2026 14:19
* feat: add scope field to Payment domain and JPA entity

* feat: propagate scope through repository layer with JPQL queries

* feat: expose scope filtering in PaymentService methods

* feat: add database migration for scope column

* refactor: extract nullIfAll helper for scope filter methods

* feat: update existing tests for scope param and add scope filtering tests

* feat: replace scope arg with meaningful names and fix existing tests

* feat: use null instead of placeholder for non-scoped tests

* feat: add general service tests for findPaymentsByApplicationName and date range

* feat: add optional scope param to POST /payment endpoint

* fix: add missing scope arg to second Payment constructor in test

* fix: add p.scope to native query SELECT in JPaymentRepositoryCustomImpl

* chore: update test date

* chore: change test data ref

* feat: add test for findAllPayments, sumAmountForSucceeded, countPending

* refactor: resolve blank line conflict

* refactor: replace sum amount for succeeded with stream filtering

* fix: remove redundant findAll on JApplicationRepository

* feat: implement pageable on findAll Application

* refactor: remove nullIfAll from PaymentService

* chore: remove tests relying on nullIfAll mapping

* chore: remove useless blank in service

* refactor: remove useless line

* refactor: use findAll(Pageable) instead of findAll() in payment repository and service

* refactor: compute sum amount for succeeded in db

---------

Co-authored-by: NickyHariniaina <ferrissushi@gmail.com>
* feat: add CSV export endpoint and service methods

* test: add CSV export integration and service tests

* refactor: make applicationName optional in CSV export endpoint

* refactor: replace System.currentTimeMillis() with static import

* refactor: ZoneOffset.UTC as static import

* refactor: improve CSV builder readability with String.format

* refactor: use English instead of French for csv title

* chore: add .env to .gitignore

* test: replace inline CSV assertions with expected-export.csv comparison

* test: replace inline CSV assertions with expected-export.csv comparison

* test: remove unused PaymentRepository import

---------

Co-authored-by: Mathieu-bot <mathieu-bot@users.noreply.github.com>

* test: simplify CSV test to single data row

* feat(security): require apiKey on GET /payments/export/csv, remove applicationName param

* feat: add AdminAuthorizer, applicationName param for CSV export

* fix: validate admin API key via env var instead of DB

* style: inline format string in String.format

* style: format code

---------

Co-authored-by: Tafita Mathieu <199898191+Mathieu-bot@users.noreply.github.com>
Co-authored-by: Mathieu-bot <mathieu-bot@users.noreply.github.com>
@SalomiaZK
SalomiaZK marked this pull request as ready for review July 30, 2026 08:19

@hei-teacher hei-teacher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests fail

@hei-teacher
hei-teacher merged commit bd5470b into prod Jul 30, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants