Kit route crossings: count crossings at a shared sample and along a shared stretch
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 54/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- tooling
Rechercherichtung
Start with packages/renderers/kit/src/routes/crossings.ts and segment-crossing.ts, then read crossingsBetween and the existing together behavior. Add the terraform-deployment and perpendicular-grid cases to packages/renderers/kit/test/routes.test.mjs and run the route tests. Done means both shared-sample and shared-stretch crossings are counted once, shared trunks from a common port remain uncounted, and the drafting, converging, and ports tests stay green.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
The kit's crossing test (polylinesCross / routeCrossings, packages/renderers/kit/src/routes/crossings.ts and segment-crossing.ts) counts a proper crossing, and since #234 a route passing through another at one of its own samples. It still misses:
- Two routes meeting at a sample of each. For example, perpendicular lines sampled every 3 units both have a sample at the crossing point, so neither the proper test nor the through-a-sample test sees it (Copilot review on #234).
- Two routes crossing along a stretch they share. One route joins another's run from one side and leaves it to the other side, which reads as a crossing with a hidden overlap.
crossingsBetweentreats collinear stretches as a trunk and never counts them.
These need doing together. Counting (1) alone (the neighbouring samples interleaved strictly around the shared point) changes terraform-deployment's routing so that lambda.api and lambda.payments into aws_subnet.private[0] take one track and part on opposite sides, which is (2).
Suggested approach: for a shared sample or shared collinear stretch, compare the side each route enters from (the last sample before) with the side it leaves to (the first sample after), relative to the other route. Count a crossing when they differ, once per shared stretch, and keep shared trunks from a common port uncounted, as together does now.
Check: add terraform-deployment and the perpendicular-grid case to packages/renderers/kit/test/routes.test.mjs; the drafting, converging and ports tests should stay green.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 4
- Forks
- 1
- Ø Merge
- 5 Std. 31 Min.
- Gemergte PRs (30 T.)
- 229
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus githubnext/projections
-
Schwierigkeit 3/5 Ein halber Tag Anfängerfreundlichkeit 45/100
githubnext/projections#68 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in githubnext/projections
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
nicobailon/pi-subagents#3425 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[PORT] A2A: map audio file parts to audio content and ignore MIME parameters (TS→Py)Evtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenarea-a2a bug port python
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
strands-agents/harness-sdk#6697 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
api technical-debt
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
opencollective/opencollective#9235 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
openwatersio/slackwater#603 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag