Since i removed views, I haven't replaced the links to the platforms / servers configured, as they were pretty much useless where they were. I was just putting them there to have something there.

We need a new block that shows the status of the queue, when it was last run, how many items are remaining and maybe links to some of the important nodes in the system.

The basic block outline is currently commented out in hosting.module.

Comments

anarcat’s picture

Assigned: adrian » anarcat
anarcat’s picture

Status: Active » Fixed

So I have committed a third block in that lists the stats of the queues:

http://drupal.org/cvs?commit=149601

I have also made a block that shows the latest items from every queue:

http://drupal.org/cvs?commit=149589

So I have almost everything:

... links to the platforms / servers configured

check!

We need a new block that shows the status of the queue,

oops, forgot about that... that's enabled/disabled?

when it was last run,

check!

how many items are remaining

check!

and maybe links to some of the important nodes in the system.

not sure what this means, but there's the platform/db/webserver block...

Also, the blocks are not hooked into the hostmaster profile, not sure if that should be done or how.

anarcat’s picture

We need a new block that shows the status of the queue,

I have added an enabled item and I have disabled display of the other stats for disabled queues.

adrian’s picture

Status: Fixed » Needs work
StatusFileSize
new20.83 KB

The task block needs it's own custom listing, that shows the queue, not the tasks.
Also. it should show the $task->title (install somesite.dev), not the $task->task_type (which is mostly applicable for embedded task lists)

It should not be paged in the block, instead there should be a link for 'more tasks in queue' that points to hosting/queue, which is a paginated list of the whole queue.

Secondly, My task summary block has become all weirdly garbled. (check the attached image).

I think at least the platforms / summary block should be enabled by default, and maybe the revised queue list.

yrocq’s picture

StatusFileSize
new5.98 KB

Hi,

This patch should fix display for tasks list block. I added theme functions to customize display for complete list and block list.

yrocq’s picture

Status: Needs work » Needs review

Oops !

yrocq’s picture

StatusFileSize
new6.69 KB

Patch was broken by last update. Here is a working one for head.

anarcat’s picture

Priority: Normal » Critical
Status: Needs review » Needs work

let's also finish this for the release. quick list of things still needing fixing:

* queues/hosting/tasks does not exist
* status: enabled still all over the place in the block
* breaks normal lists by removing the headers

yrocq’s picture

Status: Needs work » Needs review
StatusFileSize
new9.15 KB

* queues/hosting/tasks does not exist
Fixed. User must have 'access task logs' rights to display the block and access the page

* status: enabled still all over the place in the block

Fixed

* breaks normal lists by removing the headers

Fixed

anarcat’s picture

Status: Needs review » Fixed

I committed the patch.

The reason why hosting/queues/tasks doesn't work is that it's a new menu item and the menu cache needs to be regenerated.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.