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

BUG: Initialize _Controller Init Parameters #703

Merged
merged 6 commits into from
Oct 9, 2024

Conversation

MateusStano
Copy link
Member

Some arguments passed to __init__ of the _Controller class were not being saved. This PR fixes this issue

This is important for controller/airbrakes serialization.

Should be merged after #701

@MateusStano MateusStano requested a review from a team as a code owner October 6, 2024 22:00
@Gui-FernandesBR Gui-FernandesBR force-pushed the bug/init-variables-save-on-self branch from ed80d4e to ddbccb3 Compare October 9, 2024 01:53
Copy link
Member

@Gui-FernandesBR Gui-FernandesBR left a comment

Choose a reason for hiding this comment

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

@MateusStano I know you don't like the CHANGELOG.md file.
But keep in mind that, when you don't update it, someone else you have to do it for you.
In the case of last 3 PRs, that one was me.

@@ -84,8 +84,10 @@ def __init__(
None
"""
self.interactive_objects = interactive_objects
self.base_controller_function = controller_function
Copy link
Member

Choose a reason for hiding this comment

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

@MateusStano I have no idea why you want to save this attribute as base_controller_functioninstead of simply controller_function. I'm approving this since the class is still private.

@Gui-FernandesBR Gui-FernandesBR merged commit 57f1e79 into develop Oct 9, 2024
5 checks passed
@Gui-FernandesBR Gui-FernandesBR deleted the bug/init-variables-save-on-self branch October 9, 2024 02:23
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.90%. Comparing base (b9b44dd) to head (5aee235).
Report is 17 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #703      +/-   ##
===========================================
- Coverage    76.02%   75.90%   -0.12%     
===========================================
  Files           99       99              
  Lines        11278    11222      -56     
===========================================
- Hits          8574     8518      -56     
  Misses        2704     2704              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

2 participants