MapColonies / MapColonies/polygon-parts-manager

failing test

Open
#51 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
a test in `polygonParts.spec.ts` under the path:

> polygonParts -->
> Happy Path -->
> POST /polygonParts/:polygonPartsEntityName/find -->
> clip result enabled (shouldClip) -->
> input features are polygon geometries -->
> should return 200 status code and return clipped polygon parts when feature collection features (2 continuous features) contain polygon parts

produced an error when asserting the response body

**To Reproduce**
Steps to reproduce the behavior:
1. run test multiple times

**Expected behavior**
test should pass

**Additional context**
the test uses a random polygon parts seed. it may take an unknown amount of re-runs.
it was noticed that the response/requested geometry included a perfect zero (0) coordinate,
this might be related to the issue

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.

Research direction

Start with polygonParts.spec.ts and the nested POST /polygonParts/:polygonPartsEntityName/find test for clipped polygon parts. Run the test repeatedly using its random polygon-parts seed and inspect the response-body assertion when it fails, including cases with a zero coordinate. Done means the test reliably passes and returns status 200 with the expected clipped polygon parts.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.