It would be nice to allow more frequency options rather than just "only once" and "on every log in". Specifically, I would like once a year as an option, though there could be the possibility to add many more. Suggested patch to follow.

Comments

bdlangton created an issue. See original summary.

bdlangton’s picture

StatusFileSize
new2.41 KB

Here is the patch. It only adds a "once per year" option, though it wouldn't be hard to expand to more options.

bdlangton’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 2: agreement_frequency_2873904_2.patch, failed testing.

bdlangton’s picture

Status: Needs work » Needs review
StatusFileSize
new2.84 KB

Updated patch with updated test.

bdlangton’s picture

StatusFileSize
new4.26 KB

In addition to the frequency updates, it would be nice to be able to force a reset on the agreement. What that would do is force every user to re-accept the agreement. This adds a checkbox to the config form, so the admin when updating the agreement can choose to force users to re-accept.

I realize that this patch is extending the scope of the feature request. If you want to just look at the basic patch request, #5 is still the one to look at.

mradcliffe’s picture

Hopefully be able to take a look at it this week.

mradcliffe’s picture

Re-rolled patch based on merging #1852834: Possible to have multiple agreements - role based.

This is probably ready to go. I moved the update number and adjusted it to affect agreement types instead. I think that you would need to reset schema_version to 7200, @bdlangton.

Status: Needs review » Needs work

The last submitted patch, 8: agreement-2873904-frequency-options-8.patch, failed testing.

mradcliffe’s picture

Status: Needs work » Needs review
StatusFileSize
new9.38 KB

Messed that patch up, sorry.

bdlangton’s picture

Status: Needs review » Reviewed & tested by the community

@mradcliffe Looks good to me. Thanks for the update.

  • mradcliffe committed 6303e9a on 7.x-2.x
    Issue #2873904 by bdlangton, mradcliffe: Allow more agreement frequency...
mradcliffe’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 7.x-2.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.