need convenience function for /entity/child

Description

There are new services that replace the most commonly used queries to the deprecated entity query service. They are:

http://docs.synapse.org/rest/POST/entity/children.html
(lists the children of a given parent entity)

http://docs.synapse.org/rest/POST/entity/child.html
(find the entity with a given parent and a given name)

There is a convenience function in Python for the first, but not for the second. Need convenience function in Python (and by extension in R) to facilitate users stop using the entity query function.

Environment

None

Activity

Show:
Bruce Hoff
July 6, 2017, 3:51 AM

As Kenny points out, already done!

Kenneth Daily
July 6, 2017, 3:17 PM

There isn't a function for "POST /entity/child" to search a container for an entity by name.

Larsson Omberg
July 20, 2017, 10:18 PM

We have had a private function def _findEntityIdByNameAndParent(self, name, parent=None) for several years that was switched from query to the /entity/child call in 1.7.

Should this be made public?

Ziming Dong
January 9, 2018, 12:35 AM

To validate:
use syn.findEntityId() to find an entity's id using its name and parent

Bruce Hoff
January 19, 2018, 3:46 AM

Validated from R!

Assignee

Ziming Dong

Reporter

Bruce Hoff

Labels

None

Validator

Bruce Hoff

Development Area

None

Release Version History

None

Fix versions

Priority

Major
Configure