Skip to content

Feature Request: GraphImportResponse #9

@mehmetb

Description

@mehmetb

Currently, there is no way to tell if the graph import is finished successfully or failed. Knowing if the engine has finished import-related tasks and is ready for further tasks is challenging.

Our current workaround is to wait for the node-created and pin-created events to stop (in other words, we use timers).

I shared some sample schemas below to give you an idea.

First, I recommend adding an id field to the request, which can be referenced in the GraphImportResponse.

table GraphImportRequest {
  graph_to_import_json:string;
  clear_root_graph:bool;
  parent_graph_path:string;
  pos:nos.fb.vec2;
  insert_as_graph: bool;
  id:ulong;
}

And the GraphImportResponse can be something like this:

table GraphImportResponse {
  request_id:ulong (required);
  success:bool (required);
  message:string; // Can be used for returning error messages (e.g., "Import failed: An import task is already running.")
}

JIRA: R5-772

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions