Project

General

Profile

Bug #1452

API: "type" is empty if more entities are requested

Added by Bernhard Koschicek 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Low
Category:
API
Target version:
Start date:
2021-01-24
Estimated time:
Found in version:

Description

If a single entity is requested (/api/0.2/entity/119820), the key "types" will be filled.
If more entities are requested through /api/0.2/code/place or /api/0.2/class/E18, the "type" field is null.

    def get_node(entity: Entity) -> Optional[List[Dict[str, Any]]]:
        nodes = []
        # if bug occurs, entity.nodes is empty!!! 
        for node in entity.nodes:
            nodes_dict = {'identifier': url_for('entity', id_=node.id, _external=True),
                          'label': node.name}
            for link in Link.get_links(entity.id):
                ...

As for now, I have no clue why this is happening.

History

#1

Updated by Bernhard Koschicek 3 months ago

  • Target version set to 6.0.0
  • Status changed from New to Closed

node=true wasn't set for class request

Also available in: Atom PDF