Have AdvancedQueue::createItem() return the item_id

Created on 29 January 2020, over 5 years ago
Updated 27 August 2025, 25 days ago

Currently AdvancedQueue::createItem() returns TRUE upon success. It might be more useful to have it return the item_id of the created / merged item.
As far as I see there isn't a way to tell the ID of the new item after it's created, without making such change.
[My use case is displaying the new AQ item to end users, and then being able to update the display when the item is processed.]

Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇮🇱Israel itamar

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom alexpott 🇪🇺🌍

    In 8.x-1.x you enqueue a job object and this is updated with the job ID. As 7.x-1.x is unsupported this can be closed as outdated.

Production build 0.71.5 2024