Releases: KE-works/pykechain
Releases · KE-works/pykechain
v1.12.4
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. Thansk 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)
v1.12.3
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.
v1.12.2
v1.12.1
v1.12.0
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.11.1
1.11.1 (4SEP17)
- Added the ability to clear an attachment field (unlink the attachment). Please refer to the
AttachmentProperty.clear()
method. - Ensured a more robust updating of property value all over by altering
Property._value
andProperty._json_data['value']
after you set a value on a property.
1.11 (4SEP17)
- In KE-chain 2.5 the way we use task customization has changed drastically. Pykechain (from 1.11 onwards) supports this by implementing a new concept in the activity called
Activity.customization()
(#161). This provides you anExtCustomization
object, which you can inspect and add new widgets. Please see the documentation onExtCustomization
andActivity.customization()
for more details. An example to use is:
>>> activity = project.activity(name='Customizable activity')
>>> customization = activity.customization()
>>> part_to_show = project.part(name='Bike')
>>> customization.add_property_grid_widget(part_to_show, custom_title="My super bike"))
- Removed previously announced deprecated method for
activity.create_activity()
(useActivity.create()
). - Added deprecation warnings when using
InspectorComponent
objects and old styleCustomization
components. They will be removed in November 2017 (introduced in pykechain 1.9) - Added the ability to retrieve a list of project members and managers with the
Scope.members()
method (#169) - Added the ability to manage member and managers of a scope. See the
Scope.add_member
,add_manager
,remove_member
,remove_manager
(#175) - Added the ability to add additional keyword arguments for the methods
Part.update()
,Part.add_with_properties()
andPart.edit()
. This will allow to provide additional (including undocumented) arguments to the KE-chain API. (eg. 'suppress_kevents=True') (#177) - Added the ability to edit the name of the property, its description and the unit (#146, PR #179)
- Added classification enumeration (#175)
- Updated the documentation structure to better access all the pykechain models related documentation. See http://pykechain.readthedocs.io/en/latest/developer_api.html
- Updated dependent version of tox to 2.8.0 (#178) and further to 2.8.1 (#180)
- Updated all tests such that our coverage aim of 96%+ is maintained.
v1.11.0
1.11 (4SEP17)
- In KE-chain 2.5 the way we use task customization has changed drastically. Pykechain (from 1.11 onwards) supports this by implementing a new concept in the activity called
Activity.customization()
(#161). This provides you anExtCustomization
object, which you can inspect and add new widgets. Please see the documentation onExtCustomization
andActivity.customization()
for more details. An example to use is:
>>> activity = project.activity(name='Customizable activity')
>>> customization = activity.customization()
>>> part_to_show = project.part(name='Bike')
>>> customization.add_property_grid_widget(part_to_show, custom_title="My super bike"))
- Removed previously announced deprecated method for
activity.create_activity()
(useActivity.create()
). - Added deprecation warnings when using
InspectorComponent
objects and old styleCustomization
components. They will be removed in November 2017 (introduced in pykechain 1.9) - Added the ability to retrieve a list of project members and managers with the
Scope.members()
method (#169) - Added the ability to manage member and managers of a scope. See the
Scope.add_member
,add_manager
,remove_member
,remove_manager
(#175) - Added the ability to add additional keyword arguments for the methods
Part.update()
,Part.add_with_properties()
andPart.edit()
. This will allow to provide additional (including undocumented) arguments to the KE-chain API. (eg. 'suppress_kevents=True') (#177) - Added the ability to edit the name of the property, its description and the unit (#146, PR #179)
- Added classification enumeration (#175)
- Updated the documentation structure to better access all the pykechain models related documentation. See http://pykechain.readthedocs.io/en/latest/developer_api.html
- Updated dependent version of tox to 2.8.0 (#178) and further to 2.8.1 (#180)
- Updated all tests such that our coverage aim of 96%+ is maintained.
v1.11-rc2
v1.10.3
1.10.3 (28AUG17)
- Corrected the creation of partmodels (
Part
with categoryMODEL
) with multiplicities other thanZERO_MANY
as the provided multiplicity option was not respected in thecreate_model()
method ofClient
andScope
. Thanks @raduiordache for the find. (#170) - Updated tests.
1.10.2 (22AUG17)
- Corrected the ability to assign multiple assignees, using a list of assignees to an activity using the
Activity.edit()
method. (#167) - Updated tests.
1.10.1 (18AUG17)
1.10.0 (18AUG17)
- Ability to edit the status of an
Activity
. Please refer to theActivityStatus
enumerations. (#163) - Ability to sort properties of a
Part
model. (#141) - Upgraded the requirements of dependent packages for development. (#152, #160, #159, #153, #157, #154)
- Added tests for all new features to get the > 95% coverage
- Updated the documentation.
v1.10.2
1.10.2 (22AUG17)
- Corrected the ability to assign multiple assignees, using a list of assignees to an activity using the
Activity.edit()
method. (#167) - Updated tests.
1.10.1 (18AUG17)
1.10.0 (18AUG17)
- Ability to edit the status of an
Activity
. Please refer to theActivityStatus
enumerations. (#163) - Ability to sort properties of a
Part
model. (#141) - Upgraded the requirements of dependent packages for development. (#152, #160, #159, #153, #157, #154)
- Added tests for all new features to get the > 95% coverage
- Updated the documentation.