Skip to content

If someone *does* put in an invalid date range, it should be handled gently (shouldn't do a 500) #4922

Open
@cielf

Description

@cielf

Summary

If someone puts in an invalid date range, they should receive a friendly error, rather than getting a 500 error

Why?

Reduce user frustration

Details

To produce this situation
sign in as [email protected]
Click on Distributions, then "All Distribuitons"
type "nov 08 to feb 08" in the date range box and hit return
You currently get a 500 error
We should instead display an error "date range not properly formatted."

Some things just use a helper, but some others are more complicated.

Criteria for completion

  • range formatting errors handled on all the screens that use date ranges
  • tests to support this behaviour

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions