@mohsinonxrm/pptb-dataverse-request-studio 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,71 @@ All notable changes to Dataverse Request Studio will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.1.2] - 2026-06-08
9
+
10
+ ### 🐛 Fixed
11
+
12
+ - **`refreshAll()` race condition** (`metadataProvider.ts`) — the Settings
13
+ "Refresh metadata" button now drains any in-flight `buildTable` promises via
14
+ `Promise.allSettled` before clearing the cache. Previously an orphaned fetch
15
+ that settled after the clear could call `__registerLiveTable` with
16
+ pre-refresh data, silently overwriting the fresh registration.
17
+
18
+ - **Silent bad-hop in OData parse validation** (`odataParser.ts`) — when the
19
+ parser walks a nav-path `$filter` column and encounters an unknown or
20
+ non-ManyToOne navigation segment, it now emits an actionable warning (naming
21
+ the bad segment and its owner table) instead of silently skipping validation.
22
+ A separate warning is emitted when the related entity's metadata times out
23
+ during the walk.
24
+
25
+ - **`resolveNavPath` leaf lookup now matches `oDataName`** (`mock/metadata.ts`)
26
+ — the leaf-column search now also checks `ColumnMeta.oDataName` (e.g.
27
+ `_primarycontactid_value`) in addition to `logicalName`. This closes a gap
28
+ where a round-tripped or pasted OData `$filter` that preserved the lookup
29
+ wire form as the path leaf would resolve to `undefined`, causing the `$filter`
30
+ encoder to fall back to string-quoting a value that should be unquoted
31
+ (GUID / integer).
32
+
33
+ ## [1.1.1] - 2026-06-08
34
+
35
+ ### 🐛 Fixed
36
+
37
+ - **Custom OptionSet (and other typed) values incorrectly quoted as strings in
38
+ `$filter` over a lookup navigation** ([#33](https://github.com/mohsinonxrm/pptb-mxrm-dataverse-request-studio/issues/33)).
39
+ Filtering on a related-entity column via a nav path — e.g.
40
+ `msdyn_opportunityid/abc_salesstage eq 809770000` — emitted the value as a
41
+ quoted `Edm.String` (`'809770000'`), which Dataverse rejects with HTTP 500
42
+ / `0x80060888`. Standard columns appeared to work only by coincidence (the
43
+ root entity happened to own a same-named column). Root cause: the `$filter`
44
+ encoder resolved the leaf column against the **root** table instead of
45
+ walking the relationship to the **related** entity, so the leaf's
46
+ `AttributeType` never drove the quoting decision. The encoder now resolves
47
+ nav-path leaves against the correct related entity, so numeric/boolean/choice
48
+ types are emitted unquoted and strings/GUIDs are quoted, consistently.
49
+
50
+ ### ✨ Added / Changed (architecture)
51
+
52
+ - **Single, metadata-driven nav-path resolver (`resolveNavPath`)** in
53
+ `mock/metadata.ts` — now the one source of truth for resolving a
54
+ slash-delimited path (`nav/.../leaf`, alias-aware) to its leaf `ColumnMeta`,
55
+ owner table, visited chain, and first not-yet-loaded hop. The `$filter`
56
+ encoder (`colLookup`), the filter editor's leaf/pending-target resolution,
57
+ and the `$orderby` warnings all route through it, eliminating duplicated
58
+ walk logic that had drifted out of sync.
59
+ - **Related-entity metadata pre-warming (`useWarmReferencedTables`)** — the
60
+ Retrieve Multiple / Retrieve Single modes now walk the `$filter`, `$expand`,
61
+ `$apply`, and `$orderby` trees and pre-fetch the related entities they
62
+ reference. This makes correct type resolution independent of whether the
63
+ user opened the relevant editor — covering **saved-request reload**,
64
+ **pasted OData URLs**, and **direct Execute**. Targeted (only referenced
65
+ entities) and self-healing across multi-hop paths, so it stays clear of the
66
+ 100-concurrent-request cap.
67
+ - **Paste-OData parsing** now validates and pre-loads nav-path filter leaves
68
+ instead of skipping them.
69
+ - **Metadata cache TTL raised from 5 minutes to 1 hour**, with a new
70
+ **Settings → Refresh metadata** button (`metadata.refreshAll`) to force a
71
+ fresh pull after publishing schema changes mid-session.
72
+
8
73
  ## [1.1.0] - 2026-05-25
9
74
 
10
75
  ### ✨ Added