Skip to content
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

merge Release/2024 q3 into master #110

Merged
merged 49 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
a68b909
Added Endpoint for getting map based upon long lat
John-Wiens Jun 6, 2024
56dcff0
Cleaning up Environment Variables
John-Wiens Jun 10, 2024
75262e9
Added Full Counts function calls
John-Wiens Jun 11, 2024
6e3862b
Added Full Counts to Events and Assessments
John-Wiens Jun 11, 2024
d331c9a
Removing mapbox style requirement
jacob6838 Jun 12, 2024
46931e9
Update sample.env
jacob6838 Jun 12, 2024
997e057
Fixing Assessment Unit Tests
John-Wiens Jun 13, 2024
19c97ee
Adding CIMMS Overview Presentation
John-Wiens Jun 13, 2024
c460427
Adding Null Checks to Message Forwarder
John-Wiens Jun 13, 2024
d98a161
Merge pull request #93 from usdot-jpo-ode/message-forwarder-fixes
John-Wiens Jun 13, 2024
9193ecb
Updating CIMMS Design Documents
John-Wiens Jun 14, 2024
5f64a1a
Merge pull request #91 from usdot-jpo-ode/testing-fixes
John-Wiens Jun 14, 2024
ab2ddbf
Merge pull request #95 from usdot-jpo-ode/docs-update
John-Wiens Jun 14, 2024
80e3fab
Merge branch 'develop' of github.com:usdot-jpo-ode/jpo-conflictvisual…
John-Wiens Jun 17, 2024
2fa9516
Removing Mapbox token from docker-compose
John-Wiens Jun 17, 2024
42f1dd7
Merge pull request #92 from usdot-jpo-ode/removing-external-style
John-Wiens Jun 17, 2024
c36cb9c
Merge pull request #97 from usdot-jpo-ode/master
dan-du-car Jun 18, 2024
f417877
Merge pull request #98 from usdot-jpo-ode/count-fixes
John-Wiens Jun 20, 2024
db28d70
Merge pull request #99 from usdot-jpo-ode/geo-map-lookup
John-Wiens Jun 20, 2024
f872020
Added Content type header to conflict monitor requests
John-Wiens Jul 1, 2024
d5d0933
Merge pull request #100 from usdot-jpo-ode/content-type-fixes
John-Wiens Jul 1, 2024
2d738c3
Updated mock event generation to match dark events.
John-Wiens Jul 3, 2024
e042f43
Updating Submodules
John-Wiens Jul 3, 2024
6aebd0f
Merge pull request #101 from usdot-jpo-ode/content-type-fixes
John-Wiens Jul 3, 2024
a4b586e
Adding abortController to all api calls
jacob6838 Aug 14, 2024
f59ffff
Rendering map data before SPAT data is fully loaded
jacob6838 Aug 14, 2024
cfc8dcb
Aborting previous requests in pullInitialData
jacob6838 Aug 14, 2024
d0ff282
Clearing map on new data load
jacob6838 Aug 14, 2024
1ab3922
Update events-api.ts
jacob6838 Aug 14, 2024
d5a4e81
Update events-api.ts
jacob6838 Aug 14, 2024
43d562f
Adding command structure to map component
jacob6838 Aug 14, 2024
9e3392f
enabling display of BSMs without MAP and SPAT
jacob6838 Aug 14, 2024
c7f59fb
Tweaking decoder manual data entry logic
jacob6838 Aug 14, 2024
2ff4c7b
Merge pull request #102 from usdot-jpo-ode/2024_08_14_bug_fixes
John-Wiens Aug 15, 2024
2298906
Merge pull request #103 from usdot-jpo-ode/decoder-fixes
John-Wiens Aug 15, 2024
10c8e9d
Fixing BSM display
jacob6838 Aug 15, 2024
eca3e51
Merge pull request #104 from usdot-jpo-ode/decoder-fixes
John-Wiens Aug 15, 2024
4bd7f05
Update decoder-tables.tsx
jacob6838 Aug 15, 2024
23481ca
Merge pull request #105 from usdot-jpo-ode/decoder-fixes
John-Wiens Aug 15, 2024
0b9ca8d
updated conflictmonitor and geojsonconverter references
Michael7371 Aug 28, 2024
aaeb85c
Merge pull request #106 from usdot-jpo-ode/cm-submodule-updates
Michael7371 Aug 28, 2024
ab7a74b
Fixing missing BSMs and removing prints
jacob6838 Sep 24, 2024
e71e15a
Updating BSM timing to incorporate the secMark
jacob6838 Sep 25, 2024
8250a37
Updating mapbox style url
jacob6838 Sep 26, 2024
236ec90
Merge pull request #108 from usdot-jpo-ode/missing-bsms
John-Wiens Sep 26, 2024
7e71549
Merge pull request #109 from usdot-jpo-ode/missing-bsm-hotfix
John-Wiens Sep 26, 2024
26a01d7
updated submodule and pom.xml
SaikrishnaBairamoni Sep 30, 2024
a267aef
update reference
dan-du-car Oct 1, 2024
488a228
update ref
dan-du-car Oct 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

[submodule "api/asn1_codec"]
path = api/asn1_codec
url = https://github.com/iyourshaw/asn1_codec.git
url = https://github.com/usdot-jpo-ode/asn1_codec.git
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ Once these components have been installed. Download and install additional depen
```
cd api/jpo-conflictvisualizer-api
mvn clean install
mvn spring-boot:run
```

### 2. Running Conflict Visualizer GUI Locally
Expand Down
2 changes: 1 addition & 1 deletion api/jpo-conflictmonitor
12 changes: 6 additions & 6 deletions api/jpo-conflictvisualizer-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</parent>
<groupId>usdot.jpo.ode</groupId>
<artifactId>jpo-conflictvisualizer-api</artifactId>
<version>1.3.1-SNAPSHOT</version>
<version>1.4.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>jpo-conflictvisualizer-api</name>
<description>Conflict Visualizer</description>
Expand Down Expand Up @@ -98,7 +98,7 @@
<dependency>
<groupId>usdot.jpo.ode</groupId>
<artifactId>jpo-ode-core</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
<!-- required exclusion to preserve keycloak versions -->
<exclusions>
<exclusion>
Expand All @@ -110,23 +110,23 @@
<dependency>
<groupId>usdot.jpo.ode</groupId>
<artifactId>jpo-ode-plugins</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>usdot.jpo.ode</groupId>
<artifactId>jpo-ode-svcs</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>usdot.jpo.ode</groupId>
<artifactId>jpo-geojsonconverter</artifactId>
<version>1.3.1-SNAPSHOT</version>
<version>1.4.2-SNAPSHOT</version>
<classifier>jpo-geojsonconverter</classifier>
</dependency>
<dependency>
<groupId>usdot.jpo.ode</groupId>
<artifactId>jpo-conflictmonitor</artifactId>
<version>1.3.1-SNAPSHOT</version>
<version>1.4.1-SNAPSHOT</version>
<classifier>jpo-conflictmonitor</classifier>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ public interface ConnectionOfTravelAssessmentRepository extends DataLoader<Conne
Query getQuery(Integer intersectionID, Long startTime, Long endTime, boolean latest);

long getQueryResultCount(Query query);

long getQueryFullCount(Query query);

List<ConnectionOfTravelAssessment> find(Query query);


}

Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,20 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
return query;
}


public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, ConnectionOfTravelAssessment.class, collectionName);
}

// Removes the result limit on a count query.
public long getQueryFullCount(Query query){
int limit = query.getLimit();
query.limit(-1);
long count = mongoTemplate.count(query, ConnectionOfTravelAssessment.class, collectionName);
query.limit(limit);
return count;
}

public List<ConnectionOfTravelAssessment> find(Query query) {
return mongoTemplate.find(query, ConnectionOfTravelAssessment.class, collectionName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public interface LaneDirectionOfTravelAssessmentRepository extends DataLoader<La
Query getQuery(Integer intersectionID, Long startTime, Long endTime, boolean latest);

long getQueryResultCount(Query query);

long getQueryFullCount(Query query);

List<LaneDirectionOfTravelAssessment> find(Query query);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Component;

import us.dot.its.jpo.conflictmonitor.monitor.models.assessments.LaneDirectionOfTravelAssessment;
import us.dot.its.jpo.ode.api.ConflictMonitorApiProperties;

Expand Down Expand Up @@ -51,14 +52,24 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}else{
query.limit(props.getMaximumResponseSize());
}

return query;
}



public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, LaneDirectionOfTravelAssessment.class, collectionName);
}

public long getQueryFullCount(Query query){
int limit = query.getLimit();
query.limit(-1);
long count = mongoTemplate.count(query, LaneDirectionOfTravelAssessment.class, collectionName);
query.limit(limit);
return count;
}

public List<LaneDirectionOfTravelAssessment> find(Query query) {
return mongoTemplate.find(query, LaneDirectionOfTravelAssessment.class, collectionName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public interface StopLineStopAssessmentRepository extends DataLoader<StopLineSto
Query getQuery(Integer intersectionID, Long startTime, Long endTime, boolean latest);

long getQueryResultCount(Query query);

long getQueryFullCount(Query query);

List<StopLineStopAssessment> find(Query query);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Component;

import us.dot.its.jpo.conflictmonitor.monitor.models.assessments.StopLineStopAssessment;
import us.dot.its.jpo.ode.api.ConflictMonitorApiProperties;

Expand Down Expand Up @@ -52,10 +53,17 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, StopLineStopAssessment.class, collectionName);
}

public long getQueryFullCount(Query query){
int limit = query.getLimit();
query.limit(-1);
long count = mongoTemplate.count(query, StopLineStopAssessment.class, collectionName);
query.limit(limit);
return count;
}

public List<StopLineStopAssessment> find(Query query) {
return mongoTemplate.find(query, StopLineStopAssessment.class, collectionName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ public interface SignalStateEventAssessmentRepository extends DataLoader<StopLin

long getQueryResultCount(Query query);

long getQueryFullCount(Query query);

List<StopLinePassageAssessment> find(Query query);
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,17 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, StopLinePassageAssessment.class, collectionName);
}

public long getQueryFullCount(Query query){
int limit = query.getLimit();
query.limit(-1);
long count = mongoTemplate.count(query, StopLinePassageAssessment.class, collectionName);
query.limit(limit);
return count;
}

public List<StopLinePassageAssessment> find(Query query) {
return mongoTemplate.find(query, StopLinePassageAssessment.class, collectionName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public interface BsmEventRepository extends DataLoader<BsmEvent>{
Query getQuery(Integer intersectionID, Long startTime, Long endTime, boolean latest);

long getQueryResultCount(Query query);

long getQueryFullCount(Query query);

List<BsmEvent> find(Query query);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,17 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, BsmEvent.class, collectionName);
}

public long getQueryFullCount(Query query){
int limit = query.getLimit();
query.limit(-1);
long count = mongoTemplate.count(query, BsmEvent.class, collectionName);
query.limit(limit);
return count;
}

public List<BsmEvent> find(Query query) {

List<Map> documents = mongoTemplate.find(query, Map.class, collectionName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public interface ConnectionOfTravelEventRepository extends DataLoader<Connection
Query getQuery(Integer intersectionID, Long startTime, Long endTime, boolean latest);

long getQueryResultCount(Query query);

long getQueryFullCount(Query query);

List<ConnectionOfTravelEvent> find(Query query);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Component;

import us.dot.its.jpo.conflictmonitor.monitor.models.events.ConnectionOfTravelEvent;
import org.springframework.data.domain.Sort;

Expand Down Expand Up @@ -59,10 +60,17 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, ConnectionOfTravelEvent.class, collectionName);
}

public long getQueryFullCount(Query query){
int limit = query.getLimit();
query.limit(-1);
long count = mongoTemplate.count(query, ConnectionOfTravelEvent.class, collectionName);
query.limit(limit);
return count;
}

public List<ConnectionOfTravelEvent> find(Query query) {
return mongoTemplate.find(query, ConnectionOfTravelEvent.class, collectionName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public interface IntersectionReferenceAlignmentEventRepository extends DataLoade
Query getQuery(Integer intersectionID, Long startTime, Long endTime, boolean latest);

long getQueryResultCount(Query query);

long getQueryFullCount(Query query);

List<IntersectionReferenceAlignmentEvent> find(Query query);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Component;

import us.dot.its.jpo.conflictmonitor.monitor.models.events.IntersectionReferenceAlignmentEvent;
import us.dot.its.jpo.ode.api.ConflictMonitorApiProperties;
import us.dot.its.jpo.ode.api.models.IDCount;
Expand Down Expand Up @@ -58,11 +59,18 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, IntersectionReferenceAlignmentEvent.class,
collectionName);
}

public long getQueryFullCount(Query query){
int limit = query.getLimit();
query.limit(-1);
long count = mongoTemplate.count(query, IntersectionReferenceAlignmentEvent.class, collectionName);
query.limit(limit);
return count;
}

public List<IntersectionReferenceAlignmentEvent> find(Query query) {
return mongoTemplate.find(query, IntersectionReferenceAlignmentEvent.class,
collectionName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public interface LaneDirectionOfTravelEventRepository extends DataLoader<LaneDir

long getQueryResultCount(Query query);

long getQueryFullCount(Query query);

List<LaneDirectionOfTravelEvent> find(Query query);

List<IDCount> getLaneDirectionOfTravelEventsByDay(int intersectionID, Long startTime, Long endTime);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,17 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, LaneDirectionOfTravelEvent.class, collectionName);
}

public long getQueryFullCount(Query query){
int limit = query.getLimit();
query.limit(-1);
long count = mongoTemplate.count(query, LaneDirectionOfTravelEvent.class, collectionName);
query.limit(limit);
return count;
}

public List<LaneDirectionOfTravelEvent> find(Query query) {
return mongoTemplate.find(query, LaneDirectionOfTravelEvent.class, collectionName);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public interface MapBroadcastRateEventRepository extends DataLoader<MapBroadcast
Query getQuery(Integer intersectionID, Long startTime, Long endTime, boolean latest);

long getQueryResultCount(Query query);

long getQueryFullCount(Query query);

List<MapBroadcastRateEvent> find(Query query);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,17 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, MapBroadcastRateEvent.class, collectionName);
}

public long getQueryFullCount(Query query){
int limit = query.getLimit();
query.limit(-1);
long count = mongoTemplate.count(query, MapBroadcastRateEvent.class, collectionName);
query.limit(limit);
return count;
}

public List<MapBroadcastRateEvent> find(Query query) {
return mongoTemplate.find(query, MapBroadcastRateEvent.class, collectionName);
}
Expand Down Expand Up @@ -91,6 +98,8 @@ public List<IDCount> getMapBroadcastRateEventsByDay(int intersectionID, Long sta
return results;
}



@Override
public void add(MapBroadcastRateEvent item) {
mongoTemplate.save(item, collectionName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public interface MapMinimumDataEventRepository extends DataLoader<MapMinimumData
Query getQuery(Integer intersectionID, Long startTime, Long endTime, boolean latest);

long getQueryResultCount(Query query);

long getQueryFullCount(Query query);

List<MapMinimumDataEvent> find(Query query);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,17 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}

public long getQueryResultCount(Query query) {
query.limit(-1);
return mongoTemplate.count(query, MapMinimumDataEvent.class, collectionName);
}

public long getQueryFullCount(Query query){
int limit = query.getLimit();
query.limit(-1);
long count = mongoTemplate.count(query, MapMinimumDataEvent.class, collectionName);
query.limit(limit);
return count;
}

public List<MapMinimumDataEvent> find(Query query) {
return mongoTemplate.find(query, MapMinimumDataEvent.class, collectionName);
}
Expand Down
Loading
Loading