Skip to content

Fix #446 : session assembler - #450

Merged
antoineatsoprasteria merged 2 commits into
developmentfrom
446-feature-session-assembles-fetched-elements-into-pocos-and-caches-psm-records
Nov 23, 2026
Merged

antoineatsoprasteria merged 2 commits into
developmentfrom
446-feature-session-assembles-fetched-elements-into-pocos-and-caches-psm-records

Conversation

@antoineatsoprasteria

Copy link
Copy Markdown
Collaborator

Prerequisites

  • [x ] I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the SysML2.NET code style guidelines
  • I have provided test coverage for my change (where applicable)

Description

Fix #446

PSM caching has been dropped: A cache was prototyped, but it saved little: those responses are small, and the expensive request (a commit's elements) is already read only once, since commits are immutable. It also served stale data: changes made by other clients were hidden until a time-to-live expired, and a branch head could be out of date. An in-flight read could overwrite a fresh update with an older copy. Deciding what to evict after a write relied on naming conventions in the OpenAPI document. So this PR keeps only the assembler part. Caching for immutable records (commits, data versions) can be added later if it proves useful.

@antoineatsoprasteria antoineatsoprasteria linked an issue Nov 19, 2026 that may be closed by this pull request
4 of 11 tasks
@sonarqubecloud

Copy link
Copy Markdown

</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\SysML2.NET.Dal\SysML2.NET.Dal.csproj" />

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree, the REST client needs a dependency on Dal, just like in the COMET SDK

@antoineatsoprasteria
antoineatsoprasteria merged commit fffa113 into development Nov 23, 2026
8 checks passed
@antoineatsoprasteria
antoineatsoprasteria deleted the 446-feature-session-assembles-fetched-elements-into-pocos-and-caches-psm-records branch November 23, 2026 10:59
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.

[Feature]: Session assembles fetched elements into POCOs and caches PSM records

3 participants