alan-turing-institute / simulate-middleware

Simulate middleware service.
http://simulate.readthedocs.io
0 stars 0 forks source link

feature: Field component attribute #24

Closed masonlr closed 6 years ago

masonlr commented 6 years ago

Add "component" attribute on each field. The attribute is used to specify the type of component rendered in the front end, for example:

An example JSON serialisation of a field with the component attribute is

{
    "child_fields": [],
    "component": "slider",
    "name": "wall_velocity",
    "specs": [
        {
            "id": 59,
            "name": "min",
            "value": "0.1"
        },
        {
            "id": 60,
            "name": "max",
            "value": "2.0"
        },
        {
            "id": 61,
            "name": "step",
            "value": "0.01"
        },
        {
            "id": 62,
            "name": "default",
            "value": "0.5"
        },
        {
            "id": 63,
            "name": "units",
            "value": "m/s"
        }
    ]
}
codecov-io commented 6 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@d4bd196). Click here to learn what that means. The diff coverage is 52.94%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #24   +/-   ##
=========================================
  Coverage          ?   77.98%           
=========================================
  Files             ?       28           
  Lines             ?     1190           
  Branches          ?        0           
=========================================
  Hits              ?      928           
  Misses            ?      262           
  Partials          ?        0
Impacted Files Coverage Δ
tests/create_case_store.py 48.38% <0%> (ø)
app.py 0% <0%> (ø)
tests/create_cavity_case.py 14.28% <0%> (ø)
connection/models.py 93.65% <100%> (ø)
connection/api_schemas.py 86.95% <100%> (ø)
connection/schemas.py 71.05% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d4bd196...f35f550. Read the comment docs.