Giter Club home page Giter Club logo

opera-sds-bach-ui's Introduction

opera-sds-bach-ui

OPERA's Bach UI repository

Running locally

Prerequisites:

  • npm (see .nvmrc file for recommended version). Install using npm install.

Recommended:

  • nvm. use nvm install from the project root directory to install the recommended npm version as needed.

Steps:

  1. Ensure webpack.config.js can execute without error. Do this by fixing the referenced required package in webpack.config.js using the following command. cp src/config/index.dev.template.js src/config/index.js

  2. Run the application using npm run build.

opera-sds-bach-ui's People

Contributors

chrisjrd avatar hhlee445 avatar dependabot[bot] avatar riverma avatar

Stargazers

 avatar Mustafa Kemal Emil avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar Mustafa Kemal Emil avatar  avatar  avatar

Forkers

riverma

opera-sds-bach-ui's Issues

[Bug]: "Something went wrong. Please try again" for bach-ui retrieval time summary & details

Checked for duplicates

Yes - I've already checked

Describe the bug

https://opera-int-mozart-pop1.jpl.nasa.gov/bach-ui/reporting/retrieval-time/retrieval-time-summary
From bach-ui for retrieval time when I did input:

Date From: 03/17/2023, 10:00AM
To: 03/21/2023, 11:59:59PM
Presets > Custom

Click > GENERATE
I noticed the following error:

{"message": "cannot generate RetrievalTimeSummaryReport", "details": "'S1B_IW_SLC__1SDV_20200101T014248_20200101T014315_019617_025131_E74A'"}

https://opera-int-mozart-pop1.jpl.nasa.gov/bach-api/reports/RetrievalTimeSummaryReport?startDateTime=2023-03-17T10:00:00Z&endDateTime=2023-03-21T23:59:59Z&reportType=sdp&mime=application%2Fjson

Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
index.jsx?106b:100 Error: Request failed with status code 500
at createError (createError.js?2d83:16:1)
at settle (settle.js?467f:17:1)
at XMLHttpRequest.onloadend (xhr.js?b50d:66:1)
_callee$ @ index.jsx?106b:100
index.jsx?106b:145 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'header')
at _callee3$ (index.jsx?106b:145:13)
at tryCatch (runtime.js?96cf:63:16)
at Generator.invoke [as _invoke] (runtime.js?96cf:294:1)
at Generator.eval [as next] (runtime.js?96cf:119:1)
at asyncGeneratorStep (asyncToGenerator.js?ee7c:3:1)
at _next (asyncToGenerator.js?ee7c:25:1)

No issue with same date/time range with PRODUCTION TIME DETAIL

https://opera-int-mozart-pop1.jpl.nasa.gov/bach-api/reports/ProductionTimeDetailedReport?startDateTime=2023-03-17T10:00Z&endDateTime=2023-03-21T23:59:59Z&reportType=sdp&mime=application%2Fjson

What did you expect?

I expected to see the generated report for retrieval time summary/ retrieval time details.

Reproducible steps

https://opera-int-mozart-pop1.jpl.nasa.gov/bach-ui/reporting/retrieval-time/retrieval-time-summary
From bach-ui for retrieval time when I did input: 

Date From: 03/17/2023, 10:00AM
To: 03/21/2023, 11:59:59PM
Presets > Custom

Click > GENERATE

https://opera-int-mozart-pop1.jpl.nasa.gov/bach-api/reports/RetrievalTimeSummaryReport?startDateTime=2023-03-17T10:00Z&endDateTime=2023-03-21T23:59:59Z&reportType=sdp&mime=application%2Fjson

Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
index.jsx?106b:100 Error: Request failed with status code 500
    at createError (createError.js?2d83:16:1)
    at settle (settle.js?467f:17:1)
    at XMLHttpRequest.onloadend (xhr.js?b50d:66:1)
_callee$ @ index.jsx?106b:100
index.jsx?106b:145 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'header')
    at _callee3$ (index.jsx?106b:145:13)
    at tryCatch (runtime.js?96cf:63:16)
    at Generator.invoke [as _invoke] (runtime.js?96cf:294:1)
    at Generator.eval [as next] (runtime.js?96cf:119:1)
    at asyncGeneratorStep (asyncToGenerator.js?ee7c:3:1)
    at _next (asyncToGenerator.js?ee7c:25:1)

Environment

https://opera-int-mozart-pop1.jpl.nasa.gov/bach-ui/
Data range date: 

Date From: 03/17/2023, 10:00AM
To: 03/21/2023, 11:59:59PM

[Minor Bug]: Fixed len of UI layout truncate the labels for INCOMING SDP FILES and GENERATED SDS PRODUCTS

Checked for duplicates

Yes - I've already checked

Describe the bug

When I did navigate to Report Summary > Report Data , I noticed UI layout of the labels for INCOMING SDP FILES and GENERATED SDS PRODUCTS got truncated due to fixed length.

What did you expect?

I expected the proper labels layout without being truncated.

INCOMING SDP FILES > Input Product Short Name
GENERATED SDS PRODUCTS > OPERA Product Short Name

Reproducible steps

1. Go to https://opera-int-mozart-pop1.jpl.nasa.gov/bach-ui/reporting/
2. Go to DATA PROCESSING > INCOMING SDP FILES 
3. Go to DATA PROCESSING > GENERATED SDS PRODUCTS
4. Will see truncated labels.

- INCOMING SDP FILES > Input Product Sh...
- GENERATED SDS PRODUCTS > OPERA Product Sh...

Environment

- Chrome

[Bug]: Retrieval Time - Negative Time (minimum)

Checked for duplicates

Yes - I've already checked

Describe the bug

When I did submit the following bach-api call from startDateTime=2023-03-27T07:00Z&endDateTime=2023-03-28T19:00 , I noticed Negative Time (minimum).

https://opera-int-mozart-pop1.jpl.nasa.gov/bach-api/reports/RetrievalTimeSummaryReport?startDateTime=2023-03-27T07:00Z&endDateTime=2023-03-28T19:00Z&reportType=sdp&mime=application%2Fjson

input_product_short_name : "L1_S1_SLC" opera_product_short_name : "L2_CSLC_S1" retrieval_time_count : 119 retrieval_time_max : "01:28:38" retrieval_time_mean : "00:24:20" retrieval_time_median : "00:32:23" retrieval_time_min : "-2:04:38" retrieval_time_p90 : "01:17:25"

What did you expect?

I expected no negative time.

Reproducible steps

1. Submit the following 
https://opera-int-mozart-pop1.jpl.nasa.gov/bach-api/reports/RetrievalTimeSummaryReport?startDateTime=2023-03-27T07:00Z&endDateTime=2023-03-28T19:00Z&reportType=sdp&mime=application%2Fjson
2. Check the payload
3. Will see the negative time.

Environment

https://opera-int-mozart-pop1.jpl.nasa.gov/

[New Feature]: Add static layers product types for CSLC & RTC

Checked for duplicates

Yes - I've already checked

Alternatives considered

No - I haven't considered

Related problems

No response

Describe the feature request

We need to add the CSLC & RTC static layers product types into the output data summary.

[Bug]: Missing "DSWX_HLS" in PRODUCTION TIME SUMMARY & DETAILS despite DSWX_HSL were generated.

Checked for duplicates

Yes - I've already checked

Describe the bug

When submitting,

https://opera-int-mozart-pop1.jpl.nasa.gov/bach-api/reports/ProductionTimeSummaryReport?startDateTime=2023-03-17T00:00Z&endDateTime=2023-03-21T23:59:59Z&reportType=sdp&mime=application%2Fjson

We are not seeing the payload for "DSWX_HLS" despited the products have been generated:

{ "header": [ { "Title": "OPERA Production Time Summary" }, { "Date of Report": "2023-03-22T18:56:15Z" }, { "Period of Coverage (AcquisitionTime)": "2023-03-17T00:00:00Z - 2023-03-21T23:59:59Z" } ], "payload": [ { "opera_product_short_name": "L2_CSLC_S1", "production_time_count": 87, "production_time_min": "00:11:20", "production_time_max": "00:14:39", "production_time_mean": "00:12:55", "production_time_median": "00:12:59", "histogram": .....binary }, { "opera_product_short_name": "L2_RTC_S1", "production_time_count": 291, "production_time_min": "00:10:45", "production_time_max": "00:19:11", "production_time_mean": "00:13:53", "production_time_median": "00:13:05", "histogram": .....binary } ] }

What did you expect?

I expected to see the payload "DSWX_HLS" return through the api request.

For example:

https://opera-int-mozart-pop1.jpl.nasa.gov/bach-api/reports/ProductionTimeSummaryReport?startDateTime=2023-03-17T00:00Z&endDateTime=2023-03-21T23:59:59Z&reportType=sdp&mime=application%2Fjson

{"header":{"crid":"","data_received_time_range":"2023-03-17T00:00:00Z - 2023-03-21T23:59:59Z","processing_mode":"","time_of_report":"2023-03-22T19:02:39Z","total_data_volume":67899365913,"total_products_produced":419,"venue":"opera-int-pop1"},"products":[{"files_produced":41,"name":"DSWX_HLS","volume":1056703437},{"files_produced":87,"name":"L2_CSLC_S1","volume":64897401276},{"files_produced":291,"name":"L2_RTC_S1","volume":1945261200}],"root_name":"GENERATED_SDS_PRODUCTS_REPORT"}

Reproducible steps

1. Make an api call: https://opera-int-mozart-pop1.jpl.nasa.gov/bach-api/reports/ProductionTimeSummaryReport?startDateTime=2023-03-17T00:00Z&endDateTime=2023-03-21T23:59:59Z&reportType=sdp&mime=application%2Fjson
2. Check for the pay load.
3.
...

Environment

- Chrome

[Bug]: Retrieval Time with duplicated entires "Not Available Yet"

Checked for duplicates

Yes - I've already checked

Describe the bug

When I did submit the following bach-api call from startDateTime=2023-03-27T07:00Z&endDateTime=2023-03-28T19:00 , I noticed duplicated entires with "Not Available Yet"

https://opera-int-mozart-pop1.jpl.nasa.gov/bach-api/reports/RetrievalTimeSummaryReport?startDateTime=2023-03-27T07:00Z&endDateTime=2023-03-28T19:00Z&reportType=sdp&mime=application%2Fjson

Screenshot 2023-03-29 at 12 18 21 PM

[ { "opera_product_short_name": "L3_DSWx_HLS", "input_product_short_name": "L2_HLS_L30", "retrieval_time_count": 2702, "retrieval_time_p90": "01:40:01", "retrieval_time_min": "00:18:14", "retrieval_time_max": "01:50:05", "retrieval_time_median": "01:10:48", "retrieval_time_mean": "01:10:41", "histogram":... }, { "opera_product_short_name": "L3_DSWx_HLS", "input_product_short_name": "L2_HLS_S30", "retrieval_time_count": 546, "retrieval_time_p90": "00:30:31", "retrieval_time_min": "00:17:38", "retrieval_time_max": "00:34:30", "retrieval_time_median": "00:25:39", "retrieval_time_mean": "00:25:33", "histogram":... }, { "opera_product_short_name": "L3_DSWx_HLS", "input_product_short_name": "ALL", "retrieval_time_count": 3248, "retrieval_time_p90": "01:39:23", "retrieval_time_min": "00:17:38", "retrieval_time_max": "01:50:05", "retrieval_time_median": "01:05:16", "retrieval_time_mean": "01:03:06", "histogram":... }, { "opera_product_short_name": "Not Available Yet", "input_product_short_name": "L2_HLS_L30", "retrieval_time_count": 2702, "retrieval_time_p90": "01:40:01", "retrieval_time_min": "00:18:14", "retrieval_time_max": "01:50:05", "retrieval_time_median": "01:10:48", "retrieval_time_mean": "01:10:41", "histogram":... }, { "opera_product_short_name": "Not Available Yet", "input_product_short_name": "L1_S1_SLC", "retrieval_time_count": 119, "retrieval_time_p90": "01:17:25", "retrieval_time_min": "-2:04:38", "retrieval_time_max": "01:28:38", "retrieval_time_median": "00:32:23", "retrieval_time_mean": "00:24:20", "histogram":... }, { "opera_product_short_name": "Not Available Yet", "input_product_short_name": "ALL", "retrieval_time_count": 2821, "retrieval_time_p90": "01:39:45", "retrieval_time_min": "-2:04:38", "retrieval_time_max": "01:50:05", "retrieval_time_median": "01:09:52", "retrieval_time_mean": "01:08:44", "histogram":... }, { "opera_product_short_name": "L2_RTC_S1", "input_product_short_name": "L1_S1_SLC", "retrieval_time_count": 119, "retrieval_time_p90": "01:17:25", "retrieval_time_min": "-2:04:38", "retrieval_time_max": "01:28:38", "retrieval_time_median": "00:32:23", "retrieval_time_mean": "00:24:20", "histogram":... }, { "opera_product_short_name": "L2_CSLC_S1", "input_product_short_name": "L1_S1_SLC", "retrieval_time_count": 119, "retrieval_time_p90": "01:17:25", "retrieval_time_min": "-2:04:38", "retrieval_time_max": "01:28:38", "retrieval_time_median": "00:32:23", "retrieval_time_mean": "00:24:20", "histogram":...

What did you expect?

I expected no duplicated entries with "Not Available Yet" data.

Reproducible steps

1. Submit the following 
https://opera-int-mozart-pop1.jpl.nasa.gov/bach-api/reports/RetrievalTimeSummaryReport?startDateTime=2023-03-27T07:00Z&endDateTime=2023-03-28T19:00Z&reportType=sdp&mime=application%2Fjson
2. Check the payload

Environment

https://opera-int-mozart-pop1.jpl.nasa.gov/bach-ui
https://opera-int-mozart-pop1.jpl.nasa.gov/bach-api
...

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.