Skip to content

Feature/ab#2123 add compass point to light barriers#110

Merged
witchpou merged 6 commits intomainfrom
feature/AB#2123-add-compass-point-to-light-barriers
Mar 12, 2026
Merged

Feature/ab#2123 add compass point to light barriers#110
witchpou merged 6 commits intomainfrom
feature/AB#2123-add-compass-point-to-light-barriers

Conversation

@flonix8
Copy link
Contributor

@flonix8 flonix8 commented Mar 6, 2026

Description

This adds "direction" to observation jobs (which is used in light barriers in observatory-config).
Also a bug is fixed where updated job metadata would never be updated in the analytics database.

Motivation and Context

How has this been tested?

A production dump has been used to test migration and functionality.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@flonix8 flonix8 requested review from witchpou and ztarbug and removed request for ztarbug March 6, 2026 15:45
if (!metadata.getName().equals(job.getName())) return false;
if (!metadata.getClassification().equals(job.getClassification())) return false;
if (metadata.getGeoReferenced() != job.getGeoReferenced()) return false;
if (!metadata.getCenterLatitude().equals(job.getCenterLatitude())) return false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with not geo-referenced content, error occured:
[ERROR] 2026-03-09 15:26:03.105 [SimpleAsyncTaskExecutor-1] LineCrossingRunner - Error storing Linecrossing observation: e3f776a389c7313e8356fc20c4cf55d6 has crossed line (area=1, name=LS1) in direction in
java.lang.NullPointerException: Cannot invoke "java.math.BigDecimal.equals(Object)" because the return value of "de.starwit.persistence.analytics.entity.MetadataEntity.getCenterLatitude()" is null
at de.starwit.service.analytics.MetadataService.metadataMatchesJob(MetadataService.java:90

@witchpou witchpou merged commit f67af0a into main Mar 12, 2026
2 checks passed
@witchpou witchpou deleted the feature/AB#2123-add-compass-point-to-light-barriers branch March 12, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants