Skip to content
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: push notifications #28

Merged
merged 35 commits into from
Jan 8, 2025
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
b99c6c4
feat: add fcm module initial apis
sairanjit Sep 13, 2023
e8a0a6e
refactor: fcm message handlers
sairanjit Sep 18, 2023
9611cfc
feat: add firebase config and send notifications using firebase cloud…
sairanjit Sep 20, 2023
0075e18
fix: update old fcm record if device token is updated
sairanjit Sep 21, 2023
54d6285
fix: add apns config while sending notifications
sairanjit Sep 22, 2023
44eb696
refactor: add send notification method to service
sairanjit Sep 22, 2023
bedb00f
refactor: skip sending notification if connection is active
sairanjit Sep 22, 2023
ecf3c15
feat: added fcm notification module
Jan 11, 2024
6e15546
refacor: remove the unnecessary module and added validations in notif…
Jan 12, 2024
6eddaa5
refcator: remove the unnecessary firebase-admin package and module
Jan 12, 2024
c71eab1
private the process notification function
Jan 12, 2024
57b3841
Merge pull request #3 from credebl/feat/notification-fcm
sairanjit Feb 19, 2024
f4eefb2
refactor: upgrade credo to version 0.5.3
sairanjit May 24, 2024
41fa64e
feat: add patch for message type
sairanjit May 24, 2024
3275990
refactor: update label
sairanjit May 27, 2024
bb20a89
Merge pull request #6 from credebl/feat/upgrade-051
amitpadmani-awts May 27, 2024
fd371ac
fix: imports for routing events
sairanjit May 27, 2024
e92bf71
Merge pull request #8 from credebl/fix/imports
amitpadmani-awts May 27, 2024
1f84915
fix: add dotenv to dependencies
sairanjit May 27, 2024
b67de3e
Merge pull request #9 from credebl/fix/dotenv-package
KulkarniShashank May 27, 2024
03606af
fix: backup storage
sairanjit May 27, 2024
bcd4db0
Merge pull request #10 from credebl/fix/backup-storage
sairanjit May 27, 2024
3a5cd2d
fix: docker file patches
sairanjit May 27, 2024
46e0777
Merge pull request #11 from credebl/fix/dockerfile-patches
KulkarniShashank May 27, 2024
ab6dddf
chore: upgrade dependencies
sairanjit Jun 28, 2024
5980086
ci: update node version
sairanjit Jun 28, 2024
021e0ac
refactor: added logs
sairanjit Jul 15, 2024
3a78132
Merge pull request #16 from credebl/chore/upgrade-deps
amitpadmani-awts Jul 15, 2024
e454a98
Compass.yml file for config-as-code
atlassian-compass[bot] Oct 30, 2024
592881a
Merge pull request #20 from credebl/compass-github-importer
ajile-in Oct 30, 2024
bd1966a
refactor: cleanup custom logic
sairanjit Dec 20, 2024
67df61f
refactor: env value
sairanjit Dec 20, 2024
0aaa371
fix: build
sairanjit Dec 20, 2024
3f64f7f
chore(deps): update dependencies
ankita-p17 Dec 20, 2024
b3aee8e
refactor: remove compass.yml file
sairanjit Jan 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: added logs
Signed-off-by: Sai Ranjit Tummalapalli <[email protected]>
sairanjit committed Jul 15, 2024
commit 021e0ac60bc520241d647beea17ffdc364888f97
4 changes: 4 additions & 0 deletions src/storage/StorageMessageQueue.ts
Original file line number Diff line number Diff line change
@@ -42,6 +42,8 @@ export class StorageServiceMessageQueue implements MessagePickupRepository {

const messageRecords = await this.messageRepository.findByConnectionId(this.agentContext, connectionId)

this.agentContext.config.logger.debug(`Found ${messageRecords.length} messages for connection ${connectionId}`)

return messageRecords.length
}

@@ -101,6 +103,8 @@ export class StorageServiceMessageQueue implements MessagePickupRepository {
public async removeMessages(options: RemoveMessagesOptions) {
const { messageIds } = options

this.agentContext.config.logger.debug(`Removing message ids ${messageIds}`)

const deletePromises = messageIds.map((messageId) =>
this.messageRepository.deleteById(this.agentContext, messageId)
)