-
Notifications
You must be signed in to change notification settings - Fork 5
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
63 setup exploration module #69
Conversation
… 63-setup-exploration-module
…search bar (autocompletion)
public class BootExplorationModuleController extends DefaultExplorationModuleController { | ||
|
||
public BootExplorationModuleController(FindSystemsFromSearchbarUseCase findSystemsFromSearchbarUseCase, SystemDtoMapper systemDtoMapper) { | ||
super(findSystemsFromSearchbarUseCase, systemDtoMapper); |
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.
"from search bar" - isn't that a FE concept? Should we not use the filters logic?
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.
the issue is that this is indeed an endpoint, that were it not for FE, I would not have created.
this is such a specific need to have performant and limited resultSet that I think it warants a specific endpoint
...o/edpn/backend/exploration/application/controller/v1/DefaultExplorationModuleController.java
Outdated
Show resolved
Hide resolved
...va/io/edpn/backend/exploration/application/usecase/DefaultReceiveNavRouteMessageUseCase.java
Outdated
Show resolved
Hide resolved
...n/backend/exploration/application/usecase/DefaultReceiveSystemCoordinatesRequestUseCase.java
Outdated
Show resolved
Hide resolved
exploration-module/src/main/java/io/edpn/backend/exploration/configuration/ServiceConfig.java
Outdated
Show resolved
Hide resolved
...module/src/main/java/io/edpn/backend/exploration/infrastructure/kafka/KafkaTopicHandler.java
Outdated
Show resolved
Hide resolved
exploration-module/src/main/java/io/edpn/backend/exploration/application/dto/SystemEntity.java
Show resolved
Hide resolved
exploration-module/src/main/java/io/edpn/backend/exploration/adapter/web/SystemController.java
Outdated
Show resolved
Hide resolved
.../main/java/io/edpn/backend/trade/application/controller/v1/DefaultTradeModuleController.java
Outdated
Show resolved
Hide resolved
.../java/io/edpn/backend/exploration/adapter/persistence/SystemCoordinateRequestRepository.java
Outdated
Show resolved
Hide resolved
...o/edpn/backend/exploration/adapter/persistence/MybatisSystemCoordinateRequestRepository.java
Outdated
Show resolved
Hide resolved
exploration-module/src/main/java/io/edpn/backend/exploration/adapter/config/KafkaConfig.java
Show resolved
Hide resolved
...o/edpn/backend/exploration/adapter/persistence/MybatisSystemCoordinateRequestRepository.java
Show resolved
Hide resolved
system.starClass(), | ||
Optional.ofNullable(system.coordinate()).map(Coordinate::x).orElse(null), | ||
Optional.ofNullable(system.coordinate()).map(Coordinate::y).orElse(null), | ||
Optional.ofNullable(system.coordinate()).map(Coordinate::z).orElse(null)); |
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.
In what situation would a system not have an x/y/z co-ordinate?
Should these not be non-null? Maybe we know the system name, but not it's location (thanks to EDDN design decisions)? I know there are some message types that state the system name but not it's location (my choice to address that in the past, was to make System have an address
property, which may or may not be null... but an address must always have x/y/z).
exploration-module/src/main/java/io/edpn/backend/exploration/adapter/web/SystemController.java
Outdated
Show resolved
Hide resolved
|
||
private CoordinateDto coordinateFromSystem(System system) { | ||
if (Optional.ofNullable(system.coordinate()).map(Coordinate::x).isEmpty()) { | ||
return null; |
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'm going to be flamed for this, but this is a misuse of Optional
in my opinion.
This could be a rather simple if
construct, possibly a ternary. It could even be Objects.requireNonNull()
.
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.
Also, the isEmpty()
if-block could be orElse(null)
instead.
But is null
really something we'd want to return here?
|
||
private System updateSystemFromItem(final System system, NavRouteMessage.V1.Item item) { | ||
System returnSystem = system; | ||
if (Objects.isNull(system.eliteId())) { |
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.
What's wrong with if system.eliteId() == null
?
...n/java/io/edpn/backend/exploration/application/validation/LoadByNameContainingValidator.java
Outdated
Show resolved
Hide resolved
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 dont see the files for marking,
io/edpn/backend/trade/application/dto/v1/LocateCommodityResponse.java
Line 21
java.time.LocalDateTime not supported by jacksonized out of the box, error message says to add "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling
...le/src/main/java/io/edpn/backend/exploration/adapter/web/dto/mapper/RestSystemDtoMapper.java
Outdated
Show resolved
Hide resolved
exploration-module/src/main/java/io/edpn/backend/exploration/adapter/web/SystemController.java
Show resolved
Hide resolved
exploration-module/src/main/java/io/edpn/backend/exploration/adapter/web/SystemController.java
Outdated
Show resolved
Hide resolved
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.
Approved
adding exploration module
process NavRoute EDDN message
process request for system Coordinates from trade module
write endpoint for system search by name from searchbar
transition to PostGIS from Postgress
closes #63