Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix removing sticky fields from Pseudonym
When no changes happened for a user and clear_sis_stickiness flag was on, the 'stuck_sis_field' didn't get cleared on Pseudonym. This is because the before_save callback didn't fire in lib/sticky_sis_fields.rb. By changing the sis_batch_id on the Pseudonym, we can force an update (and with that clearing the sticky fields). Test plan: - Import a user - Change its login_id to something - Do another SIS import, using the same login_id and with setting 'Clear UI-changed state' - Observe the 'stuck_sis_fields' gets cleared on the Pseudonym. Next SIS import will be able to overwrite any property References SOS-2633 flag=none Change-Id: I80ee45198863785b4c693375bc54557cc13f66e4 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/283658 Reviewed-by: Kozma Jozsef <[email protected]> Reviewed-by: Richard Zana <[email protected]> Reviewed-by: August Thornton <[email protected]> QA-Review: Balazs Komaromi <[email protected]> Product-Review: Balazs Komaromi <[email protected]> Tested-by: Service Cloud Jenkins <[email protected]>
- Loading branch information