moja-global / FLINT.Cloud

The project aims to demonstrate a continuous deployment pipeline for FLINT.
Mozilla Public License 2.0
27 stars 66 forks source link

feat: Added a new GCBM status endpoint #180

Open SanjaySinghRajpoot opened 2 years ago

SanjaySinghRajpoot commented 2 years ago

Pull Request Template

Description

A new endpoint is created called /gcbm/status. This endpoint will return the status of the running GCBM simulation and the logs generated in simulation.txt. This endpoint will be called by the FLINT-UI to get the latest status of the GCBM simulation. In this manner, the user will be able to check if everything is working correctly or if there is any error. If the simulation is not running a 400 status will be returned to the user.

Fixes #179

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Screenshot_20220907_172437

It has been tested on a local host. The above image giving a error message as no simulation is running.

SanjaySinghRajpoot commented 1 year ago

The test case is failing for some other endpoint of GCBM simulation. Earlier I added some test cases for this endpoint they were not working as expected so I had to remove them. I am working on adding some new test cases for this endpoint.

aornugent commented 1 year ago

@SanjaySinghRajpoot @HarshCasper - what is the status of this PR?

SanjaySinghRajpoot commented 1 year ago

The test cases are failing for this some other endpoint in this PR. In this PR we are trying to get the status of GCBM simulation, using /status endpoint.