2525E Types - #137
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Pull request overview
This PR adds support for providing numeric MIL-STD-2525D/2525E SIDCs in GeoJSON input via the properties.type field, converting them into a basic CoT Atom type while preserving the original SIDC in milicon.
Changes:
- Add numeric SIDC detection and conversion utilities (
isNumericSIDCConvertable,fromNumericSIDC) to the 2525 utility. - Update
from_geojsonto accept numeric SIDCs inproperties.type, map them toa-<affiliation>-<battle dimension>, and populateproperties.milicon.idwhen not explicitly provided. - Add test coverage for conversion behavior and non-clobbering of explicit
milicon.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test/from_geojson.test.ts | Adds GeoJSON-to-CoT tests covering numeric SIDC-as-type conversion and milicon preservation behavior. |
| test/2525.test.ts | Adds unit tests for numeric SIDC validation and mapping to CoT atom types. |
| lib/utils/2525.ts | Implements numeric SIDC recognition and basic conversion logic (affiliation + symbol set → battle dimension). |
| lib/parser/from_geojson.ts | Integrates numeric SIDC handling into GeoJSON parsing, including milicon population and type remapping. |
| CHANGELOG.md | Documents the new GeoJSON type numeric SIDC input behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context