mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 21:30:45 +00:00
Checkpoint to get cypress working - auth-type from backend, less hard-coded auth0, improvements on query screen (less redundant fetches)
This commit is contained in:
@ -32,6 +32,7 @@ class QClient
|
||||
|
||||
private static handleException(exception: QException)
|
||||
{
|
||||
// todo - check for 401 and clear cookie et al & logout?
|
||||
console.log(`Caught Exception: ${JSON.stringify(exception)}`);
|
||||
throw (exception);
|
||||
}
|
||||
|
@ -32,30 +32,36 @@ class QProcessUtils
|
||||
public static getProcessesForTable(metaData: QInstance, tableName: string, includeHidden = false): QProcessMetaData[]
|
||||
{
|
||||
const matchingProcesses: QProcessMetaData[] = [];
|
||||
const processKeys = [...metaData.processes.keys()];
|
||||
processKeys.forEach((key) =>
|
||||
if (metaData.processes)
|
||||
{
|
||||
const process = metaData.processes.get(key);
|
||||
if (process.tableName === tableName && (includeHidden || !process.isHidden))
|
||||
const processKeys = [...metaData.processes.keys()];
|
||||
processKeys.forEach((key) =>
|
||||
{
|
||||
matchingProcesses.push(process);
|
||||
}
|
||||
});
|
||||
const process = metaData.processes.get(key);
|
||||
if (process.tableName === tableName && (includeHidden || !process.isHidden))
|
||||
{
|
||||
matchingProcesses.push(process);
|
||||
}
|
||||
});
|
||||
}
|
||||
return matchingProcesses;
|
||||
}
|
||||
|
||||
public static getReportsForTable(metaData: QInstance, tableName: string, includeHidden = false): QReportMetaData[]
|
||||
{
|
||||
const matchingReports: QReportMetaData[] = [];
|
||||
const reportKeys = [...metaData.reports.keys()];
|
||||
reportKeys.forEach((key) =>
|
||||
if (metaData.reports)
|
||||
{
|
||||
const process = metaData.reports.get(key);
|
||||
if (process.tableName === tableName)
|
||||
const reportKeys = [...metaData.reports.keys()];
|
||||
reportKeys.forEach((key) =>
|
||||
{
|
||||
matchingReports.push(process);
|
||||
}
|
||||
});
|
||||
const process = metaData.reports.get(key);
|
||||
if (process.tableName === tableName)
|
||||
{
|
||||
matchingReports.push(process);
|
||||
}
|
||||
});
|
||||
}
|
||||
return matchingReports;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user