jina-ai / dashboard

Interactive UI for analyzing Jina logs, designing Flows and viewing Hub images
https://dashboard.jina.ai
Apache License 2.0
118 stars 60 forks source link

Fix: Add error handling to parseYAML #165

Closed BastinJafari closed 3 years ago

BastinJafari commented 3 years ago

The website shouldn't crash if someone enters invalid yaml

codecov[bot] commented 3 years ago

Codecov Report

Merging #165 (570e17c) into master (22e37e7) will increase coverage by 0.23%. The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #165      +/-   ##
==========================================
+ Coverage   22.23%   22.47%   +0.23%     
==========================================
  Files         139      139              
  Lines        2716     2696      -20     
  Branches      445      444       -1     
==========================================
+ Hits          604      606       +2     
+ Misses       2112     2090      -22     
Impacted Files Coverage Δ
src/flux/store.ts 0.00% <ø> (ø)
src/helpers/format.ts 95.06% <33.33%> (+0.06%) :arrow_up:
src/redux/flows/flows.reducer.ts 86.91% <100.00%> (+0.12%) :arrow_up:

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 22e37e7...570e17c. Read the comment docs.