Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: Add pending assign reminder threshold setting #571

Merged
merged 2 commits into from
May 8, 2024

Conversation

Grubba27
Copy link
Contributor

@Grubba27 Grubba27 commented May 8, 2024

User can define a threshold for the pending assign reminder.

User can define a threshold for the pending assign reminder.
@@ -4,7 +4,7 @@ class PendingAssignsReminder
REMINDED_AT = "last_reminded_at"
REMINDERS_FREQUENCY = "remind_assigns_frequency"
CUSTOM_FIELD_NAME = "assigns_reminder"
REMINDER_THRESHOLD = 2
REMINDER_THRESHOLD = SiteSetting.pending_assign_reminder_threshold
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think you can set the const here, as you cannot change the site setting after the server spin up. I think removing the const, and calling SiteSetting directly where the const is currently used should work.

@Grubba27 Grubba27 merged commit e3c24ba into main May 8, 2024
5 checks passed
@Grubba27 Grubba27 deleted the feature/add-pending-assign-reminder-threshold branch May 8, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants