Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,6 @@
<include file="changesets/20250821_remove_all_gcpbatch_workspace_settings_again.xml" relativeToChangelogFile="true"/>
<include file="changesets/20250912_workflow_actual_cost.xml" relativeToChangelogFile="true"/>
<include file="changesets/20251009_quicksilver_for_empty_workspaces.xml" relativeToChangelogFile="true"/>
<include file="changesets/20251015_workspace_settings_index.xml" relativeToChangelogFile="true"/>
<include file="changesets/20251015_entity_indexing.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog logicalFilePath="dummy" xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.33.xsd">
<changeSet logicalFilePath="dummy" author="davidan" id="workspace_settings_index">
<createIndex tableName="WORKSPACE_SETTINGS" indexName="idx_ws_type_status">
<column name="WORKSPACE_ID" />
<column name="SETTING_TYPE" />
<column name="STATUS" />
</createIndex>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ trait SubmissionApiService extends UserInfoDirectives {
get {
parameters("startDate".as[DateTime].?, "endDate".as[DateTime].?) { (startDateOpt, endDateOpt) =>
complete {
submissionsServiceConstructor(ctx).listSubmissions(
WorkspaceName(workspaceNamespace, workspaceName),
ctx,
startDateOpt,
endDateOpt)
submissionsServiceConstructor(ctx).listSubmissions(WorkspaceName(workspaceNamespace, workspaceName),
ctx,
startDateOpt,
endDateOpt
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scalafmt; not sure why it complained in this PR.

}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,10 @@ class SubmissionSpec(_system: ActorSystem)
val submissionData = checkSubmissionStatus(submissionsService, newSubmissionReport.submissionId)
assert(submissionData.workflows.size == 1)

val subList = Await.result(submissionsService.listSubmissions(testData.wsName, testContext, Option.empty, Option.empty), Duration.Inf)
val subList =
Await.result(submissionsService.listSubmissions(testData.wsName, testContext, Option.empty, Option.empty),
Duration.Inf
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scalafmt; not sure why it complained in this PR.


val oneSub = subList.filter(s => s.submissionId == newSubmissionReport.submissionId)
assert(oneSub.nonEmpty)
Expand Down Expand Up @@ -1289,7 +1292,10 @@ class SubmissionSpec(_system: ActorSystem)
val submissionData = checkSubmissionStatus(submissionsService, newSubmissionReport.submissionId)
assert(submissionData.workflows.size == 1)

val subList = Await.result(submissionsService.listSubmissions(testData.wsName, testContext, Option.empty, Option.empty), Duration.Inf)
val subList =
Await.result(submissionsService.listSubmissions(testData.wsName, testContext, Option.empty, Option.empty),
Duration.Inf
)

val oneSub = subList.filter(s => s.submissionId == newSubmissionReport.submissionId)
assert(oneSub.nonEmpty)
Expand Down
Loading