Skip to content

Commit

Permalink
Replace the work around with the temporal mode latest for the retriev…
Browse files Browse the repository at this point in the history
…al of the parameters for the locations.
  • Loading branch information
Jeffrey-Vervoort-KNMI committed Feb 23, 2024
1 parent 40ba0ed commit fc4f794
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/routers/edr.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@ async def get_locations(
spatial_area=dstore.Polygon(
points=[dstore.Point(lat=coord[1], lon=coord[0]) for coord in poly.exterior.coords],
),
temporal_interval=dstore.TimeInterval(start=start_datetime), # HACK
temporal_mode="latest"
)

# TODO: Add flag to protobuf so that it only retrieves the latest observations from the datastore.
ts_response = await get_obs_request(ts_request)

platform_parameters: DefaultDict[str, Set[str]] = defaultdict(set)
Expand Down

1 comment on commit fc4f794

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API Unit Test Coverage Report
FileStmtsMissCoverMissing
\_\_init\_\_.py00100% 
datastore_pb2.py584621%24–69
datastore_pb2_grpc.py432347%37–52, 85–87, 92–94, 99–101, 106–108, 112–136, 174, 191, 208, 225
dependencies.py481862%16, 26–27, 34, 41, 52, 62–69, 77–84
grpc_getter.py16850%15–16, 20–23, 27–29
locustfile.py15150%1–31
main.py22386%27, 37, 47
metadata_endpoints.py381463%26, 44–109, 113
custom_geo_json
   edr_feature_collection.py60100% 
formatters
   \_\_init\_\_.py70100% 
   covjson.py51198%72
routers
   \_\_init\_\_.py00100% 
   edr.py923958%47–108, 136–148, 177, 188–194, 233–250
   records.py00100% 
TOTAL39616758% 

API Unit Test Coverage Summary

Tests Skipped Failures Errors Time
16 0 💤 9 ❌ 0 🔥 2.400s ⏱️

Please sign in to comment.