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

Mkaleem.neslit.10140.email digest #10338

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

KaleemNeslit
Copy link
Collaborator

Link to Issue

Closes: #10140

Description of Changes

  • Updated the Digest email template with dynamic data
  • added the condition at least 3 thread are necessary for sending email
  • updated the Backend response
    For some reason, Liquid doesn't seem to evaluate the variable properly when used with the square bracket notation (communities[name]). Instead, it seems to look for a key literally named test, not the value inside the variable.
    the same code work in different Liquid base editor face the issue with "Knock eidtior"

"How We Fixed It"

  • Updated the Digest email template with dynamic data
  • added the condition at least 3 thread are necessary for sending email
  • updated the Backend response
    For some reason, Liquid doesn't seem to evaluate the variable properly when used with the square bracket notation (communities[name]). Instead, it seems to look for a key literally named test, not the value inside the variable.
    the same code work in different Liquid base editor face the issue with "Knock eidtior"

@KaleemNeslit KaleemNeslit marked this pull request as draft December 17, 2024 16:47
@dillchen dillchen requested a review from timolegros December 17, 2024 16:49
@KaleemNeslit KaleemNeslit marked this pull request as ready for review December 18, 2024 15:36
Copy link
Contributor

@Rotorsoft Rotorsoft left a comment

Choose a reason for hiding this comment

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

just a couple of small details in comments

Copy link
Contributor

@mzparacha mzparacha left a comment

Choose a reason for hiding this comment

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

Codewise looks good, didn't test locally.

@KaleemNeslit
Copy link
Collaborator Author

@Rotorsoft i updated test case for unsubscribe_link can you review that

@@ -1,19 +1,24 @@
import { ExternalServiceUserIds, dispose, query } from '@hicommonwealth/core';
import { models } from '@hicommonwealth/model';
import { Community } from '@hicommonwealth/schemas';
import { Community, User } from '@hicommonwealth/schemas';

import { expect } from 'chai';
Copy link
Contributor

Choose a reason for hiding this comment

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

we are trying to use expect from vitest, to eventually remove chai from the project

@masvelio
Copy link
Contributor

@KaleemNeslit please review and merge

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.

Fix Digest Email Template
4 participants