microsoft / microsoft/json-document-transforms

Json transformation loses data

Open
#18 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
115
Forks
39
PR merge metrics
No merged PRs in 30d

Description

Copied from: https://github.com/Microsoft/slow-cheetah/issues/107

Trying to replace whole file which contains date with zero'es as milliseconds results in transformed file losing those zero'es

Transformation file:
{ "value": "2017-12-20T20:10:00.0000000" }

Transformed file:
{ "value": "2017-12-20T20:10:00" }

Expected transformed file:
{ "value": "2017-12-20T20:10:00.0000000" }

Contributor guide

Open the contributing guide

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.

Research direction

Start by reproducing the transformation using the JSON shown in the issue and compare the generated value with the expected output. The issue names no source file or test, so locate the transformation entry point and its tests first. Done means fractional trailing zeros in date values are preserved in the transformed file.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.