-
-
Notifications
You must be signed in to change notification settings - Fork 60
chore: remove exported tests #1760
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
Conversation
gfyrag
commented
Apr 2, 2025
- feat(events): fix generated files and add payments v3 events (feat(events): fix generated files and add payments v3 events #1758)
- chore: remove exported tests
WalkthroughThis pull request modifies the event processing in Changes
Sequence Diagram(s)sequenceDiagram
participant AF as Async Function
participant EL as Event Loop
participant Log as Console Logger
participant WF as File Writer
AF->>EL: Iterate through each event
loop For each event
EL->>EL: Re-parse `base` from event payload
end
EL->>AF: Update aggregated object
AF->>Log: Log aggregated object
AF->>WF: Write aggregated data to file
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
libs/events/index.js (1)
26-26: Consider if this debug output is appropriate for productionThe added console log will output the entire aggregated object, which could be problematic in production:
- May generate excessive log output for large services
- Could impact performance when processing many events
- Potentially exposes sensitive data in logs
- console.log(aggregated); + // For debugging purposes only + // console.log(aggregated);Alternatively, consider limiting this to development environments or adding more context:
- console.log(aggregated); + console.log('Writing aggregated events to file...', + Object.keys(aggregated).map(s => `${s}: ${Object.keys(aggregated[s]).length} versions`));
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (23)
libs/events/generated/all.jsonis excluded by!**/generated/**,!**/*.json,!**/generated/**libs/events/generated/payments/v2.0.0/CONNECTOR_RESET.jsonis excluded by!**/generated/**,!**/*.json,!**/generated/**libs/events/generated/payments/v3.0.0/CONNECTOR_RESET.jsonis excluded by!**/generated/**,!**/*.json,!**/generated/**libs/events/generated/payments/v3.0.0/DELETED_POOL.jsonis excluded by!**/generated/**,!**/*.json,!**/generated/**libs/events/generated/payments/v3.0.0/SAVED_ACCOUNT.jsonis excluded by!**/generated/**,!**/*.json,!**/generated/**libs/events/generated/payments/v3.0.0/SAVED_BALANCE.jsonis excluded by!**/generated/**,!**/*.json,!**/generated/**libs/events/generated/payments/v3.0.0/SAVED_BANK_ACCOUNT.jsonis excluded by!**/generated/**,!**/*.json,!**/generated/**libs/events/generated/payments/v3.0.0/SAVED_PAYMENT.jsonis excluded by!**/generated/**,!**/*.json,!**/generated/**libs/events/generated/payments/v3.0.0/SAVED_PAYMENT_INITIATION.jsonis excluded by!**/generated/**,!**/*.json,!**/generated/**libs/events/generated/payments/v3.0.0/SAVED_PAYMENT_INITIATION_ADJUSTMENT.jsonis excluded by!**/generated/**,!**/*.json,!**/generated/**libs/events/generated/payments/v3.0.0/SAVED_PAYMENT_INITIATION_RELATED_PAYMENT.jsonis excluded by!**/generated/**,!**/*.json,!**/generated/**libs/events/generated/payments/v3.0.0/SAVED_POOL.jsonis excluded by!**/generated/**,!**/*.json,!**/generated/**libs/events/services/payments/v2.0.0/CONNECTOR_RESET.yamlis excluded by!**/*.yamllibs/events/services/payments/v3.0.0/CONNECTOR_RESET.yamlis excluded by!**/*.yamllibs/events/services/payments/v3.0.0/DELETED_POOL.yamlis excluded by!**/*.yamllibs/events/services/payments/v3.0.0/SAVED_ACCOUNT.yamlis excluded by!**/*.yamllibs/events/services/payments/v3.0.0/SAVED_BALANCE.yamlis excluded by!**/*.yamllibs/events/services/payments/v3.0.0/SAVED_BANK_ACCOUNT.yamlis excluded by!**/*.yamllibs/events/services/payments/v3.0.0/SAVED_PAYMENT.yamlis excluded by!**/*.yamllibs/events/services/payments/v3.0.0/SAVED_PAYMENT_INITIATION.yamlis excluded by!**/*.yamllibs/events/services/payments/v3.0.0/SAVED_PAYMENT_INITIATION_ADJUSTMENT.yamlis excluded by!**/*.yamllibs/events/services/payments/v3.0.0/SAVED_PAYMENT_INITIATION_RELATED_PAYMENT.yamlis excluded by!**/*.yamllibs/events/services/payments/v3.0.0/SAVED_POOL.yamlis excluded by!**/*.yaml
📒 Files selected for processing (6)
libs/events/index.js(2 hunks)tests/integration/suite/auth-client-credentials.go(0 hunks)tests/integration/suite/auth-jwt-bearer.go(0 hunks)tests/integration/suite/wallets-create.go(0 hunks)tests/integration/suite/wallets-credit.go(0 hunks)tests/integration/suite/wallets-debit.go(0 hunks)
💤 Files with no reviewable changes (5)
- tests/integration/suite/auth-client-credentials.go
- tests/integration/suite/wallets-create.go
- tests/integration/suite/wallets-credit.go
- tests/integration/suite/auth-jwt-bearer.go
- tests/integration/suite/wallets-debit.go
🔇 Additional comments (1)
libs/events/index.js (1)
15-15: Improved isolation by parsing base for each eventMoving
yaml.parse(rawBase)into the innermost loop ensures each event gets a fresh copy of the base object. This prevents potential side effects where modifications from one event could affect subsequent events.