mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-17 20:50:44 +00:00
Quality-of-life, add some todos for ideas
This commit is contained in:
@ -326,6 +326,20 @@ public class AuditSingleInput implements Serializable
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter for details
|
||||
*******************************************************************************/
|
||||
public AuditSingleInput withDetailMessages(List<String> details)
|
||||
{
|
||||
for(String detail : details)
|
||||
{
|
||||
addDetail(message);
|
||||
}
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
*******************************************************************************/
|
||||
|
@ -30,4 +30,5 @@ public enum AuditLevel
|
||||
NONE,
|
||||
RECORD,
|
||||
FIELD
|
||||
// idea: only audit changes to fields, e.g., on edit. though, is that a different dimension than this?
|
||||
}
|
||||
|
@ -258,6 +258,11 @@ public class BulkLoadValueMapper
|
||||
valuesNotFound.add(value);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// todo - we should probably be doing a lot of what QJavalinImplementation.finishPossibleValuesRequest does here //
|
||||
// to apply possible-value filters. difficult to pass values in, but needed... //
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
searchPossibleValueSourceInput.setIdList(idList);
|
||||
searchPossibleValueSourceInput.setLimit(values.size());
|
||||
LOG.debug("Searching possible value source by ids during bulk load mapping", logPair("pvsName", field.getPossibleValueSourceName()), logPair("noOfIds", idList.size()), logPair("firstId", () -> idList.get(0)));
|
||||
|
@ -239,6 +239,10 @@ public class ColumnStatsStep implements BackendStep
|
||||
|
||||
QPossibleValueTranslator qPossibleValueTranslator = new QPossibleValueTranslator();
|
||||
qPossibleValueTranslator.translatePossibleValuesInRecords(table, valueCounts, queryJoin == null ? null : List.of(queryJoin), null);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// todo - be aware of possible name collisions here!! (e.g., a table w/ a field named `count`) //
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
QValueFormatter.setDisplayValuesInRecords(table, Map.of(fieldName, field, "count", countField), valueCounts);
|
||||
|
||||
runBackendStepOutput.addValue("valueCounts", valueCounts);
|
||||
|
Reference in New Issue
Block a user