flowfuse icon indicating copy to clipboard operation
flowfuse copied to clipboard

Send reminders to team inviters and invitees if invitee doesn't join

Open gstout52 opened this issue 1 year ago • 2 comments

Epic

No response

Description

As a user who sends or receives a team join invitation

(if invitee) I want to be reminded if I forget to join a team I was invited to, or (if inviter) be reminded if someone I invited has not yet joined

So that (if invitee) I participate in FlowFuse when my team needs me, or (if inviter) I ensure that the right team members are in FlowFuse

Current Behavior Currently, after a user sends an invitation to join, there is no follow-up of any kind to the inviter. Currently, after a user receives a team join invitation and does not accept it, there is no reminder message sent.

Desired Behavior

If two days after sending an invitation the invitee has not joined the team, then:

  • The invitee receives a reminder email
  • The inviter receives an email stating that the invitee has not yet accepted

Which customers would this be available to

None

Acceptance Criteria

  • [ ] If two days after sending an invitation the invitee has not joined the team, then the invitee receives a reminder email
  • [ ] If two days after sending an invitation the invitee has not joined the team, then the inviter receives an email stating that the invitee has not yet accepted

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

gstout52 avatar Aug 14 '24 20:08 gstout52

This one is a little trickier, and is likely to need some HS intervention, as not sure we can reliably track this within the source/product itself

joepavitt avatar Aug 15 '24 15:08 joepavitt

We do have "housekeeper" tasks that run intermittently, so is actually doable.

joepavitt avatar Sep 25 '24 10:09 joepavitt

I'm going to try and do this today

hardillb avatar Nov 22 '24 11:11 hardillb

I suspect we have a lot of 'dormant' invites - we may want to tidy them up before we start sending reminders.

knolleary avatar Nov 22 '24 11:11 knolleary

316 invites in the DB at the moment, but large number look to be expired.

Will add a housekeeping task to remove expired invites as part of the work

hardillb avatar Nov 22 '24 11:11 hardillb

Trying to do this without adding a flag to the database.

If I use a fixed time everyday to run it, I should be able to check for creation dates, more than 2 days ago and less than 3.

If randomised run time, then each restart will change the run time and is then likely to miss or send twice

hardillb avatar Nov 22 '24 13:11 hardillb

If I use a fixed time everyday to run it, I should be able to check for creation dates, more than 2 days ago and less than 3.

Sounds good to me.

knolleary avatar Nov 22 '24 13:11 knolleary

Does this feature (and how many days later) want to be flags in the admin settings?

hardillb avatar Nov 22 '24 18:11 hardillb

@hardillb this can be closed, right?

joepavitt avatar Dec 13 '24 10:12 joepavitt

closed by https://github.com/FlowFuse/flowfuse/pull/4824

hardillb avatar Dec 13 '24 10:12 hardillb