Time offset format is inconsistent between plan JSON and Aerie UI

Open
#87 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
cli

Research direction

Start at the aerie-cli plan download path and trace how start_offset is serialized, comparing it with the hh:mm:ss.sss format shown by the Aerie UI and GraphQL response. Done means offsets over 24 hours use total hours rather than a days prefix, with coverage confirming the JSON representation matches the UI format.

Written by the indexing model from the issue text.

Description

breaking change enhancement

The Aerie UI (and GraphQL response) displays start offests as hh:mm:ss.sss. Aerie always shows number of hours, even if the offset is more than 24 hrs. However, when I download a plan using the aerie-cli the offset is represented as "D days, hh:mm:ss.sss". For example "start_offset": "2 days, 0:59:59.897000", where as in the Aerie GUI, it's 48:59:59.897.

This difference in format makes it difficult to match up times in the plan JSON file with activities in the Aeri/e UI. We should use the same offset format as in Aerie.

Dominant language
Python
Stars
5
Forks
7
Avg merge
3d 14h
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 NASA-AMMOS/plandev-cli

All issues in NASA-AMMOS/plandev-cli

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.