Add project_issue module's issue_cockpit block to the default dashboard.

Configured with #874790: Configurable blocks

Add to Dashboard links with #874792: Add to homebox links

Comments

drumm’s picture

drumm’s picture

drumm’s picture

Assigned: Unassigned » drumm
drumm’s picture

Project: Drupal.org customizations » Project issue tracking
Version: » 6.x-1.x-dev
Issue tags: +drupal.org redesign project
StatusFileSize
new2.99 KB

This adds homebox integration so you can an 'Issue Cockpit' block for arbitrary projects on your dashboard. The hooks are being added with #874790: Configurable blocks

dww’s picture

Status: Active » Needs work

A) It's not obvious where/how the nid is actually being saved, nor what project_issue_homebox_block_edit_form() is really about. A comment to that effect would be very helpful, since I don't know the whole homebox API. In fact, all the new functions added in this patch need PHPDoc comments explaining WTF they're for. ;)

B) What do I have to do to test this?

Thanks,
-Derek

drumm’s picture

StatusFileSize
new39.89 KB

A) New patch attached.

B) To test:
1. Install homebox and patch from #874790: Configurable blocks
2. Enable the 'issue cockpit' block, drupalorg provides a default configuration in-code
3. Click the Gear icon and type in a different project.

drumm’s picture

Status: Needs work » Needs review
dww’s picture

Status: Needs review » Needs work

Wrong patch. ;)

drumm’s picture

Status: Needs work » Needs review
StatusFileSize
new3.33 KB
dww’s picture

Title: Add Drupal core issues block to dashboard » Expose per-project issue block to homebox
StatusFileSize
new5.54 KB
new3.49 KB

Re-rolled to fix up some comments and fix a potential PHP notice. (898180-10.issue_homebox_block.A.patch)

Based on an IRC conversation with drumm, I also sort of added support to let users configure which categories should appear in the block via homebox (898180-10.issue_homebox_block.B.patch). However, this doesn't actually work given the custom caching this block is doing. :( So, if we want to support that feature, we need to revisit this caching approach.

I finally managed to test all this on solr.redesign.devdrupal.org, so I've seen it working and am basically ready to commit patch A.

drumm’s picture

Status: Needs review » Reviewed & tested by the community
dww’s picture

Status: Reviewed & tested by the community » Fixed

Committed #10.A to HEAD.

dww’s picture

(Although this was developed in sprint 4, it was only committed in sprint 5, so tagging it for both sprints).

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