Giter Site home page Giter Site logo

Comments (5)

patrickkaleta avatar patrickkaleta commented on June 19, 2024 1

@ghilbrae adding you to this issue to keep you in the loop about the status.

from csis-helpers-module.

ghilbrae avatar ghilbrae commented on June 19, 2024 1

We can discuss this on Monday after the weekly meeting. I'll let @rapto know when to connect.

from csis-helpers-module.

patrickkaleta avatar patrickkaleta commented on June 19, 2024 1

With the help of @rapto I was able to get the TM trigger up and running. I'm considering this issue done.

from csis-helpers-module.

rapto avatar rapto commented on June 19, 2024

Hello there, I'll try to answer.

  1. Which Studies are considered to be relevant for the TM? -> should be just Studies of StudyType = Transport Infrastructure

That is correct, only TI.

  1. When and with what data should we trigger the TM? -> CSIS allows users to fill their studies bit by bit. So right after it is created, it doesn't yet contain all the needed data, so it might make sense to wait a bit before we actually trigger the TM.

The study can be triggered as soon as created. The only information that willbe kept in both systems will be the bare minimum: Title and short description.

  1. What shall we do when users change relevant parts of the Study? -> for Emikat, in such cases we trigger it again with the updated data and start a re-calculation

Should the title or description change, it would be required to sync in the TM.

  1. How will the CSIS know once results are available? -> for Emikat, we periodically pull the current status. But it would also be possible (maybe the better solution?) if the TM would make a REST call and update the status of the calculations

In this specific case, CSIS is not required to monitor the results in this moment.

  1. Which ID to use as primary identification for communication? (e.g. when requesting a map from the TM) -> for the CSIS (Drupal system) it would be easier if we could use our internal IDs and pass them along in our requests.

We can add this field to the DB model and allow queries by external ID.

Please let me know if there is anything else you would like to ask.

from csis-helpers-module.

patrickkaleta avatar patrickkaleta commented on June 19, 2024

Ok great, so we will do the following:

Setup of initial trigger:

  • trigger the TM immediately once a TI study is created
  • update the TM when one of the relevant fields is changed
  • use the Drupal Study IDs as identifier

Relevant fields to be included in initial trigger:

  • Study title
  • Study description
  • SimulationType (needed by the TM app)

@rapto so how exactly can we talk to the TM? Is there a documentation or description of the API available, so that we can set this up? If you like we can have a telco and discuss this in more detail.

Also, what other fields will be needed? Don't you need the study area and the selected data package + resources, so that the TM can do its calculations? If so, we can add this information in the initial trigger, or the TM could also get these details via a REST call and inside the initial trigger I just place a link to appropriate REST endpoint on the CSIS side.

from csis-helpers-module.

Related Issues (20)

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.