Enrich apps before tables - fixed a situation where a table's possible-value field wasn't getting set up as LINK adornment, due to table not being put in app's child-list, which enrichment does, so, if we enrich app first, it fixed it

This commit is contained in:
2024-06-27 11:52:51 -05:00
parent b24a990043
commit 18c94943cb

View File

@ -123,6 +123,18 @@ public class QInstanceEnricher
*******************************************************************************/ *******************************************************************************/
public void enrich() public void enrich()
{ {
/////////////////////////////////////////////////////////////////////////////////////////
// at one point, we did apps later - but - it was possible to put tables in an app's //
// sections, but not its children list (enrichApp fixes this by adding such tables to //
// the children list) so then when enrichTable runs, it looks for fields that are //
// possible-values pointed at tables, for adding LINK adornments - and that could //
// cause such links to be omitted, mysteriously! so, do app enrichment before tables. //
/////////////////////////////////////////////////////////////////////////////////////////
if(qInstance.getApps() != null)
{
qInstance.getApps().values().forEach(this::enrichApp);
}
if(qInstance.getTables() != null) if(qInstance.getTables() != null)
{ {
qInstance.getTables().values().forEach(this::enrichTable); qInstance.getTables().values().forEach(this::enrichTable);
@ -139,11 +151,6 @@ public class QInstanceEnricher
qInstance.getBackends().values().forEach(this::enrichBackend); qInstance.getBackends().values().forEach(this::enrichBackend);
} }
if(qInstance.getApps() != null)
{
qInstance.getApps().values().forEach(this::enrichApp);
}
if(qInstance.getReports() != null) if(qInstance.getReports() != null)
{ {
qInstance.getReports().values().forEach(this::enrichReport); qInstance.getReports().values().forEach(this::enrichReport);