Closed Blokh closed 2 months ago
Latest commit: 5d1f3e7b64347f4f8f0bf0bce7d66a355d27eccf
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The changes introduce new functionalities and dependencies to the workflows-service
module, including integrations with Notion and AWS services, rule engine enhancements, and schema updates. Major additions include new services for handling Notion data, risk rules, and a rule engine module. Several tests and existing services were updated to accommodate these enhancements.
File/Path | Change Summary |
---|---|
services/workflows-service/package.json |
Removed ballerine-nestjs-typebox . Added dependencies for Notion, AWS SDK, Sentry, and more. |
services/workflows-service/prisma/data-migrations |
Updated subproject commit references. |
services/workflows-service/src/app.module.ts |
Imported and included RuleEngineModule . |
services/workflows-service/src/env.ts |
Added NOTION_API_KEY to serverEnvSchema . |
services/workflows-service/src/notion.service.ts |
Added NotionService for interacting with Notion API. |
services/workflows-service/src/risk-rule.service.ts |
Added RiskRuleService for managing and validating risk rules. |
services/workflows-service/src/rule-engine/core/... |
Introduced core rule engine functionalities, error handling, operators, schemas, and types. |
services/workflows-service/src/rule-engine.module.ts |
Created RuleEngineModule with RuleEngineService and RuleStoreService providers. |
services/workflows-service/src/rule-engine.service.ts |
Added RuleEngineService with a method to execute rules on form data. |
services/workflows-service/src/workflow/workflow.service.ts |
Updated WorkflowService to include RuleEngineService and RiskRuleService . |
apps/kyb-app/src/components/organisms/.../PageResolver.tsx |
Moved import statement for pageResolverContext . |
apps/kyb-app/src/components/organisms/.../array.insertion-strategy.ts |
Adjusted handling of pickFrom values in ArrayInsertionStrategy class. |
apps/kyb-app/src/components/organisms/.../types.ts |
Modified InsertionSchema type to allow strings or arrays of strings. |
services/workflows-service/prisma/migrations/.../migration.sql |
Added migration script to alter "UiDefinition" table by adding a JSONB locales column. |
services/workflows-service/prisma/schema.prisma |
Adjusted relationships and data types in various models. |
services/workflows-service/src/collection-flow/... |
Added RuleEngineModule import and updated method signatures and parameters. |
services/workflows-service/src/end-user/dtos/end-user-update.ts |
Updated EndUserUpdateDto class to include new properties with validation decorators. |
services/workflows-service/src/providers/translation/... |
Updated TranslationService handling and resource management. |
services/workflows-service/src/end-user/end-user.controller.external.intg.test.ts |
Added imports for RiskRuleService , RuleEngineService , and NotionService . |
services/workflows-service/src/workflow/... |
Added imports for RiskRuleService , RuleEngineService , and NotionService in various test files. |
sequenceDiagram
participant Client
participant NotionService
participant RiskRuleService
participant RuleEngineService
Client->>NotionService: Request database records
NotionService->>Client: Return records
Client->>RiskRuleService: Fetch and validate risk rules
RiskRuleService->>Client: Return validated rules
Client->>RuleEngineService: Execute rules on form data
RuleEngineService->>Client: Return rule execution results
In the codebase deep and wide,
New Notion connections now reside.
AWS tools lend a hand,
To store and fetch on command.
Rules and risks we now can see,
Enhanced with logic, joyous and free.
Celebrate, dear coders, with glee! 🎉🐇
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
ballerine-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 11, 2024 11:24am |
Bal 2130 epic rule engine
Summary by CodeRabbit
New Features
Enhancements
EndUserUpdateDto
with new fields for detailed user information.Bug Fixes
Database
Testing