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

Merge stable to develop #2645

Merged
merged 6 commits into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
=========


Version 9.3.1
~~~~~~~~~~~~~
Bug fix release:

All changes:
https://github.com/Open-MSS/MSS/milestone/110?closed=1

Version 9.3.0
~~~~~~~~~~~~~
Bug fix release and minor enhancements:
Expand Down
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def generate_initial_config():
SQLALCHEMY_DB_URI = 'sqlite:///' + urljoin(DATA_DIR, 'mscolab.db')

# enable SQLALCHEMY_ECHO
SQLALCHEMY_ECHO = True
SQLALCHEMY_ECHO = False

# mscolab file upload settings
UPLOAD_FOLDER = fs.path.join(DATA_DIR, 'uploads')
Expand Down
8 changes: 4 additions & 4 deletions docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ Command-Line Commands for Keyring
1. **Set a Password**

Store a password for a specific service and user:

.. code-block:: bash

keyring set SERVICE_NAME USERNAME
Expand All @@ -434,7 +434,7 @@ Command-Line Commands for Keyring

- Case 2: Custom Authentication Service
.. code-block:: bash

keyring set MSCOLAB_AUTH_http://localhost:8083 mscolab

- The command will securely prompt you to input a password (e.g., `example_password`).
Expand Down Expand Up @@ -479,7 +479,7 @@ Command-Line Commands for Keyring
.. code-block:: bash

keyring delete http://localhost:8083 myname@mydomain

- Case 2: Custom Authentication Service
.. code-block:: bash

Expand All @@ -490,7 +490,7 @@ Command-Line Commands for Keyring
.. code-block:: bash

keyring get MSCOLAB_AUTH_http://localhost:8083 mscolab


Changing the database model
---------------------------
Expand Down
15 changes: 8 additions & 7 deletions mslib/msui/msui_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,14 +694,15 @@ def handle_import_local(self, extension, function, pickertype):
self.last_save_directory,
f"Flight Track (*.{extension});;All files (*.*)",
pickertype=pickertype)
if filenames is None:
return
if self.local_active:
if filenames is not None:
activate = True
if len(filenames) > 1:
activate = False
for name in filenames:
self.create_new_flight_track(filename=name, function=function, activate=activate)
self.last_save_directory = fs.path.dirname(name)
activate = True
if len(filenames) > 1:
activate = False
for name in filenames:
self.create_new_flight_track(filename=name, function=function, activate=activate)
self.last_save_directory = fs.path.dirname(name)
else:
for name in filenames:
self.mscolab.handle_import_msc(name, extension, function, pickertype)
Expand Down
2 changes: 1 addition & 1 deletion mslib/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
See the License for the specific language governing permissions and
limitations under the License.
"""
__version__ = u'9.3.0'
__version__ = u'9.3.1'
16 changes: 16 additions & 0 deletions tests/_test_msui/test_mscolab.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,22 @@ def test_import_file(self, name, qtbot):
imported_wp = self.window.mscolab.waypoints_model
assert len(imported_wp.waypoints) == name[2]

def test_none_import_file(self, qtbot):
with mock.patch("mslib.msui.msui_mainwindow.get_open_filenames", return_value=None) as mockopen:
self._connect_to_mscolab(qtbot)
modify_config_file({"MSS_auth": {self.url: self.userdata[0]}})
self._login(qtbot, emailid=self.userdata[0], password=self.userdata[2])
self._activate_operation_at_index(0)
wp = self.window.mscolab.waypoints_model
assert len(wp.waypoints) == 2
for action in self.window.menuImportFlightTrack.actions():
if action.objectName() == "actionImportFlightTrackFTML":
action.trigger()
break
assert mockopen.call_count == 1
imported_wp = self.window.mscolab.waypoints_model
assert len(imported_wp.waypoints) == 2

def test_work_locally_toggle(self, qtbot):
self._connect_to_mscolab(qtbot)
modify_config_file({"MSS_auth": {self.url: self.userdata[0]}})
Expand Down
Loading