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

[IPCT1-743] - use the graph subscriptions to add notification #320

Merged
merged 2 commits into from
Jul 6, 2022

Conversation

dev-jotape
Copy link
Collaborator

This PR fixes [IPCT1-743] at https://impactmarket.atlassian.net/browse/IPCT1-743

Changes

use the graph subscription to add notification.

Tests

@dev-jotape dev-jotape requested a review from vibern0 June 21, 2022 18:19
@dev-jotape dev-jotape marked this pull request as ready for review June 21, 2022 18:19
@sonarcloud
Copy link

sonarcloud bot commented Jun 21, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Comment on lines +33 to +37
where: {
startDayId_gte: ${
(new Date().getTime() / 1000 / 86400) | 0
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

won't this make users get notified twice if the server is restarted?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as there is no DateTime field, only the day, just below there is a check to see if there is already a notification created for the community, just to avoid a situation like this of the server restarting and users being notified of the communities opened today

@dev-jotape dev-jotape requested a review from vibern0 July 5, 2022 20:25
@vibern0 vibern0 merged commit 5f80e32 into main Jul 6, 2022
@vibern0 vibern0 deleted the thegraph-subscription branch July 6, 2022 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants