Python-icat

Latest version: v1.3.0

Safety actively analyzes 630094 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

0.21.0

~~~~~~~~~~~~~~~~~~~

New features
------------

+ `100`_: Add read only attributes
:attr:`icat.query.Query.select_clause`,
:attr:`icat.query.Query.join_clause`,
:attr:`icat.query.Query.where_clause`,
:attr:`icat.query.Query.order_clause`,
:attr:`icat.query.Query.include_clause`, and
:attr:`icat.query.Query.limit_clause` to access the respective
clauses of the query string.

.. _100: https://github.com/icatproject/python-icat/pull/100


.. _changes-0_20_1:

0.20.1

~~~~~~~~~~~~~~~~~~~

Bug fixes and minor changes
---------------------------

+ `96`_: Fix failing build of the documentation at Read the Docs.

.. _96: https://github.com/icatproject/python-icat/pull/96


.. _changes-0_20_0:

0.20.0

~~~~~~~~~~~~~~~~~~~

New features
------------

+ `86`_, `89`_: allow SQL functions to be used on the attributes in
the arguments to :meth:`icat.query.Query.setOrder` and
:meth:`icat.query.Query.addConditions`.

Incompatible changes and new bugs
---------------------------------

+ `94`_: the implementation of `89`_ changed the internal data
structures in :attr:`icat.query.Query.conditions` and
:attr:`icat.query.Query.order`. These attributes are considered
internal and are deliberately not documented, so one could argue
that this is not an incompatible change. But the changes also have
an impact on the return value of :meth:`icat.query.Query.__repr__`
such that it is not suitable to recreate the query object.

Bug fixes and minor changes
---------------------------

+ `90`_, `91`_, `95`_: :attr:`icat.query.Query.join_specs` was not
taken into account in :meth:`icat.query.Query.copy` and
:meth:`icat.query.Query.__repr__`.

.. _86: https://github.com/icatproject/python-icat/issues/86
.. _89: https://github.com/icatproject/python-icat/pull/89
.. _90: https://github.com/icatproject/python-icat/issues/90
.. _91: https://github.com/icatproject/python-icat/issues/91
.. _94: https://github.com/icatproject/python-icat/issues/94
.. _95: https://github.com/icatproject/python-icat/pull/95


.. _changes-0_19_0:

0.19.0

~~~~~~~~~~~~~~~~~~~

New features
------------

+ `85`_: add an argument `join_specs` to the constructor of class
:class:`icat.query.Query` and a corresponding method
:meth:`icat.query.Query.setJoinSpecs` to override the join
specification to be used in the created query for selected related
objects.

Bug fixes and minor changes
---------------------------

+ `83`_, `84`_: enable ordering on one to many relationships in
class :class:`icat.query.Query`.

+ `84`_: Add warning classes
:exc:`icat.exception.QueryOneToManyOrderWarning` and
:exc:`icat.exception.QueryWarning`, the latter being a common base
class for warnings emitted during creation of a query.

.. _83: https://github.com/icatproject/python-icat/issues/83
.. _84: https://github.com/icatproject/python-icat/pull/84
.. _85: https://github.com/icatproject/python-icat/pull/85


.. _changes-0_18_1:

0.18.1

~~~~~~~~~~~~~~~~~~~

Bug fixes and minor changes
---------------------------

+ `82`_: Change the search result in the case of multiple fields from
list to tuple.

+ `76`_, `81`_: work around an issue in icat.server using `DISTINCT`
in search queries for multiple fields.

.. _76: https://github.com/icatproject/python-icat/issues/76
.. _81: https://github.com/icatproject/python-icat/pull/81
.. _82: https://github.com/icatproject/python-icat/pull/82


.. _changes-0_18_0:

0.18.0

~~~~~~~~~~~~~~~~~~~

New features
------------

+ `76`_, `78`_: add client side support for searching for multiple
fields introduced in icat.server 4.11.0. Add support for building
the corresponding queries in the in class :class:`icat.query.Query`.

Incompatible changes and deprecations
-------------------------------------

+ Since :class:`icat.query.Query` now also accepts a list of attribute
names rather then only a single one, the corresponding keyword
argument `attribute` has been renamed to `attributes` (in the
plural). Accordingly, the method
:meth:`icat.query.Query.setAttribute` has been renamed to
:meth:`icat.query.Query.setAttributes`. The old names are retained
as aliases, but are deprecated.

Bug fixes and minor changes
---------------------------

+ `79`_: fix an encoding issue in :attr:`icat.client.Client.apiversion`,
only relevant with Python 2.

+ `80`_: add :exc:`TypeError` as additional ancestor of
:exc:`icat.exception.EntityTypeError`.

.. _76: https://github.com/icatproject/python-icat/issues/76
.. _78: https://github.com/icatproject/python-icat/pull/78
.. _79: https://github.com/icatproject/python-icat/pull/79
.. _80: https://github.com/icatproject/python-icat/pull/80


.. _changes-0_17_0:

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.