Skip to content

Commit

Permalink
[IBCDPE-848] Query for id only (#39)
Browse files Browse the repository at this point in the history
Query for `id` only when getting submissions
  • Loading branch information
jaymedina authored Mar 20, 2024
1 parent 63575a2 commit 959e33b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/orca/services/synapse/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def get_submissions_with_status(

# Get all submissions for the given ``submission_view``
query_results = self.client.tableQuery(
f"select * from {submission_view} where status = '{submission_status}'"
f"select id from {submission_view} where status = '{submission_status}'"
)

submission_ids = query_results.asDataFrame()["id"].tolist()
Expand Down
2 changes: 1 addition & 1 deletion tests/services/synapse/test_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_get_submissions_with_status(

# Assertions
syn_mock.tableQuery.assert_called_once_with(
f"select * from {submission_view} where status = '{submission_status}'"
f"select id from {submission_view} where status = '{submission_status}'"
)
table_mock.asDataFrame.assert_called()
assert result == input_dict["id"]
Expand Down

0 comments on commit 959e33b

Please sign in to comment.