File tree Expand file tree Collapse file tree 4 files changed +0
-26
lines changed
database/sql/src/main/scala/cromwell/database
services/src/main/scala/cromwell/services/metadata/impl Expand file tree Collapse file tree 4 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -130,11 +130,6 @@ class MetadataSlickDatabase(originalDatabaseConfig: Config)
130
130
} yield ()
131
131
}
132
132
133
- override def metadataEntryExists (workflowExecutionUuid : String )(implicit ec : ExecutionContext ): Future [Boolean ] = {
134
- val action = dataAccess.metadataEntryExistsForWorkflowExecutionUuid(workflowExecutionUuid).result
135
- runTransaction(action)
136
- }
137
-
138
133
override def metadataSummaryEntryExists (
139
134
workflowExecutionUuid : String
140
135
)(implicit ec : ExecutionContext ): Future [Boolean ] = {
Original file line number Diff line number Diff line change @@ -95,22 +95,6 @@ trait MetadataEntryComponent {
95
95
}.size
96
96
)
97
97
98
- val metadataEntryExistsForWorkflowExecutionUuid = Compiled ((workflowExecutionUuid : Rep [String ]) =>
99
- (for {
100
- metadataEntry <- metadataEntries
101
- if metadataEntry.workflowExecutionUuid === workflowExecutionUuid
102
- } yield metadataEntry).exists
103
- )
104
-
105
- def metadataEntryExistsForWorkflowExecutionUuid (workflowId : Rep [String ], key : Rep [String ]): Rep [Boolean ] =
106
- metadataEntries
107
- .filter(metadataEntry =>
108
- metadataEntry.workflowExecutionUuid === workflowId &&
109
- metadataEntry.metadataKey === key &&
110
- metadataEntry.metadataValue.isDefined
111
- )
112
- .exists
113
-
114
98
val metadataEntriesForWorkflowExecutionUuidAndMetadataKey =
115
99
Compiled ((workflowExecutionUuid : Rep [String ], metadataKey : Rep [String ]) =>
116
100
(for {
Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ trait MetadataSqlDatabase extends SqlDatabase {
37
37
labelMetadataKey : String
38
38
)(implicit ec : ExecutionContext ): Future [Unit ]
39
39
40
- def metadataEntryExists (workflowExecutionUuid : String )(implicit ec : ExecutionContext ): Future [Boolean ]
41
-
42
40
def metadataSummaryEntryExists (workflowExecutionUuid : String )(implicit ec : ExecutionContext ): Future [Boolean ]
43
41
44
42
def queryMetadataEntries (workflowExecutionUuid : String , timeout : Duration )(implicit
Original file line number Diff line number Diff line change @@ -303,9 +303,6 @@ trait MetadataDatabaseAccess {
303
303
_ map { case (id, labelsForId) => WorkflowId .fromString(id) -> labelsForId }
304
304
}
305
305
306
- def workflowWithIdExistsInMetadata (possibleWorkflowId : String )(implicit ec : ExecutionContext ): Future [Boolean ] =
307
- metadataDatabaseInterface.metadataEntryExists(possibleWorkflowId)
308
-
309
306
def workflowWithIdExistsInMetadataSummaries (possibleWorkflowId : String )(implicit
310
307
ec : ExecutionContext
311
308
): Future [Boolean ] =
You can’t perform that action at this time.
0 commit comments