hashmapinc / Drillflow

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

Log get from store returns one logCurveInfo even if not requested. #469

Closed Mike-d-s closed 5 years ago

Mike-d-s commented 5 years ago

Epic:

361 Log CRUD

Perform a get from store for a log with a minimal set of header information:

Issue this query for a log

<?xml version="1.0" encoding="UTF-8"?>
<logs xmlns="http://www.witsml.org/schemas/1series"     
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://www.witsml.org/schemas/1series  ../xsd_schemas/obj_log.xsd" 
    version="1.4.1.1">
    <log uidWell="Energistics-Well-0001" uidWellbore="Energistics-w1-wellbore-0001" uid="Test_depth_log1">
        <nameWell></nameWell>
        <nameWellbore></nameWellbore>
        <name></name>
        <serviceCompany></serviceCompany>
        <runNumber></runNumber>
        <creationDate></creationDate>
        <description></description>
    </log>
</logs>

DrillFlow returns the following:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<logs version="1.4.1.1" xmlns="http://www.witsml.org/schemas/1series"
    xmlns:ns2="http://www.energistics.org/schemas/abstract">
<log uid="Test_depth_log1">
<nameWell>Well Energistics-well-0001</nameWell>
<nameWellbore>Wellbore Energistics-w1-wellbore-0001</nameWellbore>
<name>Test_depth_log1</name>
<serviceCompany>Baker Hughes INTEQ</serviceCompany>
<runNumber>12</runNumber>
<description>Drilling Data Log</description>
<logCurveInfo uid="lci-1">
<mnemonic>Mdepth</mnemonic>
<classIndex>0</classIndex>
<unit>m</unit>
<mnemAlias>md</mnemAlias>
<nullValue>-999.25</nullValue>
<sensorOffset uom="m">0.0</sensorOffset>
<traceState>raw</traceState>
<typeLogData>double</typeLogData>
</logCurveInfo>
</log>
</logs>

Note there are two problems with this return.

  1. is not returned as requested.
  2. The return contains one even though it was not part of the request.
cherrera2001 commented 5 years ago

addressed by https://github.com/hashmapinc/Drillflow/commit/a4d55497a1bcfdaaddd9c0233c5b493d85800bd0