Skip to content

Commit

Permalink
feat: enable profile feature flag in production
Browse files Browse the repository at this point in the history
Also update links in emails to point to the new profile page.
Putting this in the same commit as feature flag enablement
since we have no infrastructure for server-side feature flags right now.
  • Loading branch information
sanason committed Dec 20, 2023
1 parent 576eca4 commit cf28338
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/server/src/lib/email.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async function sendGrantAssignedNotficationForAgency(assignee_agency, grantDetai
const emailHTML = module.exports.addBaseBranding(grantAssignedBody, {
tool_name: 'Grants Identification Tool',
title: 'Grants Assigned Notification',
notifications_url: `${process.env.WEBSITE_DOMAIN}/grants?manageSettings=true`,
notifications_url: `${process.env.WEBSITE_DOMAIN}/my-profile`,
});

// TODO: add plain text version of the email
Expand Down Expand Up @@ -238,7 +238,7 @@ async function sendGrantDigest({
const emailHTML = module.exports.addBaseBranding(formattedBody, {
tool_name: 'Federal Grant Finder',
title: 'New Grants Digest',
notifications_url: `${process.env.WEBSITE_DOMAIN}/grants?manageSettings=true`,
notifications_url: `${process.env.WEBSITE_DOMAIN}/my-profile`,
});

// TODO: add plain text version of the email
Expand Down Expand Up @@ -304,7 +304,7 @@ async function buildAndSendUserSavedSearchGrantDigest(userId, openDate) {

await asyncBatch(inputs, getAndSendGrantForSavedSearch, 2);

console.log(`Successfully built and sent grants digest emails for ${openDate}`);
console.log(`Successfully built and sent grants digest emails for ${inputs.length} saved searches on ${openDate}`);
}

async function buildAndSendGrantDigest() {
Expand Down
2 changes: 1 addition & 1 deletion terraform/prod.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ website_datadog_rum_options = {
trackLongTasks = true
}
website_feature_flags = {
myProfileEnabled = false,
myProfileEnabled = true,
newTerminologyEnabled = false,
newGrantsDetailPageEnabled = false,
categoryOfFundingActivitySearchFieldEnabled = false,
Expand Down

0 comments on commit cf28338

Please sign in to comment.