Feature/org slash rate analytics#969
Open
wonderfulmarv01 wants to merge 4 commits into
Open
Conversation
- Implemented GET /api/orgs/:orgId/analytics/risk endpoint to retrieve risk metrics for organizations. - Added logic to calculate slash rate and capital at risk based on vault data. - Introduced new OrgRiskAnalyticsVault and OrgRiskAnalyticsResponse interfaces for structured data handling. - Created unit tests to validate the new endpoint functionality and ensure accurate metric calculations.
…atureFlags, and soroban
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #713
Fix Merge Conflict Resolutions & Restore Organization Analytics Tests
Overview
This PR resolves several incorrect merge conflict resolutions and syntax errors in the codebase, ensuring that the project compiles correctly and the organization-scoped slash-rate and capital-at-risk analytics tests can run and pass.
Changes
handlers.ts
: Removed a stray backtick from the 'vault.reconcile' key and a stray closing brace } that was prematurely terminating the handlers object.
types.ts
: Added the missing closing parenthesis ) for the 'vault.reconcile' case statement.
featureFlags.ts
: Added the missing catch block to the try block in the getFlag function's organization-specific flag lookup.
soroban.ts
: Removed a duplicate closing brace } to properly close the createDefaultSorobanClient arrow function.
2. Dependency Management
package.json
: Added argon2 to dependencies to resolve a missing package error that was blocking the test execution.
Verification & Testing
Organization Analytics Risk Tests:
bash
bun test src/tests/orgAnalytics.risk.test.ts
Result: Passed (3/3 tests passed) in