1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 00:02:41 +01:00
phorge-phorge/src/applications/dashboard
epriestley 55b44f53f8 Fix possible recursive embeds in Dashboard text panels
Summary:
We currently detect tab panels embedding themselves, but do not detect text panels embedding themselves with `{Wxx}`.

Detect these self-embedding panels.

I had to add a bit of a hack to pass the parent panel PHIDs to the rule. Generally, I got the Markup API kind of wrong and want to update it, I'll file a followup with details about how I'd like to move forward.

Test Plan:
Created a text panel embedding itself, a tab panel embedding a text panel embedding itself, a tab panel embedding a text panel embedding the tab panel, etc.

Rendered all panels standalone and as `{Wxx}` from a different context.

{F761158}

{F761159}

{F761160}

{F761161}

{F761162}

Reviewers: chad, jbeta

Reviewed By: chad, jbeta

Differential Revision: https://secure.phabricator.com/D13999
2015-08-26 17:59:47 -07:00
..
application Allow Home and Dashboards to be uninstalled 2015-02-11 15:24:54 -08:00
controller Update Dashboards for handleRequest 2015-08-10 09:07:51 -07:00
customfield Use PhutilClassMapQuery instead of PhutilSymbolLoader 2015-08-14 07:49:01 +10:00
edge Modernize Dashboard edges 2015-01-02 10:11:59 +11:00
editor Add ability to archive a Dashboard 2015-07-23 14:22:56 -07:00
engine Merge branch 'master' into redesign-2015 2015-06-19 08:33:30 -07:00
layoutconfig Extend from Phobject 2015-06-15 18:02:27 +10:00
paneltype Fix possible recursive embeds in Dashboard text panels 2015-08-26 17:59:47 -07:00
phid Separate handle "status" and "availability" 2015-05-14 11:14:44 -07:00
query Add ability to archive a Dashboard 2015-07-23 14:22:56 -07:00
remarkup Fix possible recursive embeds in Dashboard text panels 2015-08-26 17:59:47 -07:00
storage Add ability to archive a Dashboard 2015-07-23 14:22:56 -07:00