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

#343 feat(domain) Aggregation Resilience #345

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

johnmasking
Copy link
Member

Fixes #

Changes proposed in this pull request:

  • robust get recent Notifications
  • robust explore posts
  • robust get all posts
  • robust get all posts for creator
  • robust get all posts for following
  • robust get all reactions for post
  • robust get all notifications

@MaskingTechnology/comify

@johnmasking johnmasking linked an issue Oct 28, 2024 that may be closed by this pull request

it('should give the valid posts only', async () =>
{
await remove(REQUESTERS.CREATOR1, VALUES.IDS.POST_RATED);
Copy link
Member

Choose a reason for hiding this comment

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

This remove call modifies the test fixtures to fit the test assertions below, basically saying that the fixtures do not support this test scenario. Instead of calling the remove function, we need to update the fixtures.

@@ -15,29 +15,45 @@ beforeEach(async () =>

describe('domain/notification/getallAggregated', () =>
{
it('should give all posts for the requester', async () =>
it('should give all posts for the requester2', async () =>
Copy link
Member

Choose a reason for hiding this comment

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

As discussed before, this description should tell what scenario is tested. Getting the posts (notifications?) for requester 2 doesn't say anything. It should be clear what's wrong if this test case fails.

Copy link

sonarcloud bot commented Nov 15, 2024

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.

Aggregation resilience
2 participants