-
Notifications
You must be signed in to change notification settings - Fork 14
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
Round Level "level-date" Post to nearest Minute #944
Comments
Unfortunately if that should be rounded, it should be on save. We have a few usages, like time series, where specific components are allowed to go to subseconds. A level on retrieve has no appropriate way to determine this. Did you save through CDA directly or CWMSVue? |
Saved with CDA via cwms-python. cwms-python just passes the json dictionary through. |
We should get @Enovotny and @perrymanmd involved, if Location Levels should only be to the minute, this is a bug on save. If they should be able to be sub minute, that's a but in CWMSVue. |
There is no restriction on the location level date. The following are currently in CWBI-Test:
|
I figured it was a CWMS-VUE issue but would be quicker to address with CDA. I can't think of a practical need for sub-minute levels though. |
The "Level" end point returns a "level-date" parameter that includes decimal seconds. When editing a level, I posted back to the database with CDA and forgot to change the "level-date" which defaulted to a very specific time (e.g. 2024-11-08T14:30:55.147439Z). CWMS-VUE cannot display this level, and I think it is related to the specific time. CWMS-VUE cannot delete the level either even when cascade delete is called, again because I think it does not expect that specific of time. Unfortunately I don't have that time stored in memory so I can't use CDA to delete either, so I will have to bug someone who can find it and delete with SQL.
Here's the CWMS-VUE cascade delete error:
Caused by: Error : 20034, Position : 0, Sql = BEGIN "CWMS_20"."CWMS_LEVEL"."DELETE_LOCATION_LEVEL" (:1 , cast(:2 as date), :3 , :4 , :5 , :6 , :7 , :8 ) ; END;, OriginalSql = { call "CWMS_20"."CWMS_LEVEL"."DELETE_LOCATION_LEVEL" (?, cast(? as date), ?, ?, ?, ?, ?, ?) }, Error Msg = ORA-20034: ITEM_DOES_NOT_EXIST: Location level "MVP/Baldhill_Dam.Elev.Inst.0.Bottom of Flood Control@08-NOV-24" does not exist.
The text was updated successfully, but these errors were encountered: