Viewing non-existing queue item gives false output and generates notices

Created on 9 February 2023, over 1 year ago
Updated 1 March 2024, 4 months ago

Problem/Motivation

The path admin/config/system/queue-ui/{queueName}/view/{queueItem} is used to view details for a queue item. If, at the time the page loads, the item does not exist, there is no indication about this, it only renders a table with empty content and unix's zero datetime. This can confuse the user and make them believe that the queue item was generated with empty data.


In addition, watchdog gets several PHP notices about trying to get properties of non-object.

Steps to reproduce

  • Install the module
  • Generate some queue item
  • Open the Queue UI overview page for this queue
  • Run the queue item (for example through drush, or cron)
  • Without reloading the overview page, try to open the item
  • The page opens normally, without any indication about the item not existing

Proposed resolution

  • Check about actual existanse of the item
  • If it doesn't exist, log something properly, and throw a 404

Remaining tasks

User interface changes

404 is thrown when the item does not exist.

API changes

-

Data model changes

-

πŸ› Bug report
Status

Fixed

Version

3.1

Component

User interface

Created by

πŸ‡³πŸ‡΄Norway efpapado

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024