fix_stored_graph_issue(_issue_id integer, _fix_action text DEFAULT NULL::text, _fix_params jsonb DEFAULT NULL::jsonb, _refresh boolean DEFAULT true)


Description

Fix an issue stored in the table graph_issues of the editing session, with the function fix_graph_issue.

The issue is fixed with its fix action and parameters, or with the given ones, for example when the user chooses another fix. The result is stored in the fields fix_status and fix_message of the issue.

If _refresh is True and the fix did not fail, the roads of the issue are checked again with the function refresh_graph_issues: the fixed issue is deleted, and the new issues of these roads are added.

It returns a JSON object with the keys status (success, skipped or error) and message.

Parameters

Name Type Mode
_issue_id integer IN
_fix_action text IN
_fix_params jsonb IN
_refresh boolean IN

Definition