Support headerOnly returnElements optionIn for trajectory

Open Beginner friendly
#333 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
java
Domain
api, backend

Research direction

Start in com.hashmapinc.tempus.witsml.valve.dot.DotTranslator, specifically the translateQueryResponse method and its object-type switch. Inspect how returnElements is handled, then implement the stated header-only behavior for trajectoryStation. Done means trajectoryStation is null when returnElements is header-only while other elements remain returned.

Written by the indexing model from the issue text.

Description

todo

Summary

If returnElements is set to header-only in OptionsIn then all the elements except for trajectoryStation should be returned.

trajectoryStation is an array type so the array should actually be emptied, even if DoT returns trajectory stations

Implementation Details

  1. In the com.hashmapinc.tempus.witsml.valve.dot.DotTranslator class and the translateQueryResponse method, a check needs to be added in the switch statement that is responsible for returning the object type.
  2. The check must be if (optionsIn.containsKey("returnElements") && optionsIn.get("returnElements").equals("header-only")) then remove trajectoryStation by setting the trajectoryStation property equal to null.
Dominant language
Java
Stars
21
Forks
13
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hashmapinc/Drillflow

All issues in hashmapinc/Drillflow

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.