Skip to content

#4411 activation slack message - #4534

Open
glickgNU wants to merge 26 commits into
feature/change-request-bufferfrom
#4411-activation-slack-message
Open

glickgNU wants to merge 26 commits into
feature/change-request-bufferfrom
#4411-activation-slack-message

Conversation

@glickgNU

@glickgNU glickgNU commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Changes

When the activation and planned start for a work package differ more than the buffer threshold, the associated lead, manager, and teams will be notified on slack.

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #4411

@Steph375 Steph375 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Left a couple things to look into. Good work so far! Also I would look at the github workflow errors cause they match up with some of my comments too!

Comment thread src/backend/src/utils/slack.utils.ts Outdated
Comment thread src/backend/src/utils/slack.utils.ts Outdated
Comment thread src/backend/src/utils/slack.utils.ts Outdated
Comment thread src/backend/src/utils/slack.utils.ts
Comment thread src/backend/src/services/change-requests.services.ts
Comment thread src/backend/src/utils/slack.utils.ts

@Steph375 Steph375 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wow so quick! just a couple more little things!

Comment thread src/backend/src/services/change-requests.services.ts Outdated
Comment thread src/backend/src/utils/slack.utils.ts
Comment thread src/backend/src/utils/slack.utils.ts
@glickgNU

Copy link
Copy Markdown
Contributor Author
image Basically I get this error above. It is a linter error so it is not syntactically wrong, and I do not think its worth disabling this linter error for this one line

@Steph375
Steph375 changed the base branch from develop to feature/change-request-buffer October 16, 2026 14:05
@Steph375
Steph375 requested a review from wavehassman October 16, 2026 14:14
@glickgNU
glickgNU changed the base branch from feature/change-request-buffer to change-requests-speed-refactor October 16, 2026 21:04
@glickgNU
glickgNU changed the base branch from change-requests-speed-refactor to feature/change-request-buffer October 16, 2026 21:05
' The start date for ' +
name +
' has been changed from ' +
startDateString +

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

pretty sure the two start dates need to be swapped

wbsString: string,
name: string
) => {
const leadIdPing = (await pingBasedOnId(leadId)) || '';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would rather use getUserSlackMentionOrName

* @param name Name of the work package
*/
export const sendActivationStartDateChangedNotification = async (
teams: (Team & { teamType: Team_Type | null })[] | undefined,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why is this not just an array of teams?

* @param managerId The work package's manager
* @param startDate The planned starting date for the work package
* @param activationDate The actual starting date for the work package
* @param bufferDays The threshold that triggers this message

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this is not a param

};

/**
* Sends to team channels as well as leads and manager about

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this only sends to the team channels pinging the lead and manager

This branch has not been deployed

No deployments
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.

[Change Requests] - Send a Slack message when a WP is activated with a far-off start date

3 participants