Release v0.6.1: M2A deep-path test & robustness hardening (#68)#69
Merged
Conversation
Quality Check ResultsTypeScript Type Check✅ Passed - No type errors found ESLint✅ Passed - No linting errors Prettier Format Check✅ Passed - Code is properly formatted Build✅ Passed - Extension builds successfully Updated: 2026-06-13T10:53:03.024Z |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #68.
Follow-up to #67 (v0.6.0): closes the deferred test-coverage and robustness gaps in the M2A deep-path template feature. No functional behavior change — pure hardening, two tiny robustness fixes, and unit coverage. Verified live + adversarially reviewed.
Changes
Refactor / robustness (production code, behavior-preserving)
resolveUserLanguage(userStore)into a pure, typed helper (UserStoreLike/UserLike) and use it at both call sites (EditableCellRelational.vue,useLanguageSelector.ts), dropping theas anycasts. Behavior identical at both sites (incl. the''/ null / undefined paths).buildQueryFingerprint: normalizesortto?? null(consistent with filter/deep/alias) and canonicalize nested object key order via a typedstableReplacer(null- and array-guarded; arrays keep their order). The fingerprint is a dedup-only comparison key — it never forms the wire query.coalescereject invariant and theapilisting-search path (comments only).Tests (close the #68 gaps, no duplication of existing coverage)
resolveUserLanguage: set / null / null-store / share-without-language / empty-string.buildQueryFingerprint: nested key reorder -> equal; reorder inside array elements -> equal; array element order significant -> differs; deep value change -> differs; sort null vs undefined -> equal.junction_field: 'lang') at the render (renderM2ATemplate) and query-expansion (expandTokensThroughRelation) levels — "detected, not hardcodedlanguages_code".M2O -> M2O -> scalarresolve, andvalidateDeepPathM2O -> M2O -> invalid-leafnaming the deepest collection.listPickerFields: singlefiledrillable (directus_files); to-manyfiles/o2momitted.Out of scope (deferred): the
super-table.vueconsolidation items (#8/#9 in the issue) are structural refactors and belong in a separate issue. No version bump (left for the next release).Verification
vitest: 404/404 (16 added on this branch).vue-tsc, ESLint--max-warnings=0, Prettier — all green. (The one timing-baseduseExistingLanguageDetection > should be performantflake passes on retry; pre-existing, untouched here.)Test plan