Giter VIP home page Giter VIP logo

fews-ssd-requests's People

Contributors

amarkensteijn avatar ceesvoesenek avatar ekkelenkamp avatar erwinm1 avatar grijzea avatar leeuwenhoekhydrologic avatar rdorsman avatar rudieekkelenkamp avatar saleemtheking avatar siggyf avatar wkramer avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fews-ssd-requests's Issues

Option to defer action request

In the WebOC we the action response is required in the SSDTimeSeries Vue component.
The SSDTimeSeries is a child of SchematicStatusDisplay and loaded when the objectId is set.
The objectId is taken from the @action event emitted by the fews-ssd-component.

It is convenient to defer the GetAction request in the fews-ssd-component and perform the actual request in the SSDTimeSeries Vue component.

Add a property deferaction to schematic-status-display to defer the action request.
This still emits the @action event but without results property.

Pass panel, time and other attributes to webcompenent

As an alternative to pass the src to the webcomponent it should be possible to pass

<schematic-status-display
    id="status-display"
    panel="LB_Maas_StPieter_Lith_Hoogwater_10min"
    time="2022-02-09T16:00:00Z"
    width="400"
    height="300"
></schematic-status-display>

Update packages

Update dependencies on
@deltares/fews-web-oc-utils
@deltares/fews-web-pi-requests

Support relative url

Support requests with relative url.
Support a relative url as src in the fews-ssd-webcomponent.

Add transform request to angular example

Add a (mock) authentication transform request to the angular example. Use as transform request function in app.component.ts:

async transformRequest(request: Request) {
    const requestInit = {
      headers: {
        'Authorization': "Bearer 123"
      },
    }
    const newRequest = new Request(request, requestInit)
    return newRequest
  }

Update action response types

At least the ActionWithConfig, ResultWithConfig, Config, and TimeSeriesDisplay are inconsistent with the response of the actual request. Moreover, the TimeSeriesDisplay type is incorrect, as the response includes subplots instead of subplot. I'd expect the types to be consistent with the fews-pi-request actionsResponse types.

Example request: https://rwsos-dataservices-ont.avi.deltares.nl/iwp/test/FewsWebServices/ssd?request=GetAction&ssd=KGT_GentTerneuzen_ERG&action=LEFTSINGLECLICK&objectid=value_T_SvG&format=application/json&config=true

Add filter to getCapabilities

It should be possible to request the capabilities of a single ssd. Add filter options to include, amongst other, ssd as a request parameter.

Action event

Action event should pass the actual response of the GetAction request.

Response should contain the GetAction response as-is with the results array.
Add the url of the getAction request.
Also add panelName and objectId properties.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.