Performing a login_reset task on a site shows a "Login_reset example.com" in the task summary on the right hand side.
While being minor, I don't think that's very nice. In this case the title of the task is "Reset password" which doesn't fit very well if prepended to the name of the site. So I added a 'summary title' key which is used for this summary. While working nicely it's an awful lot of code for such a small thing, and providing a whole task property just for that is also not the nicest thing on earth, but it's a start. Patch attached.

Comments

Anonymous’s picture

This would also help my ugly 'Backup_delete' which snuck into beta1.

This problem has been bothering me for a while - but I don't feel confident in saying whether this is the best way :s

The $nodes in the queue block are fetched from hosting_get_tasks() - I wonder if it would be more efficient to store the summary title in the task table and get it from the query to use it, since we already looping on each task node.

Am I saying it would be more efficient to grab the summary title value from the database? I think I am - and that's why I am probably not the best person to say what's the right way, since that's surely wrong logic :)

anarcat’s picture

Status: Needs review » Needs work

How about just removing the underscore from the display? Would be much simpler, wouldn't it?

I feel unconfortable adding a new field without a) clearly defining what's its purpose and b) outlining why the existing fields cannot be used. Basically, we would end up with 3 descriptors here (login_reset, Reset password and Reset password for...), seems to me there's one too many here.

tstoeckler’s picture

StatusFileSize
new606 bytes

I guess doing that as a first step can't hurt.
While I don't like my previous very much either, I still think we can do better that "Login reset mysite.com" or "Backup delete mybackup". But I don't really know how to do that in a nicer way.
Anyway here is an untested patch for replacing underscores with spaces.

tstoeckler’s picture

Status: Needs work » Needs review
anarcat’s picture

Status: Needs review » Fixed

i just committed the thing lest i forget. :)

Status: Fixed » Closed (fixed)

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

  • Commit 1c32879 on 6.x-2.x, 7.x-3.x, dev-ssl-ip-allocation-refactor, dev-sni, dev-helmo-3.x by anarcat:
    #931420 by tstoeckler - remove underscores in task block
    

  • Commit 1c32879 on 6.x-2.x, 7.x-3.x, dev-ssl-ip-allocation-refactor, dev-sni, dev-helmo-3.x by anarcat:
    #931420 by tstoeckler - remove underscores in task block