Skip to content

Solves missing date problem on dateObserved#5

Open
mjimenezganan wants to merge 4 commits into
wirecloud-fiware:developfrom
mjimenezganan:missingDates
Open

Solves missing date problem on dateObserved#5
mjimenezganan wants to merge 4 commits into
wirecloud-fiware:developfrom
mjimenezganan:missingDates

Conversation

@mjimenezganan

Copy link
Copy Markdown

When a dataObserved is missing, method displayDate crashed. Two solutions incorporated, pick dateModified if available, and not include date information if missing.

It is not compared when dateModified is directly used (without invoking displayDate, but using moments.js directly. Not solved since intended behaviour might change, but avoiding an empty line if no such dateModified is still pending.

@coveralls

coveralls commented Nov 18, 2019

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 11

  • 15 of 23 (65.22%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+8.2%) to 38.532%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/js/main.js 15 23 65.22%
Totals Coverage Status
Change from base Build 7: 8.2%
Covered Lines: 281
Relevant Lines: 674

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants