Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

16375 payment request entity #714

Merged
merged 5 commits into from
Jul 19, 2024
Merged

16375 payment request entity #714

merged 5 commits into from
Jul 19, 2024

Conversation

nnorbert
Copy link
Contributor

Refactored payments request into an entity service.

@nnorbert nnorbert requested a review from peschina July 19, 2024 10:49
Copy link
Collaborator

@peschina peschina left a comment

Choose a reason for hiding this comment

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

Looks good.
I think we should discuss about the errors, but doesn't necessarily needs to be part of this PR

@nnorbert nnorbert merged commit 5ec5f5b into dev Jul 19, 2024
16 checks passed
@nnorbert nnorbert deleted the 16375-payment-request-entity branch July 19, 2024 14:24
alfonsograziano added a commit that referenced this pull request Sep 16, 2024
* Add a unique validation step on ADO pipeline (#694)

* Add a unique validation step, instead of an approval per service

* Revert deploy yaml to previous state. Not using environments for this step as it requires an approval per service, which is overwhelming for the approver

* FIX: environment name for validation step (#695)

* Add a unique validation step, instead of an approval per service

* Revert deploy yaml to previous state. Not using environments for this step as it requires an approval per service, which is overwhelming for the approver

* Fix environment name for approvals

* Shouldn't have to, but added a check for the push image step not to be triggered if the approval fails

* Messaging events ui  (#687)

* sms and email stub with rudimentary ui

* integrate logto with temporary auth creds for dev

* Update apps/messaging-api/routes/messages/index.ts

* Update apps/messaging-api/routes/messages/index.ts

* Update apps/messaging-api/routes/messages/index.ts

* Apply suggestions from code review

* Apply suggestions from code review

* table style and fixed query issue

* error alert on server error send a message

* mail service fixes

* Apply suggestions from code review

* translations and console log

* code review updates

* Last minute server error copy udpate

* chore(messaging): use getGenericResponseSchema (#693)

* chore(DX) DB volume for life-events (#697)

* feat(migrations) Added more public servants migrations (#698)

* Feature/performance-tests-18850 (#683)

* lighthouse testing for Life Events

* code tidy up

* missing file

* Chore(messaging-api): remove test apis (#702)

* chore(messaging-api): removed tests apis

* updated sdks

* recreate previous branch from dev to resolve merge conflicts (#703)

* [17330] Fix favicon (#700)

* fix favicon in landing pages

* Add favicon for life events

* Add favicon for payments

* Remove unnecessary metadata from payments

* set metadata for messaging app

* feat(19341): inactive public servant role (#691)

* feat(19341): inactive public servant role

* integrated into messaging

* Update

* token as auth for scheduler (#706)

* token as auth for scheduler

* Update apps/messaging-api/services/messages/messaging.ts

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>

* review fixes

---------

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>

* Fixc logto env vars (#708)

* feat(19613): refactor authentication factory (#704)

* feat(19613): refactor authentication factory

* update

* updated the dockerfile

* Fix(messaging): improved authentication context (#709)

* added method to check authenticate

* check if authenticated

* removed useless variables

* re-added variables

* paging logic and paging component for logs (#707)

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>

* feat(logto) Life events logto admin (#673)

* fix(logto) Added safety checks for logto users (#713)

* Feature(profile-api): 15380 - add preferred language field (#711)

* feat(profile): add preferred language

* added preferred-language in types

* updated sdks

* removed default

* updated sdks

* added preferred language in query

* use preferred language

* Chore(profile-api): use life events errors (#712)

* chore(profile-api): use shared errors in addresses

* chore(profile-api): use shared errors in entitlements

* chore(profile-api): use shared errors in details

* use getErrorMessage

* added message check

* [18061] Responsive font sizes in headings (#715)

* fix logout from hamburgher menu

* chore: fix responsive font size in landing pages

* 16375 payment request entity (#714)

* feat(16375): paymenr request entity

* update

* Chore: include makefile (#705)

* added make

* added env sample scheduler

* temp

* updated make

* added kill services

* updated cmds

* added some cmds

* updated commands

* updated packages

* updated commands

* updated readme

* removed additional tabs

* merged

* feat(upload-api) Added new upload api service (#664)

* Services per environment (#719)

* Moving services matrix to environments' config files

* Remove new lines from services matrix

* Fix variable. Azure templates support only strings, not objects or arrays.

* Remove whitespaces from services string when using it to iterate

* Warning for developers that wish to include/exclude a service from the pipeline

* Adjust each environment's services

* Chore/rename upload api (#722)

* fix(life-events) no-events copy text updated (#726)

* Message new send composition (#721)

* new composition post message approach

* remove double scheduling event log

* handle partial failed message creation

* tests and throw by spec for build message

* gitignore tap

* clean ups

* scheduler permissions illegal value keys check

* dont allow empty variable values

* dead imports

* response 201 for post request

* data field for sdk.send

* Update apps/profile-api/routes/user/index.ts

* Update apps/messaging-api/types/schemaDefinitions.ts

* Update apps/profile-api/routes/user/index.ts

* review comments

* chore(upload) changed dockerfile to add entrypoint (#728)

* 19298 organization selector (#727)

* feat(19298): organization selector

* Update

* [Payments] Organization selector in homepage only (#725)

* chore: render paymentsmenu component per route

* chore: fix after merge

* chore: remove import

* chore: add missing translation

* chore: get locale from params

* update

* update

* Update packages/shared-components/components/OrganizationSelector/OrgSelector.tsx

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>

* Update

* chore: add comment

---------

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>
Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>
Co-authored-by: Sara Zanellato <sara.zanellato@nearform.com>

* Chore(shared-errors): added parent error management (#731)

* feat(shared-errors): added parent error everywhere

* added the get message method

* moved under source

* added parseErrorForLogging method

* manage parent error

* added usage example

* added tests

* added tests

* Feature(messaging): prepare language selector (#716)

* feat(messaging-api): added getProfileClient to auth factory

* moved header to use same compoentns as other services

* moved header to use same compoentns as other services

* Feature(messaging): 15380 - preferred language (#717)

* feat(messaging): start adding language persistence

* updated env vars

* removed console log

* removed useless

* delete next locale cookie

* set lang in middleware

* added EOF

* added EOF

* Feature(profile): 15380 - integrate logto into profile (#720)

* added authentication factory

* removed x-user-id hader management

* added logto envs

* added permissions

* udpated user profile usages

* fixed casing in dockerfile

* added argument

* fixed dockerfile

* Added EOF

* Added EOF

* added cookie secret

* added logto endpoint

* Added callback route

* Added login and signout routes

* updated app id

* updated logout path

* added api auth to nodemon

* Added EOF

* Chore(messaging): 15380 - use profile sdk with token (#723)

* use profile with auth token

* fixed docker casing

* fixed env assignment in docker

* Chore(messaging): 19937 - single import endpoint (#733)

* feat(messaging-api): single import file endpoint

* use new sdk

* udpated type

* Chore(messaging-api): added db check on healthcheck (#724)

* added db check

* normalized error mesage

* added package version in response

* Feature(messaging-api): implement under pressure (#729)

* added package version in response

* managed under pressure:

* Message Events API update (#734)

* extract message-events api route

* sanitize pagination utils

* feat(upload-api) Implemented better download logic (#730)

* fixed files (#736)

* fix(logto) Fix for logto missing jwt token (#739)

* Provider API refactor (#737)

* new providers api endpoint with adjusted sdk

* missed plugin comment

* Update apps/messaging/app/[locale]/admin/providers/SmsProviders.tsx

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>

* move schemas to schema folder

---------

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>

* feat(16988): shared admin page (#732)

* feat(16988): shared admin page

* update

* update

* update

* update

* update

* update

* update

* updated env vars

* update

* Update apps/home/app/styles/globals.scss

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* Update apps/home/app/[locale]/components/Dashboard/dashboard.css

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* Update apps/home/app/styles/globals.scss

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* Update apps/home/app/styles/globals.scss

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* update

* [Home]: add build time environment variables (#740)

* chore: add buildtime env vars for home

* chore: add pipeline variables for all environments

* Update translations

---------

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* Feature(messaging-api): 19954 organisation settings endpoints (#735)

* moved to organisation settings routes

* used new sdks methods

* Feature(messaging):  user imports (#738)

* Added user imports file

* temp

* started merging routes

* final endpoints designed

* updated a bit

* updates

* updates

* updates

* updated users endpoints

* other updates

* something

* managed import id

* managed import id

* Updated sdks

* updates on sdk invocation

* some fixes on users side

* some fixes on users side

* updated user imports

* removed useless methods

* renMED METHOD

* use pagination in upper level

* normalize check if organisation

* removed useless method

* updated query

* some updates

* fixed url for download template

* Feature(messaging): 19954 use organisation settings (#741)

* feat(messages): add migration

* added organisation setting id

* moved organisation id to organisation setting id

* updated sdks

* use organisation setting id in pages

* removed unused vars

* fixed get users query

* fixed

* Organisation setting id

* Provider API refactor (#737)

* new providers api endpoint with adjusted sdk

* missed plugin comment

* Update apps/messaging/app/[locale]/admin/providers/SmsProviders.tsx

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>

* move schemas to schema folder

---------

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>

* feat(16988): shared admin page (#732)

* feat(16988): shared admin page

* update

* update

* update

* update

* update

* update

* update

* updated env vars

* update

* Update apps/home/app/styles/globals.scss

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* Update apps/home/app/[locale]/components/Dashboard/dashboard.css

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* Update apps/home/app/styles/globals.scss

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* Update apps/home/app/styles/globals.scss

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* update

* [Home]: add build time environment variables (#740)

* chore: add buildtime env vars for home

* chore: add pipeline variables for all environments

* Update translations

---------

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* updated open api defintion

* added health tags

---------

Co-authored-by: Ludwig Thufjell <ludwig.thurfjell@gmail.com>
Co-authored-by: Norbert Nagy <nagy.norbert1989@gmail.com>
Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* chore(upload-api) Changed api to adhere to standards (#742)

* Msg improve perms (#748)

* replace old create message code and move jobs url

* missed callback

* added permissions to user profile

* updates configs

* updated checks on actve

* some updates

* updates

* changed perms

---------

Co-authored-by: Ludwig Thurfjell <ludwig.thurfjell@gmail.com>

* chore(web) changed support link for pre-prod/prod (#753)

* Chore(profile-api): refactor profile api (#754)

* Added api auth ensureUserCanAccessUser

* added user ids

* updated usages

* updated routes

* updated routes

* added messaging api version

* Singular generic response type (#756)

* singular generic type

* name fix for unclear type

* Feature(api-auth): add logto get access token for Fastify (#750)

* added logto client'

* exported

* renamed

* removed console log

* feat(20015): disable organization selector (#744)

* feat(20015): disable organization selector

* Update

* Refactorization

---------

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* [Payments] Update Logto sdk version (#752)

* chore: update sdk version

* chore: update dependency

* chore: get cached token from route handler

* feat: get token from new methods only

* fix: workaround to cache logto token

* chore: update logto sdk in messaging

* fix: remove params from getPaymentsClient

* fix: reload image at every hit

* chore: reuse env var

* fix: get token from route handler in messaging

* fix: get access token for profile from route handler

* fix: merge conflict

* fix: web build

* chore: remove packages

* chore: add LogtoRefresherComponent

* docs: add comments

* Clean up GET messages (#747)

* pagination remove abstraction clean return type

* fix some types and response body

* fix sdk

* fix namings add utils url fn w simple tests

* dead import

* auth model decided

* sdk and page update

* simplify logic with messages users id

* fix queries and some cleanup

* naming typo

---------

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>

* fix (#759)

* Chore(messaging-api): 20192 - hide private endpoints (#761)

* chore(messaging-api): hidden healthcheck

* hidden template download

* feat: Upload app (#746)

* user id to recipient user id (#763)

* fix(messaging-api): renamed schemas (#765)

* [Payments] Fix login in E2E tests locally run (#762)

* fix: login test fixture

* chore: add EOF

* chore: refactor

* chore: update devServer command

* chore: rename login page

* chore: refactor

* Hide ui generation rather than route schema (#768)

* only hide from ui generation

* comments and clone field thanks Samuele

* Fix(messaging-api): use workaround for enum definitions (#769)

* fix(messaging-api): renamed schemas

* fixed enums for messaging

* use workaround for enums

* use openapi definition yml file

* removed dot

* [Payments] E2E test - manual bank transfer provider creation (#770)

* chore: test manual bank transfer provider creation

* chore: tests

* chore(upload-api) moved healtcheck route (#771)

* Feature(messaging): integrate messaging profile (#757)

* added logto client'

* exported

* renamed

* removed console log

* payments openapi definiton

* added auth factory

* updated sdk

* fixed query index

* added send messages

* managed processMessages method (#760)

* providerId to id (#766)

* [BB landing page] Fix login (#772)

* chore: update env var in sample

* fix: optional org id for logged public servant

* Delete trace of message name (#764)

* drop column and all references

* remove last thrace

---------

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>

* [Payments] E2E test - open banking provider creation (#774)

* chore: test open banking provider creation

* fix: unique provider name per test

* chore: remove file

* chore: recreate file

* [Payments] E2E test - Stripe provider creation (#778)

* chore: move validation error types

* chore: add use case for missing name input

* chore: test stripe provider creation

* chore: fix error name

* chore: refactor

* [Payments] E2E test - Realex provider creation (#779)

* chore: realex provider page

* fixes

* chore: test realex provider creation

* chore: remove comment

* Avoid artifact downloading to speed up validation (#781)

* chore(upload-api) test new sdk api call (#784)

* [Payments] reduce image size (#783)

* chore: remove axios

* chore: add stage to prune dev depencies

* Copied landing pages content in home app (#782)

* copied landing pages content in home app

* WIP

* Reverted change

* fix

* fixed double header

* chore(web) dockerfile size optimization (#790)

* Fix(messaging-api): missing recipient and mandatory organization id (#775)

* fix(messaging-api): use recipient id

* fixed imports

* ensure user id is set

* chore(messaging-api): renamed to recipient user id

* fixed used error

* updated sdks

* Chore(messaging-api): remove search params (#776)

* fix(messaging-api): use recipient id

* fixed imports

* ensure user id is set

* chore(messaging-api): renamed to recipient user id

* fixed used error

* updated sdks

* chore(messaging-api): removed search param

* removed search from sdks

* Feature(messaging-api): improve get message response (#777)

* added fields in response

* updated sdks

* fixed table reference

* Feature(messaging-api): manage confidentiality (#780)

* chore(messaging-api): added security in get message response

* feature(messaging-api): added security levels schema

* security levels schemas

* added migrations

* added migrations

* eof

* Chore(messaging-api): update docs (#786)

* added mandatory descriptions

* Added description for the messages endpoint

* updated messages docs

* updated providers

* updated docs for providers

* normalized metaTemplateId to id

* updated templates docs

* updated docs for message events

* updated errors docs

* updated docs

* updated others

* updated sdks

* Chore(messaging): smaller Docker image (#789)

* updated messaging dockerfile

* Feature(messaging-api): soft delete (#791)

* feature(messaging-api): added soft delete migrations

* added soft delete management in templates index

* Added checks in queries for deleted at

* added delete provider soft delete

* added where deleted at is null to get providers

* added check when sending messages

* chore: move files to subfolder (#793)

* chore(upload-api) new db migrate sub-app (#767)

* Chore(messaging-api): add created by during message creation (#794)

* fix(messaging-api): use recipient id

* fixed imports

* ensure user id is set

* chore(messaging-api): renamed to recipient user id

* fixed used error

* updated sdks

* chore(messaging-api): removed search param

* removed search from sdks

* Feature(messaging-api): improve get message response (#777)

* added fields in response

* updated sdks

* fixed table reference

* Feature(messaging-api): manage confidentiality (#780)

* chore(messaging-api): added security in get message response

* feature(messaging-api): added security levels schema

* security levels schemas

* added migrations

* added migrations

* eof

* Chore(messaging-api): update docs (#786)

* added mandatory descriptions

* Added description for the messages endpoint

* updated messages docs

* updated providers

* updated docs for providers

* normalized metaTemplateId to id

* updated templates docs

* updated docs for message events

* updated errors docs

* updated docs

* updated others

* updated sdks

* Chore(messaging): smaller Docker image (#789)

* updated messaging dockerfile

* Feature(messaging-api): soft delete (#791)

* feature(messaging-api): added soft delete migrations

* added soft delete management in templates index

* Added checks in queries for deleted at

* added delete provider soft delete

* added where deleted at is null to get providers

* added check when sending messages

* feature(messaging-api): added created by user profile id

* create messages with created by

* updated queries

* added during get

* eof

* fixed typo

* fix(upload-api) fixed dockerfile for migrations in upload-api (#797)

* fix(upload-api) fix package.json migrations script (#798)

* [Payments] E2E test edit manual bank transfer provider (#795)

* chore: move files to subfolder

* chore: add provider form component

* chore: add test to edit provider

* chore: test enabling and disabling

* chore: add tests on edge cases

* chore: add tests for iban missing or invalid

* chore: ignore false positive leak for mock iban

* chore: add EOF

* Chore: request id to request (#796)

* fix(messaging-api): use recipient id

* fixed imports

* ensure user id is set

* chore(messaging-api): renamed to recipient user id

* fixed used error

* updated sdks

* chore(messaging-api): removed search param

* removed search from sdks

* Feature(messaging-api): improve get message response (#777)

* added fields in response

* updated sdks

* fixed table reference

* Feature(messaging-api): manage confidentiality (#780)

* chore(messaging-api): added security in get message response

* feature(messaging-api): added security levels schema

* security levels schemas

* added migrations

* added migrations

* eof

* Chore(messaging-api): update docs (#786)

* added mandatory descriptions

* Added description for the messages endpoint

* updated messages docs

* updated providers

* updated docs for providers

* normalized metaTemplateId to id

* updated templates docs

* updated docs for message events

* updated errors docs

* updated docs

* updated others

* updated sdks

* Chore(messaging): smaller Docker image (#789)

* updated messaging dockerfile

* Feature(messaging-api): soft delete (#791)

* feature(messaging-api): added soft delete migrations

* added soft delete management in templates index

* Added checks in queries for deleted at

* added delete provider soft delete

* added where deleted at is null to get providers

* added check when sending messages

* feature(messaging-api): added created by user profile id

* create messages with created by

* updated queries

* added during get

* eof

* fixed typo

* added error handler requestid

* fixed httpr errors naming

* updated in messaging

* chore: test edit open banking provider (#799)

* [20241] Reduce payments api image size (#792)

* chore: remove auth package

* chore: add build script

* chore: add pg types

* chore: update dockerfile

* chore: extend pr template (#800)

* chore: test stripe provider editing (#801)

* [Payments] E2E test Realex provider editing (#802)

* chore: test realex provider editing

* chore: fix header

* feat(upload) Allows upload/download/deletion of files with metadata (#805)

* Chore(messaging-api): update packages (#808)

* updated prod packages

* Updated swagger packages

* updated dev packages

* updated sns usage

* fixed import

* updated packages in root

* updated messaging packages

* fix(web) new preprod feedback banner link (#812)

* Chore: update next to 14.2.5 (#809)

* updated prod packages

* Updated swagger packages

* updated dev packages

* updated sns usage

* fixed import

* updated packages in root

* updated messaging packages

* updated next-intl

* updated next in messaging

* updated next

* Readded README

* readded package lock

* Chore(messaging-api): optimized dockerfile (#810)

* added build for messaging

* improved messaging api image

* eof

* Chore(messaging-api):improve docs (#804)

* added descs in pagination

* fixed generic

* Logto - postLogin redirect (#803)

* redirect with cookies working

* tests working

* eof

* [Payments] E2E test - Inactive payment request creation with manual bank transfer provider (#813)

* chore: test inactive payment request with bank transfer provider

* chore: delete old pages

* fix: fix tests

* chore: move file

* [Payments] E2E test - Active payment request creation with manual bank transfer provider  (#816)

* chore: test inactive payment request with bank transfer provider

* chore: delete old pages

* fix: fix tests

* chore: move file

* chore: test active payment request

* [Payments] E2E test - Active and inactive payment request creation with open banking provider (#817)

* chore: test inactive payment request with bank transfer provider

* chore: delete old pages

* fix: fix tests

* chore: move file

* chore: test active payment request

* chore: test payment request creation with open banking provider

* [Payments] E2E test - Active and inactive payment request creation with Stripe provider (#820)

* chore: test inactive payment request with bank transfer provider

* chore: delete old pages

* fix: fix tests

* chore: move file

* chore: test active payment request

* chore: test payment request creation with open banking provider

* chore: test payment request creation with stripe

* [Payments] E2E test - Active and inactive payment request creation with Realex provider  (#821)

* chore: test inactive payment request with bank transfer provider

* chore: delete old pages

* fix: fix tests

* chore: move file

* chore: test active payment request

* chore: test payment request creation with open banking provider

* chore: test payment request creation with stripe

* chore: add realex tests

* Chore/update aws sdk (#811)

* Chore/under pressure upload api (#814)

* Fix(messaging-api): fixed select users for import id (#824)

* added query for get for import

* fixed query

* removed console log

* Chore(messaging): added authentication do docs (#815)

* added auth

* added auth

* [Payments] E2E tests - payment request creation with multiple providers (#827)

* chore: test successful payment request creation with multiple providers

* chore: test edge cases

* chore: comment

* 20092 e2e payment request fixture (#828)

* feat(20092): e2e payment request fixtures

* update

* Update

* update

* feat(20093): e2e edit payment requests (#830)

* feat(20093): e2e test edit payment request

* update

* update

* Update

* [Payments] E2E test payment request deletion (#832)

* chore: extend tests

* chore: test successful deletion of payment request

* chore: fix

* chore: remove test for inactive status

* Docs(messaging-api): add messaging api markdown docs (#825)

* Added messaging docs markdown file

* Updated docs

* fix(20445): listing inactive payment requests (#834)

* fix(20445): listing inactive payment requests

* Update

---------

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* fixed perms (#836)

* Move pipeline steps to templates repository (#807)

* Move gitleaks to template

* Move service builds to use pipeline templates' repo

* Move push to ECR to templates repo

* Use deploy to ECS step from pipeline templates repo

* Fix dependencies download missing

* Use pattern when building dependencies

* Download dependencies when building services

* Remove separate dependency download

* Add flag to enable dependency download

* Align artifact name with its docker image

* Test without downloadDependencies flag

* Remove unused templates in favour of using templates from the repo

* [Payments] E2E - test transaction with manual bank transfer (#835)

* chore: switch login - temporary solution

* chore: close new tabs once done

* chore: fix tabs closed

* chore: add shared component

* chore: add worker scoped fixture to log in with citizen

* chore: add component for payment method form

* chore: pay page

* chore: rename worker fixture to auth

* chore: add forgotten file

* chore: fixture for citizen pages with separate context

* chore: visit page from fixture

* chore: choose payment

* chore: test transaction execution

* chore: remove import

* feat(20102): e2e testing payments landing page (#838)

* feat(20102): e2e testing payments landing page

* update

* update

* update

---------

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* 404 if no event found (#841)

* Test(messaging-api): adding bruno tests (#833)

* started adding bruno tests

* removed duplicated start app log

* added user import tests

* added 404 requests

* added templates tests

* Added users tests

* fixed active only

* added users requests

* Added non-active apis

* updated values

* removed unused organisation id query string

* added get users for import

* Added basic token

* Update apps/messaging-api/routes/users/index.ts

Co-authored-by: Norbert Nagy <nagy.norbert1989@gmail.com>

* fixed

* updated check in tests

---------

Co-authored-by: Norbert Nagy <nagy.norbert1989@gmail.com>

* fix postlogin redirect (#842)

* chore: add smaller fixtures for payment requests (#840)

* Feat/improve scanning (#819)

* [Payments] transaction fixture (#843)

* chore: switch login - temporary solution

* chore: close new tabs once done

* chore: fix tabs closed

* chore: add shared component

* chore: add worker scoped fixture to log in with citizen

* chore: add component for payment method form

* chore: pay page

* chore: rename worker fixture to auth

* chore: add forgotten file

* chore: fixture for citizen pages with separate context

* chore: visit page from fixture

* chore: choose payment

* chore: test transaction execution

* chore: remove import

* chore: export generic citizen page as fixture

* chore: fix type

* chore: add transaction fixture

* feat(upload) Allow only admin to upload files (#844)

* chore(build) changed building-blocks-sdk to ESM (#845)

* Fix pagination link utils to preserve search query (#847)

* use URL to preserve search queries on url

* fix string URL type mismatch

* Draft: Chore/fix messaging api (#848)

* chore(build) changed building-blocks-sdk to ESM

* chore(build) changed building-blocks-sdk to ESM

* fix dockerfile

* chore(messaging-api) fix messaging-api build

* changed messaging-api build process

* fixed messaging build

---------

Co-authored-by: Ludwig Thurfjell <ludwig.thurfjell@gmail.com>

* make sure to build sdk as well since its in the monorepo (#850)

* feat(20094): e2e test delete payment request part 2 (#846)

* feat(20094): e2e test delete payment request part 2

* update

* [Payments] E2E test open banking transaction (#852)

* chore: set up initial flow

* chore: add annoying package

* chore: add loader

* chore: add error message

* chore: test completed transaction

* chore: add comments

* chore: test deletion tooltip (#855)

* chore(openapi) fix path for generating ts-clients (#857)

* chore: use referenceCode to get unique transaction (#856)

* reorganise tests and added some functionality tests (#853)

* feat(20100): e2e org switching (#851)

* feat(20100): e2e org switching

* Update

* Update

* Update

* update

* [Payments] E2E additional openbanking transaction use cases (#859)

* chore: test auth failure

* chore: test payment rejected

* chore: update to new fixtures

* fix/messaging-api-url-fix (#863)

* 20084 e2e pay stripe (#858)

* feat(20084): e2e pay stripe

* Update

* Update

* Update

* chore: handle tl transaction status (#861)

* Unit test messaging providers endpoints (#860)

* sms email create unit tests and fixes

* create and update schema covered

* get one many and delete

* main title update

* fix(20505): maximum amount validation fix (#865)

* fix(20505): maximum amount validation fix

* Update

* Feat/add org to upload api (#854)

* Add bearer security check (#647)

* Upgrade gitleaks runner

* Add Bearer check for PRs only

* Ignore Bearer fails until issues flagged get fixed, so we don't block PRs

* Define vmImage consistently as a parameter, per stage, not per job.

* Add commands to run reports locally

* Bearer specific documentation added on Readme

* Add new line to end of file

* Ignoring false positive on Bearer

* Move security reports off package.json

* fix pwd call on makefile

* included new false positive

* Comment added to ignored finding

* Remove hability to merge when Bearer finds Critial or High issues

* removed SSRF alert

* Merge branch 'dev' into fix/db-create-sanitize

* fix/create-db-script-santize

* Fix by ignoring false positives

* fixed hash value ignore file

* fixed false positives

* fixed ignore file

---------

Co-authored-by: alfonsograziano <alfonsohack0019@gmail.com>
Co-authored-by: Francesco Maida <francesco.maida@nearform.com>

* change type to string with regexp to match no coercion (#867)

* chore(file-explorer) Added few translations (#869)

* feat(20087): e2e citizen transaction pages (#864)

* feat(20087): e2e citizen transaction pages

* Update

* Messaging API messaging schema api unit tests (#870)

* tests and schema updates for /messages

* fix type issues

* Feat/upload api file sharing (#868)

* fix(explorer-api) Allow files with no owner (#873)

* fix(explorer-api) Fix usersdata missing (#874)

* fix(upload-api) Users data fallback (#875)

* Chore/better error handling explorer api (#877)

* feat(20780): analytics integration into payments (#871)

* feat(20780): analytics integration into payments

* Update docker file

* Update

* Fix message api get users query type (#878)

* change from bool to string type api schema

* stringify query params in sdk

* fix messaging-build

* dockerfile fix

* fix timeline api

* upload-api dockerfile fix

* authservice dockerfile fix

---------

Co-authored-by: Francesco Maida <francesco.maida@nearform.com>

* fix(explorer-api) fix missing connection release (#879)

* [Payments] E2E - transactions with Realex (#872)

* chore: add env vars

* chore: use env vars values to create realex provider

* chore: test payer data

* chore: fix payer data flow

* chore: test card data step

* chore: fix query

* fix: transaction status update

* chore: test successful transaction

* chore: setup ngrok to test redirection

* chore: test failed transaction with realex

* chore: refactor

* chore: move file to temp dir

* chore: sanitaze and validate path

* chore: validate filename with switch

* chore: hardcode filename

* chore: sanitize filename

* chore: add env vars

* chore: remove deleted file from gitignore

* chore: fix tests editing realex provider

* feat(20776): create audit log events db table (#881)

* feat(20776): create audit log events db table

* Update

* support for running in CI (#886)

* [Payments] Fix post login redirect on pay page (#885)

* chore: add encoded search params to redirect url

* fix: ts error

* Feat/explorer users lookup (#880)

* fix(explorer) Profile read permission (#889)

* bruno tests and fixes (#890)

* [Payments] Fix TrueLayer access token expiration (#887)

* fix: avoid caching request

* chroe: add comment

* feat(20777): audit logs page (#892)

* feat(20777): audit logs page

* Update

* Feat/shared files table (#888)

* Feat/share file api (#893)

* Fix(messaging): 20450 - id in get users (#896)

* fix(messaging-api): fixed type definitions

* updated sdks

* fixed in messaging

* updated bruno tests

* chore(profile-api) Chaged email lookup behavior for profile-api (#898)

* feat(20782): filter audit logs (#894)

* feat(20782): filter audit logs

* update

* unit tests e2e fixes schema fixes col drop migration (#895)

* all e2e tests use the same command to run in ci (#897)

* all e2e tests use the same command to run in ci

* Handling test results folder

* Update documentation/docs/testing.md

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* add missing newline

* revert previous commit

* missing newline

---------

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* [Payments] audit log event detail page (#899)

* feat(20777): audit logs page

* chore: add audit log details api

* chore: page skeleton

* chore: fix after merge

* chore: show event data

* chore: remove comment

* chore: check org id in audit log

* chore: fix

* chore: use generic response wrapper

* fix: fix after conflicts resolution

* chore: fix conflicts

* chore: move org id check in query

---------

Co-authored-by: Norbert Nagy <norbert.nagy@nearform.com>

* Fix messaging template UI (#902)

* fix data fetching and adjust for changed variables

* fix lang types

* chore: add json viewer component (#904)

* Fix(messaging-api): 20446 - id in get events (#900)

* fix(messaging-api): eventId to id in definition

* Fixed message events in UI

* updated bruno

* fixed template id

* feat(20778): add audit log events (#903)

* feat(20778): add audit log events

* Remove console log

* chore(explorer) Cleanup and tests (#901)

* Fix(messaging-api): 20447 - user imports fix, from importId to id (#905)

* fix(messaging-api): eventId to id in definition

* Fixed message events in UI

* updated bruno

* fixed template id

* fixed template id

* fix(messaging-api): from importId to id in definition

* updated sdks

* fixed in ui

* fixed boolean query string

* updated Bruno

* updated comment

* improved boolean management

* Fix(messaging-api): 20447 - fix metadata for user-imports (#906)

* fix(messaging-api): eventId to id in definition

* Fixed message events in UI

* updated bruno

* fixed template id

* fixed template id

* fix(messaging-api): from importId to id in definition

* updated sdks

* fixed in ui

* fixed boolean query string

* updated Bruno

* updated comment

* fix(messaging-api): added metadata to get user imports

* fixed query

* improved boolean management

* fixed query case

* added tests in bruno

* chore: remove env file (#907)

* filter deleted_at null (#908)

* 20101 e2e inactive public servant (#909)

* feat(20101): e2e test inactive public servant page

* Update

* update

* Update

* Update

* [Payments] E2E tests - audit logs for provider created (#911)

* chore: test event created - first draft

* chore: extend test

* chore: fix test organizations

* chore: update tests using manual bank transfer provider

* chore: update payment request tests

* chore: remove comment

* chore: update filters method

* chore: add false positive to gitleaksignore

* [Payments] E2E test - audit log for provider update (#914)

* chore: test event created - first draft

* chore: extend test

* chore: fix test organizations

* chore: update tests using manual bank transfer provider

* chore: update payment request tests

* chore: remove comment

* chore: update filters method

* chore: add false positive to gitleaksignore

* chore: test provider update event

* chore: check user id

* cascade replace lang with language (#917)

* Test(messaging-api): added unhappy path for citizen tests (#913)

* feat(messaging-api): added citizen folder

* started adding citizen tests

* Chore(messaging-api): fix pagination - step 1 (#918)

* renamed file

* chore(messaging-api): improved pagination details management

* updated refs

* fixed providers pagination

* fixed pagination in message events

* fixed pagination in messages

* fixed templates pagination

* started adding user imports pagination

* some updates

* updated users pagination

* removed unused apiV1 method

* use accepted types in params.query for provider sdk using booleanish enum (#923)

* fix(explorer-app) Fix error when deleting files from explorer-app (#919)

* chore(explorer) initial batch of e2e for explorer app (#916)

* 21063 add filters to audit logs (#920)

* feat(21063): add user filter

* Update

* Update

* Update

* Update

* Update

* Update

* set strict to true in messaging

* update

---------

Co-authored-by: Samuele Salvatico <samuele.salvatico@nearform.com>

* [Payments] E2E tests - audit logs for payment requests (#921)

* chore: test payment request creation event

* chore: test update payment request event

* chore: test delete payment request event

* chore: test create transaction event

* fix tests

* [Payments] E2E tests -  public servant transaction view and audit logs for transaction updates (#927)

* chore: test payment request creation event

* chore: test update payment request event

* chore: test delete payment request event

* chore: test create transaction event

* fix tests

* chore: test transactions view for public servant

* chore: test transaction update event

* chore: check transaction status on citizen page

* Fix(messaging-api): 21103 - manage m2m sending messages (#926)

* Started updating definition

* Added check in extracted user data to check if it is M2m

* Managed m2m application on direct message sending

* added application id

* managed isM2M application on send invitations

* Added migrations

* insert sender application id

* when getting message, return application id

* made messages able to be get by user id and user profile id

* removed wrong comment

* removed console log

* Chore(messaging-api): remove sender from messages (#930)

* chore(messaging-api): removed sender columns migration

* removed fields from definitions

* sdks

* Fix(message-api): fix pagination - second step (#924)

* fixed organisation settings pagination

* fixed offset missing

* updated sdks

* Fix(messaging-api): return id on imported users (#931)

* return id

* Updated sdks

* create message happy e2e api test (#928)

* wip working with hard coded m2m user info

* import user to send to

* update to dev changes

* remove console log

* Reorganised tests

* feat(21063): add date range filter (#929)

* feat(21063): add date range filter

* Update

---------

Co-authored-by: Sara Zanellato <47299026+peschina@users.noreply.github.com>

* [Payments] E2E tests - audit log filters (#932)

* chore: fix filters locators

* chore: test filter by user

* chore: move dotenv to dev deps

* chore: test filter by action and resource

* chore: test additional filters

* Test(messaging-api) add citizen bruno tests with impersonate (#933)

* feat(messaging-api): added citizen folder

* started adding citizen tests

* temp impersonate stuffs

* some updates

* Added management token requests

* updated with recipient id

* updated citizen profile id

* removed docs

* gitleaks ignore

* chore(scheduler) Implemented build process and optimised dockerfile (#936)

* added verification that item doesnt exist and some assert fixes (#937)

* try fetch deleted template (#938)

* added put test and fixed env var issues (#939)

* fix(messaging-api): boolean cast fixed in csv (#941)

* chore(all) remove unused package locks (#942)

* Messages e2e api tests public servant (#944)

* suites for consents and illegal users

* code review discussion updates

* Chore/scheduler logto m2m (#946)

* chore(scheduler) m2m scheduler permissions

* fixed dockerfile

* added dummy getToken

* Chore(messaging-api): integrate messaging with scheduler sdk (#943)

* feat(messaging-api): get scheduler sdk

* added env keys

* Added keys in config

* added schedule method

* use scheduler sdk

* fixed used org id

* Some updates

* Fixed management

* Updated makefile

* fixed return in scheduler

* removed console import

* fixed bruno

* removed docker scheduler file

* set throw error instead of return

* Update apps/upload-api/src/routes/healthcheck.ts

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>

* Update apps/upload-api/src/routes/healthcheck.ts

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>

* Update apps/upload-api/src/utils/authentication-factory.ts

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>

* added missing env var

---------

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>
Co-authored-by: Samuele Salvatico <samuele.salvatico@nearform.com>

* Feat/explorer scheduled deletion (#922)

* Test(messaging-api): 21303 - e2e user imports (#948)

* fix(messaging-api): fixed test

* updated tests on user import

* updated tests for users import

* added tests for already existent user

* Messages inbox layout (#952)

* add ds npm pkg and create a layout

* comment on main component

* move maintsx and fix params

* Test(messaging-api): 21375 - e2e messages as citizen (#950)

* fix(messaging-api): fixed test

* updated tests on user import

* updated tests for users import

* added tests for already existent user

* removed scheduler commands

* removed wrong params

* fix(messaging-api): fixed e2e env samlpe

* fixed management of check to get messages for other users

* fixed m2m token

* fixed scopes tests

* fixed check on who are requesting messages for

* added check on not exists routes

* added get messages tests

* fixed checks on messages auth

* updated tests for not existent org

* updated tests for not linked org

* pagination tests

* Test(messaging-api): 21404 - e2e messaging api citizen (#951)

* fix(messaging-api): fixed test

* updated tests on user import

* updated tests for users import

* added tests for already existent user

* removed scheduler commands

* removed wrong params

* fix(messaging-api): fixed e2e env samlpe

* fixed management of check to get messages for other users

* fixed m2m token

* fixed scopes tests

* fixed check on who are requesting messages for

* added check on not exists routes

* added get messages tests

* fixed checks on messages auth

* updated tests for not existent org

* updated tests for not linked org

* pagination tests

* updated gitleaks

* fixed not found management

* added patch tests

* fixed seq

* docs(messaging-api): added docs (#935)

* Chore(messaging-api): update user when re-imported (#953)

* fix(messaging-api): start updating map user

* fix update user on reimport

* Test(messaging-api): e2e re-import user tests (#954)

* fix(messaging-api): start updating map user

* fix update user on reimport

* added test to check update after re-import

* Chore(messaging): updated preferred language management (#957)

* chore(messaging-api): added url

* chore(messaging-api): added url

* added preferredLanguage to response

* added preferredLanguage to sdk response

* Updated authentication management on messaging to get profile token

* get the correct language for user

* Fxied suggestions

* fixed return type

* fix logic (#958)

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>

* added missing return (#960)

* fix (#961)

* fixed org id (#962)

* Fix(messaging-api): fixed sending message when already imported (#963)

* fixed webhook url

* removed useless console.log

* fix invitation management

* removed fake data from get user (#964)

* unit tests in pipeline (#945)

* unit tests in pipeline for services

* missing '

* remove non ascii -

* add to dependency build

* message-api test reporter change

* remove replay from test run command

* missing build command and init env

* missing build dependency

* unit tests failing due to build issue

* missing file

* no build option in package.json for profile-api

* run unit tests before build

* Prep for dependencies unit tests in pipeline

* test dependencies

* dependency testing

* parameter name

* pipeline loop issue

* build and test

* change dependency order to match how they build in the make file

* set env for dependencies tests

* skip building block sdk tests for now

* run tests for all dependencies even if one fails

* fixes building blocks-sdk unit tests

* fixes messaging-api unit tests

* reduce number of tests running at the same time

* reduce // test runs

* run messaging api unit tests one at a time

* update timestamp

* Disable failing upload-api unit tests

* add delay to messaging-api healthcheck test

* disable healthcheck test only failing in CI

* revert toi the main branch of pipeline templates

* Messaging API - Message actions route seen/unseen (#965)

* seen and unseen support for messags

* typo

* missed file

* unit test update

* Update apps/messaging-api/src/routes/message-actions/index.ts

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>

---------

Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>

* fix(messaging): updated constraints (#969)

* added migrations (#970)

* chore: remove leftover file from conflicts

* chore: fix leftovers from conflicts

---------

Co-authored-by: William Monteiro <williamwd@users.noreply.github.com>
Co-authored-by: Ludwig Thufjell <ludwig.thurfjell@gmail.com>
Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com>
Co-authored-by: Francesco Maida <francesco.maida@nearform.com>
Co-authored-by: David-Losinski <153720021+David-Losinski@users.noreply.github.com>
Co-authored-by: Norbert Nagy <nagy.norbert1989@gmail.com>
Co-authored-by: Alfonso Graziano <alfonso.graziano@nearform.com>
Co-authored-by: alfonsograziano <alfonsohack0019@gmail.com>
Co-authored-by: Norbert Nagy <norbert.nagy@nearform.com>
Co-authored-by: Samuele Salvatico <samuele.salvatico@nearform.com>
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.

2 participants