Skip to content

Pin data-explorer-core v1.45.1: rename struct fields in MAT-files - #91

Merged
ww-mw merged 3 commits into
mainfrom
core-1.45.1
Oct 22, 2026
Merged

ww-mw merged 3 commits into
mainfrom
core-1.45.1

Conversation

@ww-mw

@ww-mw ww-mw commented Oct 22, 2026

Copy link
Copy Markdown
Member

Pins data-explorer-core v1.45.1 (mathworks/data-explorer-core#166), resolved to 72bb1e2. A struct field in a MAT-file, including one just added (field, field1, …), can now be renamed as a dictionary's struct field is: at any depth, in every element of a struct array, with the dictionary's refusals.

No extension source changed: core makes the Name cell editable, and the rename uses the existing edit path. Undo/redo, the Status column and the save marks follow it.

Tests

  • New matFieldRename integration suite, 10 tests on cases.mat:
    • one edit with undo/redo;
    • save, reopen and Save As, with every other variable byte-identical;
    • refusals in core's words for a duplicate, an invalid name, end, an empty name and 64 characters;
    • a struct array, a nested field, and a newly added field;
    • Modified until the save.
  • Unit: 3,694 passed.
  • Integration: 351 passing, 0 failing.
  • Lockfile: every resolution points at the public registry.
  • CHANGELOG: an Unreleased bullet.

ww-mw added 3 commits October 22, 2026 11:57
Core's next release renames a struct field in a MAT-file. The editor needs no change to offer it:
a field's row carries an editable Name cell, the rename goes through the same editProperty
gesture as a variable's, and the edit marks the variable the field is under, which is what the
Status column and the save's marks are kept by.

What the tests hold, on cases.mat: the rename is one edit that undoes and redoes, and selects the
row by its new id; it saves, another tab shows it, Save As writes it, and every other variable is
the bytes it was read from; a name the struct has, one MATLAB cannot load, a keyword, an empty one
and one past 63 characters are each refused in core's words and record nothing; in a struct array
every element takes the new name, in the table and the saved file; a nested field is renamed at
its depth; a field just added is renamed and saved. The variable shows Modified until the save.
…-file

v1.45.1 lets a struct's field in a MAT-file take a rename, at any depth and in every element of
a struct array, with the same refusals and undo as a dictionary's struct field; the save writes
the struct fresh under its fields' names and every other record as it was. The extension's MAT
editor already offers the rename through the field's Name cell, and its tests hold it end to end.

The tag was installed by name, so the lockfile resolves it to its commit, 72bb1e2a, as well as
moving the root spec; every resolution still points at the public registry.
@ww-mw
ww-mw merged commit 12450b3 into main Oct 22, 2026
4 checks passed
@ww-mw
ww-mw deleted the core-1.45.1 branch October 22, 2026 16:15
@ww-mw ww-mw mentioned this pull request Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant