Page MenuHomePhabricator

Allow more complex queries for Dashboard Panels
Closed, DuplicatePublic

Assigned To
None
Authored By
ReturnZero
Sep 4 2015, 4:00 PM
Referenced Files
F780627: Screen Shot 2015-09-04 at 12.15.41 PM.png
Sep 4 2015, 7:15 PM
F780614: Screen Shot 2015-09-04 at 2.08.40 PM.png
Sep 4 2015, 7:10 PM
F780617: Screen Shot 2015-09-04 at 2.07.09 PM.png
Sep 4 2015, 7:10 PM
F780604: Screen Shot 2015-09-04 at 12.05.10 PM.png
Sep 4 2015, 7:05 PM
F780589: Screen Shot 2015-09-04 at 1.51.41 PM.png
Sep 4 2015, 6:54 PM

Description

Currently when creating a Query Panel, there doesn't seem to be a way to define what query to search for. As an example, I would like to make a panel that lists Tasks that are "Needs Triage" and add it to my Dashboard, similar to Phabricator's default home page. It looks like there are a few pre-built queries (like Assigned, Authored, etc) which are useful, but my example for a Priority isn't available.

I know you can create Advanced Search Queries in the search screen and save them - even being able to select one of my saved queries from that list would be sufficient for this functionality.

Event Timeline

ReturnZero updated the task description. (Show Details)
ReturnZero added a project: Dashboards.
ReturnZero added a subscriber: ReturnZero.

This is approximately filed as T5307. The workaround right now is:

  • Run the query you want.
  • Save it with a name like "Temporary Query I Am Going To Make a Panel Out Of".
  • Create a dashboard panel (the new query will appear for selection).
  • Optionally, delete the query if you don't care about it anymore. The dashboard panel won't be affected.

Desired behavior instead is something like "Create Dashboard Panel..." from the query UI, and "To create a panel from a custom query, go run that query and then use 'Create dashboard panel...'." from the panel UI.

Sorry for dragging this on further, but I actually tried these steps before opening the task and I didn't see a way to select my existing query. Where in this UI should my query be appearing?

Screen Shot 2015-09-04 at 1.51.41 PM.png (418×614 px, 36 KB)

Query only says "All" and I don't see anything related to my query in Search For either.

Select "Tasks" under "Search For".

Then select your query under "Query".

Screen Shot 2015-09-04 at 12.05.10 PM.png (1×1 px, 141 KB)

Hmm, I don't have that option in mine. Is the problem that my query doesn't yet return any results? I'm mostly trying to set this stuff up for later.

Screen Shot 2015-09-04 at 2.08.40 PM.png (511×1 px, 77 KB)

Screen Shot 2015-09-04 at 2.07.09 PM.png (417×611 px, 43 KB)

Does your /maniphest/ look like this?

Screen Shot 2015-09-04 at 12.15.41 PM.png (381×836 px, 62 KB)

If you followed these directions, your saved query should show up on that list. You can check if you saved if by going back to Maniphest and seeing if it's on the left side nav.

This is approximately filed as T5307. The workaround right now is:

  • Run the query you want.
  • Save it with a name like "Temporary Query I Am Going To Make a Panel Out Of".
  • Create a dashboard panel (the new query will appear for selection).
  • Optionally, delete the query if you don't care about it anymore. The dashboard panel won't be affected.

Desired behavior instead is something like "Create Dashboard Panel..." from the query UI, and "To create a panel from a custom query, go run that query and then use 'Create dashboard panel...'." from the panel UI.

I see the issue, I went to search and created the advanced query there instead of going to Maniphest and creating it in there.

Okay, working now. Thanks guys.

No worries - at least there is a workaround for now!