Skip to content

[MISC] update wrapper methods context#187

Open
gboutry wants to merge 1 commit intocanonical:mainfrom
gboutry:fix/wrapper-context
Open

[MISC] update wrapper methods context#187
gboutry wants to merge 1 commit intocanonical:mainfrom
gboutry:fix/wrapper-context

Conversation

@gboutry
Copy link
Copy Markdown

@gboutry gboutry commented Jul 31, 2024

Update the wrapper methods context to the wrapped method.

Fix #186

This will make it easier to follow traced method in tracing tools (or even logs, if print method name in them)

Copy link
Copy Markdown
Contributor

@juditnovak juditnovak left a comment

Choose a reason for hiding this comment

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

Thank you very much for the fix/enhancement :-)

@paulomach paulomach requested a review from welpaolo August 13, 2024 18:40
Copy link
Copy Markdown
Contributor

@welpaolo welpaolo left a comment

Choose a reason for hiding this comment

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

Looks good to me! Please update LIBPATCH version to avoid publishing issues

Comment thread lib/charms/data_platform_libs/v0/data_interfaces.py Outdated
@gboutry gboutry force-pushed the fix/wrapper-context branch from cdf3a15 to e6844cc Compare August 14, 2024 07:56
@gboutry
Copy link
Copy Markdown
Author

gboutry commented Aug 14, 2024

Force push is rebase on main + incrementing libpatch

@juditnovak
Copy link
Copy Markdown
Contributor

juditnovak commented Aug 29, 2024

@gboutry A one-character fix is required so that the tests could pass. I aplogize it's my fault.
(We need the pipeline to be green so we could merge...)

You can find the fix on my replica of your PR #192

  * Update the wrapper methods context to the wrapped method.
  * Increase libpatch

Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
@gboutry gboutry force-pushed the fix/wrapper-context branch from e6844cc to 1accd1d Compare September 10, 2024 06:50
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.

Wrapper methods don't update their context, making harder to trace / follow in logs

3 participants