move_dates_for_testing throws misleading errors #33

Closed
opened 2021-12-07 23:19:37 +01:00 by nik · 7 comments
nik commented 2021-12-07 23:19:37 +01:00 (Migrated from edugit.org)

Occuring when called on the Untis test data, which does not have to be moved:

Traceback (most recent call last):
  File "/usr/local/bin/aleksis-admin", line 8, in <module>
    sys.exit(aleksis_cmd())
  File "/usr/local/lib/python3.9/dist-packages/aleksis/core/__main__.py", line 14, in aleksis_cmd
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.9/dist-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.9/dist-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.9/dist-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.9/dist-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.9/dist-packages/aleksis/apps/untis/management/commands/move_dates_for_testing.py", line 93, in handle
    raise RuntimeError("You need at least one validity range to move data.")
RuntimeError: You need at least one validity range to move data.
Occuring when called on the Untis test data, which does not have to be moved: ```plain Traceback (most recent call last): File "/usr/local/bin/aleksis-admin", line 8, in <module> sys.exit(aleksis_cmd()) File "/usr/local/lib/python3.9/dist-packages/aleksis/core/__main__.py", line 14, in aleksis_cmd execute_from_command_line(sys.argv) File "/usr/local/lib/python3.9/dist-packages/django/core/management/__init__.py", line 419, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.9/dist-packages/django/core/management/__init__.py", line 413, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python3.9/dist-packages/django/core/management/base.py", line 354, in run_from_argv self.execute(*args, **cmd_options) File "/usr/local/lib/python3.9/dist-packages/django/core/management/base.py", line 398, in execute output = self.handle(*args, **options) File "/usr/local/lib/python3.9/dist-packages/aleksis/apps/untis/management/commands/move_dates_for_testing.py", line 93, in handle raise RuntimeError("You need at least one validity range to move data.") RuntimeError: You need at least one validity range to move data. ```
nik commented 2021-12-07 23:19:37 +01:00 (Migrated from edugit.org)

assigned to @hansegucker

assigned to @hansegucker
nik commented 2021-12-07 23:29:48 +01:00 (Migrated from edugit.org)

changed due date to December 08, 2021

changed due date to December 08, 2021
nik commented 2021-12-10 16:46:50 +01:00 (Migrated from edugit.org)

changed title from move_dates_for_testing {-does not work with Chronos test data-} to move_dates_for_testing {+throws misleading errors+}

changed title from **move_dates_for_testing {-does not work with Chronos test data-}** to **move_dates_for_testing {+throws misleading errors+}**
nik commented 2021-12-10 16:46:50 +01:00 (Migrated from edugit.org)

changed the description

changed the description
hansegucker commented 2021-12-11 22:55:49 +01:00 (Migrated from edugit.org)

created merge request !177 to address this issue

created merge request !177 to address this issue
hansegucker commented 2021-12-11 22:55:49 +01:00 (Migrated from edugit.org)

mentioned in merge request !177

mentioned in merge request !177
nik (Migrated from edugit.org) closed this issue 2021-12-12 22:18:25 +01:00
nik commented 2021-12-12 22:18:26 +01:00 (Migrated from edugit.org)

mentioned in commit 2715d0b72f

mentioned in commit 2715d0b72f40c1c70fe9ce79f861f27aec97b3e3
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-App-Untis#33
No description provided.