SHA256
14
0
forked from pool/python-rt
Commit Graph

13 Commits

Author SHA256 Message Date
Sebastian Wagner
e4be26498d - update to version 3.0.0
- The following is a major release of the `rt` library.
  - There is support for the REST API version 1 as well as version 2.
  - Please note that this release contains breaking changes and requires adaptations to existing code, even if you are sticking to version 1 of the API.
  - These changes were necessary in order to properly support both API versions.
 - Added
  - RT REST2 support was added and is mostly on par with the REST1 support (differences are a result of the REST2 API implementation differences in RT).
  - REST2 is a modern API based on JSON exchanges and thus the complex parsing of responses and request construction are no longer needed.
 - Changes
  - Existing exception classes were renamed to adhere to the naming convention (https://peps.python.org/pep-0008/#exception-names).
   - In case you do catch specific `rt` exceptions, a simple search/replace will do, see the changelog page in the documentation for details.
  - Importing the `rt` class changed in order to better accommodate the new `rest2` implementation.
   - Where one use to be able to import `rt` using:
     `from rt import Rt`
     you now have to use the following syntax:
     `from rt.rest1 import Rt`
  - Importing the `rt` module does no longer import all exceptions but only the core `RtError` exception.
  - If you require other exceptions, please import them from `rt.exceptions`.
  - Use pytest instead of nose.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=23
2022-05-22 10:19:54 +00:00
Sebastian Wagner
a77646f38d - Update to version 2.2.2:
- Fix bug in the get_ticket would omit certain fields in case they were empty instead of returning an empty list as was the previous behavior (#70).
 - Add tests for verifying correct return result for AdminCc, Cc and Requestor fields.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=21
2022-04-09 07:30:58 +00:00
Sebastian Wagner
bfc864ced2 - Update to version 2.2.1:
- Fix bug in get_attachment_content which was a workaround for a bug in RT <=4.2 (trailing new-lines) but which was fixed in RT >=4.2. This made tests fail and return falsely stripped attachment content.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=20
2021-11-27 10:11:46 +00:00
Sebastian Wagner
f6f2a27208 - Update to version 2.2.0:
- Search has a parameter fields that can be used to return only particular fields for tickets. In some cases I noticed it will improve the speed of the query completion if you only need specific fields (#65 by @kimmoal).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=19
2021-11-15 20:54:04 +00:00
Sebastian Wagner
0974e5071b - Update to version 2.1.1:
- Fix support for custom field values containing newlines in API responses (#10, #11)
   (the previous change in v1.0.11 fixed API requests) (#64)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=17
2021-04-12 15:25:47 +00:00
Sebastian Wagner
0bb4a4c847 - Update to version 2.1.0:
- Add the possibility to provide cookies as dict to authenticate (#60)
 - Add IS and IS NOT operators to search (#57)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=15
2021-02-25 19:44:40 +00:00
Sebastian Wagner
3cc49b79c4 - Remove Requires for nose, not used.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=12
2020-08-16 15:54:58 +00:00
Sebastian Wagner
fd8317c750 - update to version 2.0.1:
- Documentation: add search example
 - edit_ticket: handle empty responses
 - fix UnicodeDecodeError in logging code for non-text attachments

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=11
2020-08-08 12:20:21 +00:00
Sebastian Wagner
b6a58bfd6a - update to version 2.0.0:
- Drop Python2 support
 - Adjust Travis tests for Python3-only, and add v3.8
 - Add inline typing
 - Remove "debug_mode" parameter
 - Add "logging" support (basically replacing "debug_mode" and the various "print"s)
 - Fix "no-else-after-return" and "no-else-after-raise"
 - Fix "startswitch" typos / bugs
 - Removed deprecated "basic_auth" and "digest_auth" paramters. The same functionality is given by specifying the
   "http_auth" with an instance of either object. This allows for more flexibility with various other alternative
   authentication methods.
- update to version 1.0.13:
 - Add deprecation warning for in the next major release unsupported parameters (basic_auth, digest_auth).
   They are now replaced with http_auth.
 - Fix problematic default method parameters ("{}" and "[]").

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=9
2020-03-15 10:45:20 +00:00
Sebastian Wagner
17518b4d70 - update to version 1.0.12:
- Travis CI Docker tests
 - RT 4.4 fixes
 - Support multiline CF values in create_ticket and edit_ticket.
 - Fix support for custom field names containing colons
 - In search(), replace splitlines() with lines array split on \n.
 - Add debug_mode flag for response logging
 - Add platform independent url joining / Allow testing on Windows
 - Add numerical_id to get_ticket result

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=7
2019-11-26 14:37:12 +00:00
fac30fca23 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=5
2018-12-04 14:01:08 +00:00
Sebastian Wagner
6ee2b741e7 - update to version 1.0.11:
- Added parameter to set the content type in reply() and comment() (#12).
 - Added parameter Format to search() (#17).
 - Tests: Update to new demo instance, fixing tests.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=3
2018-07-29 17:35:00 +00:00
Tomáš Chvátal
f5f63ea58b Accepting request 586062 from home:sebix
can maintain it

OBS-URL: https://build.opensuse.org/request/show/586062
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=1
2018-03-12 21:31:09 +00:00