Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 fix UI error when enter_fmt_time or exit_fmt_time missing #1195

Merged
merged 2 commits into from
Feb 16, 2025

Conversation

JGreenlee
Copy link
Collaborator

@JGreenlee JGreenlee commented Feb 8, 2025

fixes e-mission/e-mission-docs#1108 (comment)

Confirmed trips always have start_fmt_time and end_fmt_time, but confirmed places are not guaranteed to have enter_fmt_time and exit_fmt_time. Commonly, the last place has not been exited and does not have an exit_fmt_time

Thus, this could be undefined and cause an error when we try to take .substring

This only affected configs with place inputs (e.g. stage-timeuse) because other configs do not show places in the UI

JGreenlee and others added 2 commits February 7, 2025 22:31
Confirmed trips always have start_fmt_time and end_fmt_time, but confirmed places are not guaranteed to have enter_fmt_time and exit_fmt_time. Commonly, the last place has not been exited and does not have an exit_fmt_time

Thus, this could be undefined and cause an error when we try to take .substring.
It is ok to

This only affected configs with place inputs (e.g. stage-timeuse) because other configs do not show places in the UI
Copy link

codecov bot commented Feb 16, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 29.78%. Comparing base (1089679) to head (df131c4).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
www/js/diary/useDerivedProperties.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1195   +/-   ##
=======================================
  Coverage   29.78%   29.78%           
=======================================
  Files         123      123           
  Lines        4955     4955           
  Branches     1095     1139   +44     
=======================================
  Hits         1476     1476           
+ Misses       3479     3477    -2     
- Partials        0        2    +2     
Flag Coverage Δ
unit 29.78% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
www/js/diary/useDerivedProperties.tsx 0.00% <0.00%> (ø)

... and 2 files with indirect coverage changes

@shankari shankari merged commit 1d3224f into master Feb 16, 2025
6 of 7 checks passed
@shankari shankari deleted the fix-substring-missing-fmt-time branch February 16, 2025 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Tasks completed
Development

Successfully merging this pull request may close these issues.

error while displaying diary in time-use
2 participants