-
Notifications
You must be signed in to change notification settings - Fork 49
Fixing Seg Fault issue #402
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Reviewer's GuideRefactors widget initialization and state management to remove parent dependencies and improve test isolation, adds safe callback guards in dialogs, streamlines data‐filter logic, updates GUI test fixtures to properly close windows and extends overall test coverage with new module tests. Class diagram for updated SegmentSelectorWidget initialization and state managementclassDiagram
class SegmentSelectorWidget {
+__init__(segmentation_list: list[str] = None, data_location: str = "data/csv", update_callback: Callable[[], None] | None = None)
-_selected_list: list[str]
-_tree_choices_ref: dict[str, list[QTreeWidgetItem]]
+_selected_list_add_or_remove(body_text: str, state: Qt.CheckState | int)
+_uniform_selection(check: Qt.CheckState | int)
}
SegmentSelectorWidget --|> QtWidgets.QWidget
Class diagram for updated ButtonInputBox safe callback guardsclassDiagram
class ButtonInputBox {
-_send: Callable[[str], None] | None
-_close: Callable[[], None] | None
-text: QTextEdit | None
-delete_word: str | None
-typed_text: str | None
+_positive_action()
+_negative_action()
}
Class diagram for updated SegmentationListFilter data-filter logicclassDiagram
class SegmentationListFilter {
+_dict_row_filter(data: pandas.DataFrame, csv_column: str = None, filter_values: dict | list | None = None) -> pandas.DataFrame
+_column_filter(data: pandas.DataFrame, column_list: list[str]) -> pandas.DataFrame
+_strip_whitespace(data: pandas.DataFrame) -> pandas.DataFrame
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixing the Segfault issue it appears to be a legacy issue which somehow didn't show up in
Where the tests create a
MainWindow()object call.show()on it but never close it resulting in a segfault then the open window inevitably gets garbage collected.Summary by Sourcery
Fix segfault in GUI tests by ensuring windows are closed and garbage collected, refactor UI components for better testability, correct filtering logic, and add extensive unit tests across modules
Bug Fixes:
Enhancements:
Tests: