Version 0.5.5.94: field type conversion, exclusion filters and value lists
- Change the data type of custom fields with stored values via a preview: values that cannot be converted need an explicit decision, the conversion runs in one transaction with row locks and a stale-preview check, old values are saved to data/backups and recorded in history. - Table filters: "!value" excludes rows, "=value" compares exactly; Excel-like value list (▾) per column in all tables. The software job list computes its value list on the server over the full job history. - Bulk edit offers custom fields with type-specific input and validation. - MeshCentral mappings: optional "value if empty" with a guard path; fallbacks are skipped when only basic data was delivered. - Deleting a field removes its translations (same name can be reused); one confirmation with the value count replaces the checkbox. - Job list filters recognize the "reinstall" action and the "software deployment" job type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
261b4f2029
commit
40cd88871f
20 files changed
+1400
-187
No files matched your search
@@ -91,7 +91,7 @@
|
||||
<h2>3. {{ t('mesh.field_mappings') }}</h2>
|
||||
<p class="muted">{{ t('mesh.mappings_help') }} {{ t('mesh.mappings_examples') }}: <code>node.osdesc</code>, <code>sys.hardware.windows.cpu[].Name</code>, <code>node.name|name</code>.</p>
|
||||
<form method="post" action="/sync/meshcentral/mappings/save">
|
||||
<div class="table-scroll management-table-scroll"><table class="data-table mesh-mapping-table"><thead><tr><th>{{ t('common.active') }}</th><th>{{ t('mesh.priority') }}</th><th>{{ t('mesh.target_field') }}</th><th>{{ t('mesh.source_path') }}</th><th>{{ t('mesh.transformation') }}</th><th>{{ t('mesh.multi_values') }}</th><th>{{ t('mesh.separator') }}</th><th>{{ t('mesh.update_rule') }}</th><th>{{ t('common.description') }}</th><th></th></tr></thead><tbody>
|
||||
<div class="table-scroll management-table-scroll"><table class="data-table mesh-mapping-table"><thead><tr><th>{{ t('common.active') }}</th><th>{{ t('mesh.priority') }}</th><th>{{ t('mesh.target_field') }}</th><th>{{ t('mesh.source_path') }}</th><th>{{ t('mesh.transformation') }}</th><th>{{ t('mesh.multi_values') }}</th><th>{{ t('mesh.separator') }}</th><th>{{ t('mesh.update_rule') }}</th><th title="{{ t('mesh.empty_value_help') }}">{{ t('mesh.empty_value') }}</th><th>{{ t('common.description') }}</th><th></th></tr></thead><tbody>
|
||||
{% for m in mappings %}
|
||||
<tr>
|
||||
<td><input type="checkbox" name="mapping_{{m.id}}_enabled" {% if m.enabled %}checked{% endif %}></td>
|
||||
@@ -102,6 +102,7 @@
|
||||
<td><select name="mapping_{{m.id}}_multi_value_mode">{% for v in ['first','join','json','count'] %}<option value="{{v}}" {% if m.multi_value_mode==v %}selected{% endif %}>{{v}}</option>{% endfor %}</select></td>
|
||||
<td><input class="mapping-separator" name="mapping_{{m.id}}_separator" value="{{m.separator|replace('\n','\\n')|replace('\t','\\t')}}"></td>
|
||||
<td><select name="mapping_{{m.id}}_update_rule"><option value="fill_empty" {% if m.update_rule=='fill_empty' %}selected{% endif %}>{{ t('mesh.rule_fill_empty') }}</option><option value="meshcentral_wins" {% if m.update_rule=='meshcentral_wins' %}selected{% endif %}>{{ t('mesh.rule_mesh_wins') }}</option><option value="local_wins" {% if m.update_rule=='local_wins' %}selected{% endif %}>{{ t('mesh.rule_local_wins') }}</option></select></td>
|
||||
<td><input class="mapping-empty-value" name="mapping_{{m.id}}_empty_value" value="{{m.empty_value or ''}}" title="{{ t('mesh.empty_value_help') }}" maxlength="255"><input class="mapping-empty-value-guard" name="mapping_{{m.id}}_empty_value_guard" value="{{m.empty_value_guard or ''}}" placeholder="{{ t('mesh.empty_value_guard') }}" title="{{ t('mesh.empty_value_guard_help') }}" maxlength="255"></td>
|
||||
<td><input name="mapping_{{m.id}}_description" value="{{m.description or ''}}"></td>
|
||||
<td>{% if not m.is_system %}<button class="button danger" type="submit" formaction="/sync/meshcentral/mappings/{{m.id}}/delete" formmethod="post" onclick="return confirm({{ t('mesh.delete_mapping_confirm')|tojson }})">{{ t('common.delete') }}</button>{% endif %}</td>
|
||||
</tr>
|
||||
@@ -122,6 +123,8 @@
|
||||
<label>{{ t('mesh.multi_values') }}<select name="multi_value_mode"><option value="first">first</option><option value="join">join</option><option value="json">json</option><option value="count">count</option></select></label>
|
||||
<label>{{ t('mesh.separator') }}<input name="separator" value="\n"></label>
|
||||
<label>{{ t('mesh.update_rule') }}<select name="update_rule"><option value="fill_empty">{{ t('mesh.rule_fill_empty') }}</option><option value="meshcentral_wins">{{ t('mesh.rule_mesh_wins') }}</option><option value="local_wins">{{ t('mesh.rule_local_wins') }}</option></select></label>
|
||||
<label>{{ t('mesh.empty_value') }}<input name="empty_value" maxlength="255" title="{{ t('mesh.empty_value_help') }}"><small class="muted">{{ t('mesh.empty_value_help') }}</small></label>
|
||||
<label>{{ t('mesh.empty_value_guard') }}<input name="empty_value_guard" maxlength="255" placeholder="sys.hardware.windows"><small class="muted">{{ t('mesh.empty_value_guard_help') }}</small></label>
|
||||
<label>{{ t('common.description') }}<input name="description"></label>
|
||||
<label class="checkbox-label"><input class="checkbox" type="checkbox" name="enabled" checked> {{ t('common.active') }}</label>
|
||||
</div><button class="button button-save">+ {{ t('mesh.create_mapping') }}</button>
|
||||
|
||||
Reference in new issue
Block a user