-
Notifications
You must be signed in to change notification settings - Fork 2
Graph view should not display raw error when the focus boundary is not included by the dataset boundary. #199
Comments
@kintigh I'm not sure what would be the best way to do the geometry inclusion test on the client. Even though there are only rectangles and points, since we are planning to have more shapes soon (like circles), if there's a check it'd better to cover as much of the use case as possible, which basically means checking between two polygons. A quick workaround for now, since the server is returning this error, is to present the error better instead of showing the raw message, just like the timeout error. Do you think that would resolve this issue for now? If so, what do you think would be a good error message? How about "Please only select a point or area within the boundary"? |
That is reasonable. I just didn't want a data error. How about. "Please select a point or area within the dataset boundary. " |
I just wanted to note that if a user selects an area that crosses the dataset boundary, it succeeds silently, presumably just averaging over the desired area within the dataset. This is probably the desired behavior, but we might want to alert the user somehow that the calculated area is smaller than that which they specified. Perhaps automatically crop their selected area to the dataset boundary? |
This issue is resolved for points, but not rectangular regions. If I click on a point outside the data set coverage in Graph View I get the error "Please select a point or area within the dataset boundary", as expected. However, if I select a rectangle outside the data set coverage, I still get the error message, "Error when requesting data." |
When a point outside of the boundary is used, I receive the following error from the time-series server:
and a match with the error message But for a rectangle that is completely outside of the boundary, I get something like this:
I don't think I can reliably use the message to determine the cause of the error. Can I? Also there is no error when the geometry is partially out of boundary. |
I just made changes to timeseries-service to return a Bad Request response with the I'll build a new Docker image for the service. |
The work here is for @tmcphillips to update the time series service to return proper error messages when the box selection is completely outside of the dataset boundary. |
I fixed this 12 days ago and thought it would be in the latest image running on staging, but I'm still seeing the old error when selecting a rectangle fully outside the dataset coverage. I'll try to figure out why the changes aren't reflected on staging. |
Ok, I manually pulled the latest image for the timeseries-service to both tacc-staging and staging. They now both return the following kind of response when selecting a rectangle outside the coverage:
|
Should be resolved in v0.1.30. |
From @kintigh:
The text was updated successfully, but these errors were encountered: