Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* IME-156 Integration tests - Populate MongoDB * Add skeleton for integration tests. * Put tests in one file to avoid duplication. * Improve on the errors seen in the graphql schema implementation. * Check for null on loaders. * Transfer resource error fixes * Update Integration tests. * Remove central-ledger prisma files and cacheMiddleWare * Update eventStore.prisma file and add transaction.prisma * Update mongodb connection * Add eventstore schema for testing changes * Update Transfer for new model * Add db connection for transaction collection * update: transaction.prisma model types * fix ime-271 fix transaction query * fix ime-271 payerParty and payeeParty data not showing * initial commit * fix: ime-275 - Fixed issue where null data was returned in the GraphQL `transfers` query output. - Created Prisma schema types for MongoDB embedded document JSON objects to correctly map transaction data. - Defined `Transaction` object type in the GraphQL schema. - Added a new `getAllTransfers` query to fetch multiple transfer records with pagination support (limit and offset). * create: base tranferSummary query without filter * fix: deployment test case failure issue - Fixed test case failing due to some code still having dependency on central ledger * update: transferSummary query add filter * Fix: filters wrong result - Added helper functions to generate dynamic where and group conditions based on filter input. - Fixed issue with errorCode returning null in query response. * Add integration tests * Fix/ime 268 no data (#34) * add: transfer filter to transfer resource - Added helper functions to generate dynamic where condition based on filter input. - Added filter to transfer resource - Rename query name transfers and getAllTransfers to transfer and transfers * update: transfer summary query * update: transfers pagination default limit * Fix/ime 268 no data (#35) * add: transfer filter to transfer resource - Added helper functions to generate dynamic where condition based on filter input. - Added filter to transfer resource - Rename query name transfers and getAllTransfers to transfer and transfers * update: transfer summary query * update: transfers pagination default limit * Fix: integration test * Fix: integration test error --------- * Update audit check run. * Fix bug with audit check run. * Fix bug with audit check run, add a few whitelist items with severity high * Fix bug with audit check run, add a few whitelist items with severity high * Update whitelist. * Fix/ime 268 no data (#37) * add: transfer filter to transfer resource - Added helper functions to generate dynamic where condition based on filter input. - Added filter to transfer resource - Rename query name transfers and getAllTransfers to transfer and transfers * update: transfer summary query * update: transfers pagination default limit * Fix: integration test * Fix: integration test error * Fix: bug int cannot represent non-integer value -Use scalar type [dateTimeFlex,BigInt] * update: transfer query to add events fields -Added quoteEvents field to transfer resource -Added transferEvents field to transfer resource -Added partyLookupEventsfield to transfer resource -Added settlementEvents to transfer resource * fix: transfer filter bug transfers query was returning less no of transfers documents than it was existing * update: transaction schema and query according to new schema * fix: conversion state filter * fix: transfers object conversion error when no data returned for query * create: resolver for fxTransferEvents and fxQuoteEvents lookup * create: settlement resource prisma model * create: settlement resource query * add: conversionSettlementBatchId and transferSettlementBatchId lookup to transfer --------- * Fix/lint errors (#38) * add: transfer filter to transfer resource - Added helper functions to generate dynamic where condition based on filter input. - Added filter to transfer resource - Rename query name transfers and getAllTransfers to transfer and transfers * update: transfer summary query * update: transfers pagination default limit * Fix: integration test * Fix: integration test error * Fix: bug int cannot represent non-integer value -Use scalar type [dateTimeFlex,BigInt] * update: transfer query to add events fields -Added quoteEvents field to transfer resource -Added transferEvents field to transfer resource -Added partyLookupEventsfield to transfer resource -Added settlementEvents to transfer resource * fix: transfer filter bug transfers query was returning less no of transfers documents than it was existing * update: transaction schema and query according to new schema * fix: conversion state filter * fix: transfers object conversion error when no data returned for query * create: resolver for fxTransferEvents and fxQuoteEvents lookup * create: settlement resource prisma model * create: settlement resource query * add: conversionSettlementBatchId and transferSettlementBatchId lookup to transfer * fix: lint errors * Update two packages with high severity: body-parser <1.20.3 & path-to-regexp <0.1.10 They will need to be updated. --------- * Fix/lint errors (#39) * add: transfer filter to transfer resource - Added helper functions to generate dynamic where condition based on filter input. - Added filter to transfer resource - Rename query name transfers and getAllTransfers to transfer and transfers * update: transfer summary query * update: transfers pagination default limit * Fix: integration test * Fix: integration test error * Fix: bug int cannot represent non-integer value -Use scalar type [dateTimeFlex,BigInt] * update: transfer query to add events fields -Added quoteEvents field to transfer resource -Added transferEvents field to transfer resource -Added partyLookupEventsfield to transfer resource -Added settlementEvents to transfer resource * fix: transfer filter bug transfers query was returning less no of transfers documents than it was existing * update: transaction schema and query according to new schema * fix: conversion state filter * fix: transfers object conversion error when no data returned for query * create: resolver for fxTransferEvents and fxQuoteEvents lookup * create: settlement resource prisma model * create: settlement resource query * add: conversionSettlementBatchId and transferSettlementBatchId lookup to transfer * fix: lint errors * Update two packages with high severity: body-parser <1.20.3 & path-to-regexp <0.1.10 They will need to be updated. * Fix: unit test , remove unnecessary import --------- * Fix: IAC deployment issue (#40) * add: transfer filter to transfer resource - Added helper functions to generate dynamic where condition based on filter input. - Added filter to transfer resource - Rename query name transfers and getAllTransfers to transfer and transfers * update: transfer summary query * update: transfers pagination default limit * Fix: integration test * Fix: integration test error * Fix: bug int cannot represent non-integer value -Use scalar type [dateTimeFlex,BigInt] * update: transfer query to add events fields -Added quoteEvents field to transfer resource -Added transferEvents field to transfer resource -Added partyLookupEventsfield to transfer resource -Added settlementEvents to transfer resource * fix: transfer filter bug transfers query was returning less no of transfers documents than it was existing * update: transaction schema and query according to new schema * fix: conversion state filter * fix: transfers object conversion error when no data returned for query * create: resolver for fxTransferEvents and fxQuoteEvents lookup * create: settlement resource prisma model * create: settlement resource query * add: conversionSettlementBatchId and transferSettlementBatchId lookup to transfer * fix: lint errors * Update two packages with high severity: body-parser <1.20.3 & path-to-regexp <0.1.10 They will need to be updated. * Fix: unit test , remove unnecessary import * update: set transferSettlementWindowId nullable -- set transferSettlementBatchId null when transferSettlementWindowId is null -- set conversionSettlementBatchId null when conversionSettlementWindowId is null --------- * chore: fix audit * Fix/iac deployment issue (#41) * add: transfer filter to transfer resource - Added helper functions to generate dynamic where condition based on filter input. - Added filter to transfer resource - Rename query name transfers and getAllTransfers to transfer and transfers * update: transfer summary query * update: transfers pagination default limit * Fix: integration test * Fix: integration test error * Fix: bug int cannot represent non-integer value -Use scalar type [dateTimeFlex,BigInt] * update: transfer query to add events fields -Added quoteEvents field to transfer resource -Added transferEvents field to transfer resource -Added partyLookupEventsfield to transfer resource -Added settlementEvents to transfer resource * fix: transfer filter bug transfers query was returning less no of transfers documents than it was existing * update: transaction schema and query according to new schema * fix: conversion state filter * fix: transfers object conversion error when no data returned for query * create: resolver for fxTransferEvents and fxQuoteEvents lookup * create: settlement resource prisma model * create: settlement resource query * add: conversionSettlementBatchId and transferSettlementBatchId lookup to transfer * fix: lint errors * Update two packages with high severity: body-parser <1.20.3 & path-to-regexp <0.1.10 They will need to be updated. * Fix: unit test , remove unnecessary import * update: set transferSettlementWindowId nullable -- set transferSettlementBatchId null when transferSettlementWindowId is null -- set conversionSettlementBatchId null when conversionSettlementWindowId is null * update: resolver for events lookup * update: events resolver to use dataloaders * add: helper function for event resolver * remove: unused graphql schema and queries * update: remove unused mongoclient * refactor: dataloaders * chore:add ts-ignore to context.ts and index.ts * fix: lint issues --------- * update: .gitignore * chore: remove dist directory Remove the dist/ directory * update: package.json , remove unused line Assuming it is not used anywhere --------- Co-authored-by: Nguni <[email protected]> Co-authored-by: Madalitso Simbeye <[email protected]> Co-authored-by: v3-Panwar-Ujjwal <[email protected]> Co-authored-by: Akhilesh Rawat <[email protected]> Co-authored-by: Ujjwal-Izyane <[email protected]>
- Loading branch information