HomePhorge

Fix possible recursive embeds in Dashboard text panels

Description

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

Details

Provenance
epriestleyAuthored on Aug 26 2015, 5:59 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP10966519e2eb: Prevent "commit message magic words" parser from exploding on "reverts aaaa.....
Branches
Loading...
Tags
Loading...

Event Timeline