Skip to content

Releases: huntfx/ftrack-query

Reorganise module

20 Nov 17:37
Compare
Choose a tag to compare

Features

  • Split base.py into abstract.py and utils.py
  • Moved FTrackQuery from query.py to __init__.py

Improvements

  • and_() and or_() will skip any None inputs

Fixes

  • Fix error when closing session in debug mode
  • Fix potential error when using asc() and desc()

Event class and Python 3

09 Sep 12:12
Compare
Choose a tag to compare

Features

  • Event class
  • Update to Python 3

Improvements

  • Add __call__ method to entities as an alternative to using __eq__
  • Automatically remap query to use IDs if passing list of entities into .in_()

Fixes

  • Inverting a query will now correctly recalculate the order of operations
  • Speech marks are now escaped in strings

Better support for reversing queries

07 Jul 12:26
Compare
Choose a tag to compare
  • not_ function added.
  • Reversing a reversed query will now un-reverse it.

Improve subquery support

29 Jun 13:48
Compare
Choose a tag to compare
  • Now in_('a', 'b', 'c') will also work.

Add subquery support

30 Apr 13:02
Compare
Choose a tag to compare
  • Added the in_ method to run subqueries.

Separate entity class

15 Apr 16:55
Compare
Choose a tag to compare
  • "Reserved" keywords are now allowed as entity attributes. Before, using syntax like entity.sort.value would result in an error since sort was a method.

Remove entity guessing and add quick access with primary keys

30 Mar 15:11
Compare
Choose a tag to compare
  • Under specific circumstances, the entity type can be called with a primary key.
    Currently this support is just for User, with the syntax user = session.User(username).
  • Removed entity keyword guessing as it was a bit hacky and definitely not futureproofed.
    An example of this was passing in a FileComponent, where it would evaluate to file_component=FileComponent

Fix bug with attribute sort check

05 Mar 11:05
Compare
Choose a tag to compare
  • Fix error when using a Query object inside the sort method.

Input parsing and better sorting

01 Mar 17:33
Compare
Choose a tag to compare
  • Inputs are all parsed in the same way now
  • Added .asc() and .desc() for sorting
  • Bug fixes/quality of life improvements

Validation and fixes

04 Feb 11:25
Compare
Choose a tag to compare
  • Helper for creating CalendarEvent entities
  • Expand Comparison.has and Comparison.any functionality to match Query.where
  • Fix FTrackQuery.get to be compatible with ftrack_api.Session.get
  • Improve logging
  • Check entity type exists before creating a Query object
  • Add __reversed__ method to swap sort order