Skip to content

Refactor treatment of versioned ApiMessage classes#2739

Merged
dpkp merged 4 commits intomasterfrom
dpkp/versioned-classes-redux
Mar 18, 2026
Merged

Refactor treatment of versioned ApiMessage classes#2739
dpkp merged 4 commits intomasterfrom
dpkp/versioned-classes-redux

Conversation

@dpkp
Copy link
Owner

@dpkp dpkp commented Mar 18, 2026

Reduces the impact of versioned-class interface on the new protocol stack. Now versioned classes produce non-versioned class instances, adding version=x as a kwarg. In addition the repr of all DataContainers now includes the version when set, and only includes fields for that version. This means that log lines for the new protocol will no longer include class names with a _v# suffix. Instead the version will be included as the first attribute.

@dpkp dpkp merged commit 39ecb15 into master Mar 18, 2026
19 checks passed
@dpkp dpkp deleted the dpkp/versioned-classes-redux branch March 18, 2026 22:05
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