hashmapinc / Drillflow

A dockerized WITSML API Server that is agnostic of the backend.
Apache License 2.0
17 stars 13 forks source link

Support maxReturnNodes optionIn for trajectory #336

Open cherrera2001 opened 5 years ago

cherrera2001 commented 5 years ago

Summary

If a client requests maxReturnNodes=n then the number of trajectory stations MUST be limited to n results before returning.

The query MUST [else error -402] specify a whole number greater than zero

Implementation Detail

1) in translateQueryResponse method of com.hashmapinc.tempus.witsml.valve.dot.DotClient class if optionsIn contains a key maxReturnNodes = n then you must only take the first n elements from the trajectoryStations array. 2) add a validation query in com.hashmapinc.tempus.witsml.server.api.StoreValidator to validateGetFromStore to make sure that the value of maxReturnNodes is > 0, if not return -402

cherrera2001 commented 5 years ago

Soap UI Trajectory CRUD::maxReturnNodes tests can be used to verify the functionality requested