@@ -4,21 +4,30 @@ Changelog
442.1.0 (2018-05-XX)
55++++++++++++++++++
66
7+ This release concentrates mostly on stability and adds small features here and there. Some of them
8+ are backwards incompatible and are marked as such. They shouldn't affect many users since most of
9+ them were used internally by Python-Redmine. A support for the Files API has been finally added, but
10+ please be sure to check it's documentation as the implementation on the Redmine side is horrible and
11+ there are things to keep in mind while working with Files API. Lastly, only until the end of May 2018
12+ there is a chance to buy a Pro Edition for only 14.99$ instead of the usual 24.99$, this is your
13+ chance to get an edition with additional features for a good price and to support the further development
14+ of Python-Redmine, more info `here <https://python-redmine.com/editions.html#pro-edition >`_.
15+
716**New Features **:
817
918- Files API support (`Issue #117 <https://github.com/maxtepkeev/python-redmine/issues/117 >`__)
1019
1120**Improvements **:
1221
13- - ResourceSet's ``filter() `` method became more advanced. It is now possible to filter on all available
14- resource attributes, to follow resource relationships and apply lookups to the filters (see
15- `docs <https://python-redmine.com/introduction.html#methods >`__ for details)
22+ - * Backwards Incompatible: * ResourceSet's ``filter() `` method became more advanced. It is now possible
23+ to filter on all available resource attributes, to follow resource relationships and apply lookups to
24+ the filters (see `docs <https://python-redmine.com/introduction.html#methods >`__ for details)
1625- ResourceManager class has been refactored:
1726
1827 * ``manager_class `` attribute on the ``Resource `` class can now be used to assign a separate
1928 ``ResourceManager `` to a resource, that allows outsourcing a resource specific functionality to a
2029 separate manager class (see ``WikiPageManager `` as an example)
21- * ``request() `` method has been removed
30+ * * Backwards Incompatible: * ``request() `` method has been removed
2231 * ``_construct_*_url() ``, ``_prepare_*_request() ``, ``_process_*_response() `` methods have been added
2332 for create, update and delete methods to allow a fine-grained control over these operations
2433
@@ -40,19 +49,20 @@ Changelog
4049
4150**Changes **:
4251
43- - Issue ``all `` operation now really returns all issues, i.e. both open and closed, instead of only returning
44- open issues in previous versions due to the respect to Redmine's standard behaviour
45- - Instead of only returning a token string, ``upload() `` method was modified to return a dict that contains
46- all the data for an upload returned from Redmine, i.e. id and token for Redmine >= 3.4.0, token only for
47- Redmine < 3.4.0. Also it is now possible to use this token and pass it using a ``token `` key instead of the
48- ``path `` key with path to the file in ``uploads `` parameter when doing an upload, this gives more control
49- over the uploading process if needed
50- - Removed ``resource_paths `` argument from Redmine object since ``ResourceManager `` now uses a special resource
51- registry, to which, all resources that inherit from any Python-Redmine resource are being automatically added
52- - Removed ``container_many `` in favor of ``container_filter ``, ``container_create `` and ``container_update ``
53- attributes on ``Resource `` object to allow more fine-grained resource setup
54- - ``return_raw `` parameter on ``engine.request() `` and ``engine.process_response() `` methods has been removed
55- in favor of ``return_raw_response `` attribute on engine object
52+ - *Backwards Incompatible: * Issue ``all `` operation now really returns all issues, i.e. both open and closed,
53+ instead of only returning open issues in previous versions due to the respect to Redmine's standard behaviour
54+ - *Backwards Incompatible: * Instead of only returning a token string, ``upload() `` method was modified to return
55+ a dict that contains all the data for an upload returned from Redmine, i.e. id and token for Redmine >= 3.4.0,
56+ token only for Redmine < 3.4.0. Also it is now possible to use this token and pass it using a ``token `` key
57+ instead of the ``path `` key with path to the file in ``uploads `` parameter when doing an upload, this gives
58+ more control over the uploading process if needed
59+ - *Backwards Incompatible: * Removed ``resource_paths `` argument from Redmine object since ``ResourceManager ``
60+ now uses a special resource registry, to which, all resources that inherit from any Python-Redmine resource
61+ are being automatically added
62+ - *Backwards Incompatible: * Removed ``container_many `` in favor of ``container_filter ``, ``container_create ``
63+ and ``container_update `` attributes on ``Resource `` object to allow more fine-grained resource setup
64+ - *Backwards Incompatible: * ``return_raw `` parameter on ``engine.request() `` and ``engine.process_response() ``
65+ methods has been removed in favor of ``return_raw_response `` attribute on engine object
5666- Updated bundled requests library to v2.15.1
5767
5868**Bugfixes **:
@@ -121,8 +131,9 @@ user.
121131 ``pre_*() `` and ``post_*() `` methods
122132 * ``ResourceSet `` object's ``get() `` and ``filter() `` methods now supports non-integer id's, e.g.
123133 WikiPage's title can now be used with it
124- * ``ValuesResourceSet `` class has been removed
125- * ``ResourceSet.values() `` method now returns an iterable of dicts instead of ``ValuesResourceSet `` object
134+ * *Backwards Incompatible: * ``ValuesResourceSet `` class has been removed
135+ * *Backwards Incompatible: * ``ResourceSet.values() `` method now returns an iterable of dicts instead of
136+ ``ValuesResourceSet `` object
126137 * ``ResourceSet.values_list() `` method has been added which returns an iterable of tuples with Resource
127138 values or single values if flattened, i.e. ``flat=True ``
128139
@@ -146,21 +157,23 @@ user.
146157
147158**Changes **:
148159
149- - Renamed package name from ``redmine `` to ``redminelib ``
160+ - * Backwards Incompatible: * Renamed package name from ``redmine `` to ``redminelib ``
150161- Resource class attributes that were previously tuples are now lists
151- - ``_Resource `` class renamed to ``Resource ``
152- - ``Redmine.custom_resource_paths `` keyword argument renamed to ``resource_paths ``
153- - ``Redmine.download() `` method now returns a `requests.Response <http://docs.python-requests.org/
154- en/latest/api/#requests.Response> `__ object directly instead of ``iter_content() `` method if a ``savepath ``
155- param wasn't provided, this gives user even more control over response data
156- - ``Resource.refresh() `` now really refreshes itself instead of returning a new refreshed
157- resource, to get the previous behaviour use ``itself `` param, e.g. ``Resource.refresh(itself=False) ``
158- - Removed Python 3.2 support
159- - Removed ``container_filter ``, ``container_create `` and ``container_update `` attributes on ``Resource ``
160- object in favor of ``container_many `` attribute
161- - Removed ``Resource.translate_params() `` and ``ResourceManager.prepare_params() `` in favor of
162- ``Resource.bulk_decode() ``
163- - Removed ``is_unicode() ``, ``is_string() `` and ``to_string() `` from ``redminelib.utilities ``
162+ - *Backwards Incompatible: * ``_Resource `` class renamed to ``Resource ``
163+ - *Backwards Incompatible: * ``Redmine.custom_resource_paths `` keyword argument renamed to ``resource_paths ``
164+ - *Backwards Incompatible: * ``Redmine.download() `` method now returns a `requests.Response
165+ <http://docs.python-requests.org/en/latest/api/#requests.Response> `__ object directly instead of
166+ ``iter_content() `` method if a ``savepath `` param wasn't provided, this gives user even more control over
167+ response data
168+ - *Backwards Incompatible: * ``Resource.refresh() `` now really refreshes itself instead of returning a new
169+ refreshed resource, to get the previous behaviour use ``itself `` param, e.g. ``Resource.refresh(itself=False) ``
170+ - *Backwards Incompatible: * Removed Python 3.2 support
171+ - *Backwards Incompatible: * Removed ``container_filter ``, ``container_create `` and ``container_update `` attributes
172+ on ``Resource `` object in favor of ``container_many `` attribute
173+ - *Backwards Incompatible: * Removed ``Resource.translate_params() `` and ``ResourceManager.prepare_params() `` in
174+ favor of ``Resource.bulk_decode() ``
175+ - *Backwards Incompatible: * Removed ``is_unicode() ``, ``is_string() `` and ``to_string() `` from
176+ ``redminelib.utilities ``
164177- Updated bundled requests library to v2.13.0
165178
166179**Bugfixes **:
0 commit comments