Skip to content

Invalid time series mapping values just disappear #1287

@sebastian-peter

Description

@sebastian-peter

If there's an error during mapping entry creation, the failure is just filtered out. It should be thrown instead.

public Map<UUID, UUID> getMapping() throws SourceException {
return getMappingSourceData()
.map(this::createMappingEntry)
.filter(Try::isSuccess)
.map(t -> (Success<MappingEntry, FactoryException>) t)
.map(Success::get)
.collect(Collectors.toMap(MappingEntry::getAsset, MappingEntry::getTimeSeries));
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions