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

Implement keyword-based dynamic text replacement #657

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

Conversation

Ahmed-Ghanam
Copy link
Contributor

@Ahmed-Ghanam Ahmed-Ghanam commented Nov 21, 2024

Description

This pull request introduces support for placeholder keywords in notification texts, enabling dynamic personalization based on recipient-specific data. These placeholders allow us to dynamically replace predefined keywords in text with the corresponding recipient's information during runtime.

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)
  • All tests run green

Documentation

  • User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

@@ -13,7 +13,7 @@
"EnableDBConnection": true
},
"NotificationConfig": {
"DefaultEmailFromAddress": "noreply@altinn.no",
"DefaultEmailFromAddress": "noreply@altinn.cloud",
Copy link
Member

Choose a reason for hiding this comment

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

This might cause issues in tt02 and production. Make sure we add correct values for those environments in the values file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the values.yaml file has the following value:
[email protected] for the environments tt02 and prod.
[email protected] for the environments development, at21, at22, at23, at24 and yt01.

/// A task that represents the asynchronous operation.
/// The task result contains a list of <see cref="PartyDetails"/> representing the details of the specified organizations.
/// </returns>
public async Task<List<PartyDetails>> GetPartyDetailsForOrganizations(List<string> organizationNumbers)
Copy link
Member

Choose a reason for hiding this comment

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

Names lookup allows a mix of organization and national identity numbers in the same request. I think splitting them in separate methods is unnecessary.

Copy link

sonarcloud bot commented Dec 16, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants