Project

General

Profile

Actions

Bug #1452

closed

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

Added by Bernhard Koschiček-Krombholz almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
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.

Actions #1

Updated by Bernhard Koschiček-Krombholz almost 4 years ago

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

node=true wasn't set for class request

Actions

Also available in: Atom PDF