SparkDevNetwork / Rock

An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
http://www.rockrms.com
580 stars 353 forks source link

[Alpha 1.16.7.2] Next Gen Check-in - New block is not auto refreshing page after changes #6080

Closed kimlongcr closed 1 week ago

kimlongcr commented 2 weeks ago

Description

On the new block being used for the checkin kiosk, if I change the Promotions Content Channel and save it, it is not updating the kiosk.

Actual Behavior

Actual BehaviorOn the new block being used for the checkin kiosk, if I change the Promotions Content Channel and save it, it is not updating the kiosk. I have to manually click on refresh. While this is ok for one kiosk, we can't make our kids club folks at 10 sites go to every kiosk to manually refresh it to show the new promotional page. Also, other blocks in Rock seem to change the settings immediately upon saving.

Expected Behavior

Upon saving the changes, all kiosks with that block being displayed will refresh automatically.

Steps to Reproduce

  1. Go to the kiosk page (https://rockalpha.crossroads.net/nextgen-checkin) - have two kiosks running
  2. Open the block settings on one of them
  3. change the Promotions Content Channel to some other page
  4. Save it
  5. The page you are on doesn't refresh with the new block settings. If you watch the other kiosk page, it is also not refreshing with the new block settings.

Issue Confirmation

Rock Version

Rock McKinley 16.7 (1.16.7.2)

Client Culture Setting

en-US

cabal95 commented 1 week ago

@kimlongcr The functionality you were talking about does not currently exist in Rock. Meaning, if you change a block setting on a page, every browser that happens to be on that page will not automatically pick up the new setting and refresh.

However, we moved that setting from the block settings to the check-in configuration settings. Because of the existing code in place, making a change here will cause the kiosks to refresh. Kiosks also refresh their list of promotions whenever they return to the welcome screen.

When the kiosk is sitting idle on the welcome screen, it will now also update it's list of promotions every 5-6 minutes. This will then catch cases where you add/delete/modify a content channel item in the promotion content channel.