Open rachelheaven opened 3 years ago
Dependant on rank being added to the lexicon linked data
Thinking about this, and looking at the sample Jurassic graph in more detail, I think it will be simpler if we keep the filtering on the backend - by default return a graph which only shows Formations, or optionally return one that shows everything. It will be much more of a job to filter the Graphviz output on the frontend than it will to hand it a cleaner dotfile. What do you reckon @scientific-creative
Discussion at stand up was that graph should be drawn for one rank type at a time, either Formation or Member (doesn't make much sense for other rank types)
At the moment the API has three options
This was done quickly in response to feedback on Teams with a note in the code that we'll want to revisit
Graph will probably only draw nicely for units that are of rank 'formation'. We could query the store to only get units of rank formation, but lots of the detail would then be lost. Suggest to include the rank in the data and the front end visualisation can then filter the non-formations out on request.