Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extensions.Collection fixes #120

Merged
merged 2 commits into from
Aug 6, 2024
Merged

extensions.Collection fixes #120

merged 2 commits into from
Aug 6, 2024

Conversation

setrofim
Copy link
Contributor

@setrofim setrofim commented Aug 6, 2024

Fixs a couple of bugs in extensions.Collection Implementation

Collection.GetExtensions() used to return is cached extensions map, even
when that map was empty. However, the contract for IExtensible (which
Collection implements) is that it should return nil when it has no
extensions registered.

signed-off-by: sergei trofimov <[email protected]>
Ensure that when RegisterExtensions() is called on a non-empty
collection, new extensions are propagated to the collection's existing
values.

Signed-off-by: Sergei Trofimov <[email protected]>
@setrofim setrofim changed the title Ext fixes extensions.Collection fixes Aug 6, 2024
Copy link
Contributor

@jraman567 jraman567 left a comment

Choose a reason for hiding this comment

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

Thanks for the fix, Sergei! I can access comid.ExtReferenceValue with this pull request.

@thomas-fossati thomas-fossati merged commit 840f644 into main Aug 6, 2024
9 checks passed
@thomas-fossati thomas-fossati deleted the ext-fixes branch August 6, 2024 16:42
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.

3 participants