-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add remoteDetectionAlert
doc type
#234
Conversation
* main: chore: remove unused imports (#246) Release v3.0.0-next.26 (#242) fix: don't require iconRef for presets (#241) Release v3.0.0-next.25 (#240) chore!: make some Observation props optional (#239) chore!: make Field's `universal` property optional in schema (#236) test: use correct type for fixtures (#238) chore!: make Preset's `iconRef` optional (#235) feat: add `altitudeAccuracy` to observation metadata (#237)
…lert * fix/observation-metadata: fix: don't generate partial and json methods (unused) fix: observation metadata types and encoding defaults WIP: 7b5de70 add failing test
This depends on #248 (because @comapeo/geometry doesn't export The actual changes to add geometry are in https://github.com/digidem/mapeo-schema/pull/234/commits/7733276587d1d57109e502e635f914a7c9a896cc It is a bit more complicated than I would like because of the need to deal with JSONSchema refs with 3 different libraries that we use ( Would be nice to replace |
I plan to review this next week. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume you and Gregor decided that this was a good format for alerts.
There's a bunch of Observation stuff in here that needs to be reverted. I think merging main
should fix that.
Otherwise mostly LGTM.
"required": [ | ||
"schemaName", | ||
"detectionDateStart", | ||
"detectionDateEnd", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intuitively I don't know if this should be required. What if there's an alert that's still active?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This refers to the period during which the alert was detected in source imagery. As I understand it, in plain English, "We know that this issue was visible up to this date". It is the date of the last imagery available when the alert was detected. As such, I think it always exists when detecting alerts from remote sensing data.
The main advantage of making these required fields is a possible future feature where a user can filter the map view or a future alerts list view by date.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I've resolved all of Evan's comments and I've re-reviewed this, and it looks good to merge to me. @EvanHahn this needs a review approval from you to merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should not merge this until we have released the MVP, in case we need bug fixes before MVP (having this merged would complicate bug fixes)
wouldn't it make sense to have a 'develop' branch where we merge this so we don't have a bunch of dangling open PRs (but maybe there won't be many of this)? |
…dRemoteDetectionAlert
…apeo-schema into feat/addRemoteDetectionAlert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than one small nitpick.
This adds the
remoteDetectionAlert
doc type. Thegeometry
message is a stub for now, until @gmaclennan implements its decoding conversion to GeoJSON.The only doubt I have is around
sourceId
. Is there a clear format for this string? Should we add concrete validation for it?Also, I reused the
tags
type formetadata
(since they are structurally the same?, basically aRecord<string, any>
). I know that semantically is confusing, but this allows to reuse all the conversion functions regarding tagsshould close #228