Skip to content

Commit a407e95

Browse files
authored
fix extractors firing wrong (#249)
* fix extractors firing wrong this will make it so extractors fire when enabled/disabled in a space. * forgot to push CHANGELOG
1 parent da651e4 commit a407e95

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
## Unreleased
88

99
### Fixed
10+
- When uploading a file, it would ignore any extractors marked disabled at the space level. [#246](https://github.com/clowder-framework/clowder/issues/246)
1011
- Added index for comments, will speed up index creation
1112

1213
## 1.17.0 - 2021-04-29

app/services/ExtractorRoutingService.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class ExtractorRoutingService {
7575
private def getMatchingExtractors(extractorIds: List[String], operation: String, resourceType: ResourceType.Value): List[String] = {
7676
val extractorsService = DI.injector.getInstance(classOf[ExtractorService])
7777

78-
extractorsService.getEnabledExtractors().flatMap(exId =>
78+
extractorIds.flatMap(exId =>
7979
extractorsService.getExtractorInfo(exId)).filter(exInfo =>
8080
resourceType match {
8181
case ResourceType.dataset =>

0 commit comments

Comments
 (0)