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

Group Sync Job ignores DataView "Disable Use of Read Only Context" setting #5672

Closed
2 tasks done
OnlyByGrace opened this issue Nov 9, 2023 · 0 comments
Closed
2 tasks done
Labels
Fixed in v16.3 Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. Type: Bug Confirmed bugs or reports that are very likely to be bugs.

Comments

@OnlyByGrace
Copy link
Contributor

OnlyByGrace commented Nov 9, 2023

Description

When you are using a ReadOnly context and have selected "Disable Use of Read Only Context" on a dataview, the Group Sync job ignores that setting and still tries to use the ReadOnly context for the dataview.

Actual Behavior

I would expect the dataview to run in the main Rock DB Context

Expected Behavior

It tries to run in the read only context

Steps to Reproduce

  • Create a dataview in a fresh database to return people with an email of 'admin@organization.com'
  • In a fresh db, this will return one result
  • Take a backup of the DB at this point, restore it as a duplicate DB, and setup the ReadOnlyContext to point to this duplicate DB
  • Check "Disable Use of Read Only Context" for the dataview you created
  • Change the Admin's email in the database to something other than 'admin@organization.com'
  • Observe the empty dataview
  • Create a group, and sync the group with the dataview you created
  • Run the group sync job
  • Observe that the Admin account was synced into the group, despite the email address not matching the Dataview criteria

Issue Confirmation

  • Perform a search on the Github Issues to see if your bug or enhancement is already reported.
  • Try to reproduce the problem on a fresh install or on the demo site.

Rock Version

Rock McKinley 16.0 (1.16.0.12)

Client Culture Setting

en-US

@jasonhendee jasonhendee added Type: Bug Confirmed bugs or reports that are very likely to be bugs. Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. Fixed in v16.3 labels Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in v16.3 Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. Type: Bug Confirmed bugs or reports that are very likely to be bugs.
Projects
None yet
Development

No branches or pull requests

2 participants