Push queue not visible to admins

Created on 5 December 2024, 14 days ago

Problem/Motivation

Site admins have no way to monitor deferred push behavior by inspecting the queue.

Steps to reproduce

In these steps, Entity refers to whatever entity you can create that has a push mapping to Salesforce, eg: Redhen Contact.

1. Salesforce/Mappings/Entity/Settings
2. Disable real-time push, and Save settings.
3. Create a new Entity and save it.
4. Examine Configuration/System/Queue Manager. EXPECT: Salesforce Push queue, particularly since there's a Salesforce Pull queue. ACTUAL: no such queue.

Proposed resolution

Examining the code it appears that the salesforce_pull module used the built-in Drupal queue which has nice Admin UI, but salesforce_push rolled their own custom queue and failed to implement any Admin UI.

I don't know if there's a particular requirement that led to this differing implementation. If there isn't, an ideal fix would refactor salesforce_push to just use Drupal's built-in queue.

I have a pressing need and lack time to do that ideal fix.

A more expedient fix is to implement hook_views_data() which would let site admins build their own UI using Views.

Remaining tasks

Implement the fix and post it as MR and patch!

User interface changes

newly appears as an available view source table.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

5.1

Component

salesforce_push.module

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024