Move --description in command line client to create wikis

Description

Currently the --description parameter in the (create/update entity command??? in the) command line client still uses the description property as the DataEntities used. It should be upgraded to create a wiki and possibly add another parameter --descriptionFile file.md that optionally takes a file of the markdown.

Environment

None

Activity

Show:
Larsson Omberg
June 2, 2017, 5:05 AM

Needs to update wiki if it already exists. Otherwise you get:

SynapseHTTPError: 409 Client Error: Conflict
An owner already exists with the ownerId: 9933446 and ownerType: ENTITY

Repro

Larsson Omberg
June 8, 2017, 7:36 PM

I have a file already stored in synapse then run the command again:

synapse add ~/.emacs --parentId syn2485697 --description "# Hello again"
File upload is deprecated for client version 1.5.0 to 1.6.1. Please check that you are using the latest version of the Synapse client.
Downloading [####################]100.00% 27.0bytes/27.0bytes (9.4kB/s) null_markdown.txt Done...

ValueError: Wiki constructor must have an owner specified

Larsson Omberg
June 11, 2017, 3:18 AM

Seems to be fixed.

Assignee

Ziming Dong

Reporter

Larsson Omberg

Labels

None

Validator

Larsson Omberg

Development Area

None

Release Version History

None

Components

Fix versions

Priority

Major
Configure