-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: allow sending alerts to another account #179
Conversation
ALERT_MANAGER_REGION, | ||
ALERT_MANAGER_TOPIC, | ||
} = process.env; | ||
|
||
const QUEUE_URL = `https://sqs.${ALERT_MANAGER_REGION}.amazonaws.com/${ACCOUNT_ID}/${ALERT_MANAGER_TOPIC}`; | ||
const account_id = ALERT_MANAGER_ACCOUNT_ID || ACCOUNT_ID; |
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.
suggestion(non-breaking): Add a comment or another more visible documentation informing that, if the ALERT_MANAGER_ACCOUNT_ID
is not informed, the wallet service's own ACCOUNT_ID
will be used as default to reach the Alert Manager.
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.
Added in 967ddb2.
* chore: deploy Nano Testnet (#168) * fix: fetchMinRewardBlocks fails when reward_min_blocks is 0 (#177) * fix: handle tx with no inputs and outputs (#178) * chore: added NODE_ENV to integration tests * fix: stop failing when there are no address balance on a transaction * tests: added tests for the voidTransaction method * chore: re-add test_images_down * feat: allow sending alerts to another account (#179) * fix: handle tx with no inputs (#181) * tests: added tests for the voidTransaction method * chore: re-add test_images_down * fix: markUtxosAsVoided should not throw when inputs are empty * fix: returning empty object on db utils and added test for services including db * tests: fix invalid order of calls * tests: missing tests [part 1/2] (#183) * tests: added missing tests * tests: added missing tests for nft push * chore: added docker-compose to flake * tests: ts-ignore -> ts-expect-error * feat: handling the vertex_removed event (#182) * feat: handling the vertex_removed event * fix: handling empty arrays on IN conditions * feat: handling VERTEX_REMOVED event * tests: fix last event * feat: voiding and removing transaction on vertex_removed event * tests: added tests for empty array errors * chore: using port 8085 * chore: actually using 8085 * refactor: removed misleading comment * ci: support sub-accounts (#184) * fix: non-standard scripts (#185) * fix: handling utxos with empty scripts being spent * refactor: helper to roll until an event * chore: using latest :stable on custom and empty script docker compose * refactor: removed unused logs * chore: using fixed dependencies for all projects (#186) * fix: updated balances and network name (#196) * fix: updated throttling lib causing deploy to fail (#195) * fix: updated firebase-admin lib version and deprecated sendMulticast (#194) * fix: updated firebase-admin lib version and deprecated sendMulticast * fix: tests mocking sendMulticast instead of the correct method * fix: slow address generation (#199) * chore: bumped to v1.6.3 (#200) --------- Co-authored-by: Luis Helder <[email protected]>
Motivation
We need to send alerts from wallet-service Lambdas running in separate AWS sub-accounts
Acceptance Criteria
Deploy
nano-testnet
) after mergingChecklist
master
, confirm this code is production-ready and can be included in future releases as soon as it gets merged