Releases: KE-works/pykechain
v1.14.2
1.14.2 (24JAN18)
- enabled to use of property model UUID in the
Part.add_with_properties()
next to using property names. (#258) - enabled to search for properties using UUID next to using property names. This is provided for you in
Part.property()
. - updated dependent versions for development: pytest (3.3.2), sphinx (1.6.6), nbsphinx (0.3.1), matplotlib (2.1.2), mypy (0.560)
1.14.1 (24JAN18)
- The
Part.update()
is now considerate if you provide the property UUIDs inside theupdate_dict
as well as property names. You can even mix UUIDs and property names together. (#263) Thanks to @raduiordache
1.14.0 (11DEC17)
- In preparation for the release of KE-chain 2.7.0-132, we added support for multireference properties in pykechain. Pykechain 1.14 is compatible with both older versions of KE-chain as well as the ones supporting multireference properties. The main difference is that you need to provide a list of
Part
s orpart_id
s instead of a singlePart
orpart_id
. It will override the value in KE-chain fully, no adding or substraction methods are provided, you need to do that in your own code. - Updated documentation for the
MultiReferenceProperty
. - updated dependent versions for development: pytest (3.3.1)
v1.14
1.14.0 (11DEC17)
- In preparation for the release of KE-chain 2.7.0-132, we added support for multireference properties in pykechain. Pykechain 1.14 is compatible with both older versions of KE-chain as well as the ones supporting multireference properties. The main difference is that you need to provide a list of
Part
s orpart_id
s instead of a singlePart
orpart_id
. It will override the value in KE-chain fully, no adding or substraction methods are provided, you need to do that in your own code. - Updated documentation for the
MultiReferenceProperty
. - updated dependent versions for development: pytest (3.3.1)
v1.13.3
1.13.3 (5DEC17)
- added the 'type' attribute to a property (#248)
- updated the enums documentation to include all the possible enums available (#247)
1.13.2 (4DEC17)
- A wrong statuscode check prevented the upload of a script to complete fully in pykechain. The script is properly uploaded, but pykechain checked against wrong code (#246).
- updated dependent versions for development: pyopenssl (17.5.0), pytest (3.3.0), nbsphinx (0.2.18)
1.13.1 (16NOV17)
- Added additional xtypes to the list of allowed xtypes in the customizations in order to support our new widgets. (#240)
- updated dependent versions for development: pytest (3.2.5)
1.13 (9NOV17)
- Added
Service
andServiceExecution
models to pykechain (#231). This includes the ability tocreate
,retrieve
,edit
,destroy
andupload
kecpkg files to KE-chain. Also theretrieve
,terminate
, anddownload log
results forServiceExecution
s (which are associated toService
s) are available. This bringspykechain
in line with the full abilities in KE-chain 2 SIM release (31OKT17) (SIM module license needed). Also see the PyPI packagekecpkg-tools
from KE-works to help you smoothen the workflow of creating custom KE-chain supported python packages (kecpkg
) that can be executed by the KE-chain SIM module. - Added additional keywords arguments in the scope and activity searchers. You can now craft complex search queries to the KE-chain API (#231)
- Prevented the creation of Activities with incorrect activity_class. This is now prevented in pykechain (#225)
- Added an option for all models to
reload
(will return a new object) andrefresh
(will update in place). (#232) - Added additional tests and improved documentation for
Service
andServiceExecution
models. - updated dependent versions for development: matplotlib (2.1.0), nbsphinx (0.2.16), flake8 (3.5.0), sphinx (1.6.5), mypy (0.540), pydocstyle (2.1.1)
v1.13.1
v1.13.0
1.13 (9NOV17)
- Added
Service
andServiceExecution
models to pykechain (#231). This includes the ability tocreate
,retrieve
,edit
,destroy
andupload
kecpkg files to KE-chain. Also theretrieve
,terminate
, anddownload log
results forServiceExecution
s (which are associated toService
s) are available. This bringspykechain
in line with the full abilities in KE-chain 2 SIM release (31OKT17) (SIM module license needed). Also see the PyPI packagekecpkg-tools
from KE-works to help you smoothen the workflow of creating custom KE-chain supported python packages (kecpkg
) that can be executed by the KE-chain SIM module. - Added additional keywords arguments in the scope and activity searchers. You can now craft complex search queries to the KE-chain API (#231)
- Prevented the creation of Activities with incorrect activity_class. This is now prevented in pykechain (#225)
- Added an option for all models to
reload
(will return a new object) andrefresh
(will update in place). (#232) - Added additional tests and improved documentation for
Service
andServiceExecution
models. - updated dependent versions for development: matplotlib (2.1.0), nbsphinx (0.2.16), flake8 (3.5.0), sphinx (1.6.5), mypy (0.540), pydocstyle (2.1.1)
v1.12.9
note:: We have many point releases for release 1.12 as we are actively working on project that require timely updates of found bugs. Pykechain only gets better with every point release.
1.12.9 (5OCT17)
- Improved scope control for activity queries. Will ensure that the scope_id of an acitivity is properly retrieved and checked for in case of subqueries such as
Activity.children()
,siblings
,subprocess
. - Updated dependent versions for development: pytest updated to 3.2.3 (#215)
1.12.8 (2OCT17)
- Fixed a bug where the scope object was ambigously retrieved during the edit assignees of an activity action. It failed when the scope was closed. Thanks to @raduiordache for its find! (#211)
- Updated dependent versions for development for tox to 2.9.1 and Sphinx to 1.6.4 (#198, #209)
1.12.7 (2OCT17)
- Fixed a bug where a model without an instance raises an incorrect Error. Now it will raise a
NotFoundError
(#207).
1.12.6 (28SEP17)
- Fixed a bug in the
models.customisation
. After a succesfull save of a customisation to an activity, the activity could not be retrieved from KE-chain if the activity was part of a closed scope (#205).
1.12.5 (28SEP17)
- The
get_project()
helper method will now retrieve a scope a status other than 'ACTIVE' only (#203). - Updated the documentation to fix wrongly formatted examples.
1.12.4 (26SEP17)
- Fixed a bug in the customization code by which the activity was incorrectly updated after a correctly saved customization to the KE-chain server. In some cases the incorrect customisation was retrieved on name basis, which may resulted in an error raised. Thanks to @raduiordache for finding it (#200).
- Added
**kwargs
to thePart.children()
,Part.siblings()
,Part.instances()
,Activity.children()
, andActivity.siblings()
methods. This will enable more comprehensive searches, eg. by the name of children usingActivity.children(name='Some childs name')
(#199).
1.12.3 (21SEP17)
- Fixing the warning: 'could not any envfile' from envparse. Which is suppressed for cosmetics. It is advised to provide a pathname for the envfile when you want to load the environment variables from an envfile (#195).
- Fixed tests for the envparse warning and refactored the tests to better deal with in-test settings of the environment.
1.12.2 (15SEP17)
- Removed a logical error in the checking of the existing of the environment variables.
1.12.1 (15SEP17)
- Added the ability to enforce the use of environment variables when the KECHAIN_FORCE_ENV_USE is set to a true value in the environment. Altered documentation and altered tests for that (#193).
1.12 (14SEP17)
-
Added a new helper
get_project()
to bootstrap a pykechain client and return a project (aka Scope) immediately. You can retrieve a project using direct argumentsurl
,token
(orusername
andpassword
), andscope_id
(orscope
name). Alternatively, you can provide an.env
file or provide the arguments from the environment as the environment variablesKECHAIN_URL
,KECHAIN_TOKEN
(orKECHAIN_USERNAME
andKECHAIN_PASSWORD
), andKECHAIN_SCOPE_ID
(orKECHAIN_SCOPE
) (#185). This is ideal forpykechain
scripts in the KE-chain SIM, as we provide support for this to make your scripting experience in KE-chain buttersmooth. An example:from pykechain import get_project
project = get_project(url='http://localhost:8000', username='foo', password='bar', scope='Bike Project')
print(project.name) -
Added additional checks for the
Client
to check if the url provided is correct (#185). -
Improved the state of the project on codacy, a nice code quality monitor, from B to A grade. Removed over 100 insecure code elements, according to codacy. See: https://www.codacy.com/app/KE-works/pykechain/dashboard (#187).
-
Updated dependent versions of pyopenssl to 1.1.2 (#188), pytest to 3.2.2 (#183) and tox to 2.8.2 (#184).
-
Updated coverage of the files to internal standards. The critical models are now 100% tested such as the
Client
,Activity
andPart
. (#190) see: https://coveralls.io/github/KE-works/pykechain.
v1.12.8
1.12.8 (2OCT17)
- Fixed a bug where the scope object was ambigously retrieved during the edit assignees of an activity action. It failed when the scope was closed. Thanks to @raduiordache for its find! (#211)
- Updated dependent versions for development for tox to 2.9.1 and Sphinx to 1.6.4 (#198, #209)