Skip to content

Commit

Permalink
Add needed data repo helpers, ignore .idea dir
Browse files Browse the repository at this point in the history
  • Loading branch information
aherbst-broad committed May 18, 2021
1 parent ebdeb98 commit 5eb82bf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ poetry.lock
dist
stubs
.DS_Store
.idea
6 changes: 6 additions & 0 deletions dagster_utils/resources/jade_data_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ def retrieve_job_result(self, job_id: str) -> dict[str, int]:
"failedFiles": 0
}

def apply_dataset_data_deletion(self, id: str, data_deletion_request: dict[str, object]) -> FakeJobResponse:
return NoopDataRepoClient.FakeJobResponse(True, "abcdef", "succeeded")

def ingest_dataset(self, id: str, ingest: dict[str, object]) -> FakeJobResponse:
return NoopDataRepoClient.FakeJobResponse(True, "abcdef", "succeeded")


@resource
def noop_data_repo_client(init_context: InitResourceContext) -> NoopDataRepoClient:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "broad_dagster_utils"
license = "BSD-3-Clause"
readme = "README.md"
repository = "https://github.com/broadinstitute/dagster-utils"
version = "0.3.1"
version = "0.3.2"

description = "Common utilities and objects for building Dagster pipelines"
authors = ["Steve Pletcher <spletche@broadinstitute.org>"]
Expand Down

0 comments on commit 5eb82bf

Please sign in to comment.