validate icon indicating copy to clipboard operation
validate copied to clipboard

As a user, I want to throw an WARNING when `Time_Coordinates.start_time` does not match or come before `Time_Coordinates.stop_time`

Open jstone-psi opened this issue 7 months ago • 15 comments

Checked for duplicates

Yes - I've already checked

🧑‍🔬 User Persona(s)

Data Archivist, Data Provider

💪 Motivation

...so that I can ensure the start time comes before the stop time.

📖 Additional Details

From original bug ticket: from @jstone-psi:

I was asked by one of our archivists if validate ensures that start_date_time occurs before stop_date_time. I tested this, and found that it does not enforce it.

I expected either an error or a warning if the stop_date_time occurred before the start_date_time.

There are cases where this may be difficult due to precision mismatches in both dates. In that case I would expect a warning regarding the difference in precision, or an attempt to compare them after accounting for the difference.

Acceptance Criteria

Given a label with a start_time > stop_time When I perform label validation Then I expect validate to raise an WARNING

⚙️ Engineering Details

jstone-psi avatar Aug 02 '24 18:08 jstone-psi