command-line clients need to be updated to replace the EntityView 'viewType' with 'viewTypeMask'

Description

The 'viewType' has been deprecated and replaced with 'viewTypeMask'. Any view updated from the portal will replace 'viewType' with 'viewTypeMask'. Both command-line clients need to do the same.
See: PLFM-5126, and SWC-3838.

Environment

None

Activity

Show:
Kimyen Truong
September 19, 2018, 11:46 PM

It was very useful. Thanks !

Kimyen Truong
September 20, 2018, 5:59 PM
Ziming Dong
September 27, 2018, 8:53 PM

There are 2 minor changes that would be nice to have before releasing:

1. rename EntityType to EntityViewType so that users know that the enum values are used in the context of {{EntityView}}s
2. have the _init_.py import EntityViewType so that from synapseclient import EntityViewSchema, EntityViewType is possible.

Otherwise, the feature works great! I was able to create a custom list of view types, and see them on the portal/query them in the python client.

Kimyen Truong
September 27, 2018, 9:07 PM
Ziming Dong
September 27, 2018, 9:41 PM

Merged and re-verified that the changes work.

Assignee

Kimyen Truong

Reporter

John Hill

Labels

Validator

Ziming Dong

Development Area

None

Release Version History

None

Components

Fix versions

Affects versions

Priority

Major
Configure