FlowFuse / flowfuse

Connect, collect, transform, visualise, and interact with your Industrial Data in a single platform. Use FlowFuse to manage, scale and secure your Node-RED solutions.
https://flowfuse.com
Other
287 stars 64 forks source link

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

Open gstout52 opened 3 months ago

gstout52 commented 3 months ago

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:

Which customers would this be available to

None

Acceptance Criteria

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

joepavitt commented 3 months ago

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 commented 2 months ago

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

hardillb commented 1 week ago

I'm going to try and do this today

knolleary commented 1 week ago

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

hardillb commented 1 week ago

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 commented 1 week ago

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

knolleary commented 1 week ago

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.

hardillb commented 1 week ago

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