-
Notifications
You must be signed in to change notification settings - Fork 81
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
Filter flight paths #1488
Filter flight paths #1488
Conversation
def update_counter(): | ||
operations = Operation.query.filter().all() | ||
for operation in operations: | ||
a = (datetime.datetime.utcnow() - operation.last_used).days |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at the moment operation.state is a boolean (operation.active) this can be simplified
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comment and also chat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comment
somehow locally I do have lots of tests failing because last_used is not initialized, e.g. pytest -k test_filemanager
It is unclear to me why the CIs don't run in this problem
please merge your gsoc branch into your filter_* branch |
./.github/workflows/testing.yml | ||
with: | ||
xdist: no | ||
branch_name: filter_flight_paths |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this has to become improved.
We have to desinguish for image_name and branch_name.
This needs an aditional var in testing.yml too.
@mock.patch("PyQt5.QtWidgets.QMessageBox.information") | ||
@mock.patch("PyQt5.QtWidgets.QInputDialog.getText", return_value=("new_name", True)) | ||
def test_handle_rename_operation(self, mockbox, mockpatch): | ||
self._connect_to_mscolab() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more tests ;) not related to the filter flight path.
That would be better to seperate this to another PR next time ;)
Thx :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I'll take care of this next time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx
* filter_flight_paths * fixed_msui * changed endpoints names and fixed typos * inactivated_operation_list_updated * added_tests * fixed_pytest_error * added_mscolab_tests * enable_github_testing * changed_branch name_in_testing-develop.yml * initialized_"last_used"_attribute * refactored_failing_tests * refactored_failing_tests
* Filter flight paths (#1488) * filter_flight_paths * fixed_msui * changed endpoints names and fixed typos * inactivated_operation_list_updated * added_tests * fixed_pytest_error * added_mscolab_tests * enable_github_testing * changed_branch name_in_testing-develop.yml * initialized_"last_used"_attribute * refactored_failing_tests * refactored_failing_tests * Multiple Flightpath on Topview (#1510) * multiple_flightpath_dockwidget * updated_multiple_flightpath_dockwidget * connect_slots_and_signals_to_open_ftml_files * Update ui_multiple_flightpath_dockwidget.py * updated_author_and_copyright_year * plot_multiple_flighttracks * remove_flighttrack_added * remove_unchecked_flighttracks_from_canvas * Update mpl_qtwidget.py * reversed_plotting_of_lat_lon * plot_flighttracks_from_MSUIMainWindow * plot_inactive_flighttracks * fixed_naming * sync_listViews * fixed_namespaces * Mscolab Chat Improvements (#1508) * timestamps_below_messages * added_ToDo * updated_multiple_flightpath_dockwidget (#1544) * updated_multiple_flightpath_dockwidget * set_activated_track_as_uncheckable * changed_flags_naming * improved_list_naming * flickering_topview_solved * change_color_of_selected_flightpath * show_color_icon * update_previously_activated_flighttrack_wp_model_in_dict * check_previously_activated_track * change_linewidth * plot_operations_topview * bug_fixes * checkmark_protection_behaviour_updated * show_flighttrack_color_icon * defined_coloring_of_operation_flightpaths * add_todos * add_comments * fixed_coloring_of_flighttracks * clear_operation_list_after_logout * signals_disconnected_after_logout * update_last_used_operation * fixed_test * fixed_color * implemented_operation_permission_revoked * revoked_mscolab_permission * change_operations_linewidth * fixed_uncheck_operations * remove_filter_flightpaths_test * color_change_updated * removed_activation_of_operations_on_addition * Update msui.py * fixed_tracks_coloring * add_todos * Add Documentation for Multiple Flightpath Dockwidget (#1595) * small_code_enhancements * update_documentation * flake8 * Empty-Commit Co-authored-by: Jatin Jain <72596619+Jatin2020-24@users.noreply.github.com> Co-authored-by: Jatin Jain <jatinalwar2001@gmail.com>
* Filter flight paths (#1488) * filter_flight_paths * fixed_msui * changed endpoints names and fixed typos * inactivated_operation_list_updated * added_tests * fixed_pytest_error * added_mscolab_tests * enable_github_testing * changed_branch name_in_testing-develop.yml * initialized_"last_used"_attribute * refactored_failing_tests * refactored_failing_tests * Multiple Flightpath on Topview (#1510) * multiple_flightpath_dockwidget * updated_multiple_flightpath_dockwidget * connect_slots_and_signals_to_open_ftml_files * Update ui_multiple_flightpath_dockwidget.py * updated_author_and_copyright_year * plot_multiple_flighttracks * remove_flighttrack_added * remove_unchecked_flighttracks_from_canvas * Update mpl_qtwidget.py * reversed_plotting_of_lat_lon * plot_flighttracks_from_MSUIMainWindow * plot_inactive_flighttracks * fixed_naming * sync_listViews * fixed_namespaces * Mscolab Chat Improvements (#1508) * timestamps_below_messages * added_ToDo * updated_multiple_flightpath_dockwidget (#1544) * updated_multiple_flightpath_dockwidget * set_activated_track_as_uncheckable * changed_flags_naming * improved_list_naming * flickering_topview_solved * change_color_of_selected_flightpath * show_color_icon * update_previously_activated_flighttrack_wp_model_in_dict * check_previously_activated_track * change_linewidth * plot_operations_topview * bug_fixes * checkmark_protection_behaviour_updated * show_flighttrack_color_icon * defined_coloring_of_operation_flightpaths * add_todos * add_comments * fixed_coloring_of_flighttracks * clear_operation_list_after_logout * signals_disconnected_after_logout * update_last_used_operation * fixed_test * fixed_color * implemented_operation_permission_revoked * revoked_mscolab_permission * change_operations_linewidth * fixed_uncheck_operations * remove_filter_flightpaths_test * color_change_updated * removed_activation_of_operations_on_addition * Update msui.py * fixed_tracks_coloring * add_todos * Add Documentation for Multiple Flightpath Dockwidget (#1595) * small_code_enhancements * update_documentation * flake8 * Empty-Commit Co-authored-by: Jatin Jain <72596619+Jatin2020-24@users.noreply.github.com> Co-authored-by: Jatin Jain <jatinalwar2001@gmail.com>
* Filter flight paths (#1488) * filter_flight_paths * fixed_msui * changed endpoints names and fixed typos * inactivated_operation_list_updated * added_tests * fixed_pytest_error * added_mscolab_tests * enable_github_testing * changed_branch name_in_testing-develop.yml * initialized_"last_used"_attribute * refactored_failing_tests * refactored_failing_tests * Multiple Flightpath on Topview (#1510) * multiple_flightpath_dockwidget * updated_multiple_flightpath_dockwidget * connect_slots_and_signals_to_open_ftml_files * Update ui_multiple_flightpath_dockwidget.py * updated_author_and_copyright_year * plot_multiple_flighttracks * remove_flighttrack_added * remove_unchecked_flighttracks_from_canvas * Update mpl_qtwidget.py * reversed_plotting_of_lat_lon * plot_flighttracks_from_MSUIMainWindow * plot_inactive_flighttracks * fixed_naming * sync_listViews * fixed_namespaces * Mscolab Chat Improvements (#1508) * timestamps_below_messages * added_ToDo * updated_multiple_flightpath_dockwidget (#1544) * updated_multiple_flightpath_dockwidget * set_activated_track_as_uncheckable * changed_flags_naming * improved_list_naming * flickering_topview_solved * change_color_of_selected_flightpath * show_color_icon * update_previously_activated_flighttrack_wp_model_in_dict * check_previously_activated_track * change_linewidth * plot_operations_topview * bug_fixes * checkmark_protection_behaviour_updated * show_flighttrack_color_icon * defined_coloring_of_operation_flightpaths * add_todos * add_comments * fixed_coloring_of_flighttracks * clear_operation_list_after_logout * signals_disconnected_after_logout * update_last_used_operation * fixed_test * fixed_color * implemented_operation_permission_revoked * revoked_mscolab_permission * change_operations_linewidth * fixed_uncheck_operations * remove_filter_flightpaths_test * color_change_updated * removed_activation_of_operations_on_addition * Update msui.py * fixed_tracks_coloring * add_todos * Add Documentation for Multiple Flightpath Dockwidget (#1595) * small_code_enhancements * update_documentation * flake8 * Empty-Commit Co-authored-by: Jatin Jain <72596619+Jatin2020-24@users.noreply.github.com> Co-authored-by: Jatin Jain <jatinalwar2001@gmail.com> Co-authored-by: Jatin Jain <jatinalwar2001@gmail.com> Co-authored-by: Jatin Jain <72596619+Jatin2020-24@users.noreply.github.com>
* Filter flight paths (#1488) * filter_flight_paths * fixed_msui * changed endpoints names and fixed typos * inactivated_operation_list_updated * added_tests * fixed_pytest_error * added_mscolab_tests * enable_github_testing * changed_branch name_in_testing-develop.yml * initialized_"last_used"_attribute * refactored_failing_tests * refactored_failing_tests * Multiple Flightpath on Topview (#1510) * multiple_flightpath_dockwidget * updated_multiple_flightpath_dockwidget * connect_slots_and_signals_to_open_ftml_files * Update ui_multiple_flightpath_dockwidget.py * updated_author_and_copyright_year * plot_multiple_flighttracks * remove_flighttrack_added * remove_unchecked_flighttracks_from_canvas * Update mpl_qtwidget.py * reversed_plotting_of_lat_lon * plot_flighttracks_from_MSUIMainWindow * plot_inactive_flighttracks * fixed_naming * sync_listViews * fixed_namespaces * Mscolab Chat Improvements (#1508) * timestamps_below_messages * added_ToDo * updated_multiple_flightpath_dockwidget (#1544) * updated_multiple_flightpath_dockwidget * set_activated_track_as_uncheckable * changed_flags_naming * improved_list_naming * flickering_topview_solved * change_color_of_selected_flightpath * show_color_icon * update_previously_activated_flighttrack_wp_model_in_dict * check_previously_activated_track * change_linewidth * plot_operations_topview * bug_fixes * checkmark_protection_behaviour_updated * show_flighttrack_color_icon * defined_coloring_of_operation_flightpaths * add_todos * add_comments * fixed_coloring_of_flighttracks * clear_operation_list_after_logout * signals_disconnected_after_logout * update_last_used_operation * fixed_test * fixed_color * implemented_operation_permission_revoked * revoked_mscolab_permission * change_operations_linewidth * fixed_uncheck_operations * remove_filter_flightpaths_test * color_change_updated * removed_activation_of_operations_on_addition * Update msui.py * fixed_tracks_coloring * add_todos * Add Documentation for Multiple Flightpath Dockwidget (#1595) * small_code_enhancements * update_documentation * flake8 * Empty-Commit Co-authored-by: Jatin Jain <72596619+Jatin2020-24@users.noreply.github.com> Co-authored-by: Jatin Jain <jatinalwar2001@gmail.com> Co-authored-by: ReimarBauer <rb.proj@gmail.com>
Functionalities Added: