Re-send all pending invitations

I just spent 10 minutes clicking the 884 times on the /invited/pending page.

5 Likes

Sure, @techapj can you add to your list a “resend all pending invites” button for this page? Makes sense.

4 Likes

This feature is now available. :sunny:

“Resend all Invites” button will be visible when there are 5 or more pending invites.


https://github.com/discourse/discourse/commit/c4e1ad0953bc8cbd4f2b8950b96e87393746f531

5 Likes

Does this have appropriate ratelimits (that apply to admins)?

1 Like

It has now :wink:

  • Resend all Invites limited to 1 per day.
  • Resend Invite limited to 10 per hour.

(not applicable on staff)

https://github.com/discourse/discourse/commit/a9c6df198cbbc0b8f5bf5b7de42e71c2cdf3d150

2 Likes

Would non staff even ever see this button to resend all invites? I don’t know why it should even be offered to non staff. @riking was proposing rate limits even for admins here so I feel there has been a giant miscommunication…

Okay, I made this feature staff only.

Regarding rate limits even for admins, our current RateLimiter library makes the rate unlimited for staff users.

https://github.com/discourse/discourse/blob/8f4bc2228fd5def7a4190222b0ae993a384791d9/lib/rate_limiter.rb#L97-L99

Should I amend the library to allow rate limits to be applied on staff users too?

1 Like