Skip to content

[Graphs] - Saved Graphs #9

@debifrank

Description

@debifrank

For the purpose of integrating with reporting tools (WriteHat) there will need to be an ability to save the graph you've built for a scenario.

  • When you click "save" the graph variants will be saved to a DB collection
{
    "bson_id": "String", // Identifier for the graph record (primary key)
    "scenario_id": "String", // Id of the scenario the graph is associated with (foreign key)
    "scenario_title": "String", // Name of the scenario the graph is associated with
    "assessment_id": "String", // Id of the assessment the graph is associated with (foreign key)
    "assessment_title": "String", // Name of the assessment the graph is associated with
    "b64-white": "String", // b64 encoding of the white background graph version
    "b64-black": "String", // b64 encoding of the black background graph version
    "positions": "String", // Potential column containing the individual node positions in the D3 graph
    "created_by": "String", // Authenticated user that created the record
    "created_on": "Date", // Time record was created
    "last_updated_by": "String", // Authenticated user that most recently modified the record
    "last_updated_on": "Date", // Time record was most recently modified
}
  • To retrieve your graph, an API will need to be created that will facilitate the retrieval (requires authorization key)

    • /api/Graphs/getGraphs
    • /api/Graphs/getGraphsByAssessment?id=String
    • /api/Graphs/getGraphById?id=String
    • /api/Graphs/getGraphByScenario?id=String
  • The default behavior is to download the graph when you click save, this will be removed in place of the above saving functionality

  • To download directly from ETM, a new button and select box will be needed to download the saved graphs

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions