Skip to content

0.2.19

Compare
Choose a tag to compare
@eoyilmaz eoyilmaz released this 17 May 13:00
· 74 commits to master since this release
  • Update: Updated the stalker.config.Config.database_engine_settings to point the test database.

  • Fix: Fixed a bug in stalker.testing.UnitTestDBBase.setUp() where it was not considering the existence of the STALKER_PATH environment variable while doing the tests.

  • Update: Removed debug message from db.setup() which was revealing the database password.

  • Update: Updated the UnitTestDBBase, it now creates its own test database, which allows all the tests to run in an individual database. Thus, the tests can now be run in multiprocess mode which speeds things a lot.

  • Fix: Removed any module level imports of stalker.defaults variable, which can be changed by a Studio (or by tests) and should always be refreshed.

  • Update: Removed the module level import of the stalker.db.session.DBSession in stalker.db, so it is not possible to use db.DBSession anymore (use stalker.db.session.DBSession instead).

  • Update: The import statements that imports stalker.defaults moved to local scopes to allow runtime changes to the defaults to be reflected correctly.

  • Update: Added Python fall back mode to stalker.shot.Shot._check_code_availability() which runs when there is no database.

  • Update: stalker.models.task.TimeLog._validate_task() is now getting the Status instances from the StatusList that is attached to the Task instance instead of doing a database query.

  • Update: stalker.models.task.TimeLog._validate_resource() is now falling back to a Python implementation if there is no database connection.

  • Update: stalker.models.task.Task._total_logged_seconds_getter() is now hundreds of times faster when there is a lot of TimeLog instances attached to the Task.

  • Update: In stalker.models.task.Task class, methods those were doing a database query to get the required Status instances are now using the attached StatusList instance to get them.

  • Fix: A possible auto_flush is prevented in Ticket class.

  • Update: Version.latest_version property is now able to fall back to a pure Python implementation when there is no database connection.

  • Update: The default log level has been increased from DEBUG to INFO.

  • Update: In an attempt to speed up tests, a lot of tests that doesn't need an active Database has been updated to use the regular unittest.TestCase instead of stalker.testing.TestBase and as a result running all of the tests are now 2x faster.

  • Fix: TimeLogs are now correctly reflected in UTC in a tj3 file.

  • Fix: Fixed a lot of tests which were raising Warnings and surprisingly considered as Errors in TravisCI.

  • Fix: to_tjp methods of SOM classes that is printing a Datetime object are now printing the dates in UTC.

  • Fix: Fixed stalker.models.auth.Permission to be hashable for Python 3.

  • Fix: Fixed stalker.models.auth.AuthenticationLog to be sortable for Python 3.

  • Fix: Fixed stalker.models.version.Version.latest_version property for Python 3.

  • Fix: Fixed tests of Permission class to check for correct exception messages in Python 3.

  • Update: Replaced the assertEquals and assertNotEquals calls which are deprecated in Python 3 with assertEqual and assertNotEquals calls respectively.

  • Fix: Fixed tests for User and Version classes to not to cause the id column is None warnings of SQLAlchemy to be emitted.