Skip to content

Commit

Permalink
fix(tasks): add deal id string to finalized task (#284)
Browse files Browse the repository at this point in the history
Add a deal id as string to finalized task, since we can't otherwise fetch with graphql. Also removes
unneeded docker env var and minor fix to make sure controller test & state test do not conflict.
  • Loading branch information
hannahhoward authored Jul 9, 2021
1 parent e710716 commit b6bdda1
Showing 7 changed files with 164 additions and 8 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -26,5 +26,4 @@ ENV DEALBOT_LOG_JSON=true
ENV DEALBOT_WORKERS=10
ENV STAGE_TIMEOUT=DefaultStorage=48h,DefaultRetrieval=48h
ENV DEALBOT_MIN_FIL=-1
ENV DEALBOT_DAEMON_DRIVER=kubernetes
ENTRYPOINT ["/dealbot"]
22 changes: 22 additions & 0 deletions controller/graphql/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion controller/http_test.go
Original file line number Diff line number Diff line change
@@ -373,7 +373,7 @@ type harness struct {
serveErr chan error
}

const defaultPGPort = 5434
const defaultPGPort = 5435

func newHarness(ctx context.Context, t *testing.T, connector state.DBConnector, migrator state.Migrator) *harness {
h := &harness{ctx: ctx}
1 change: 1 addition & 0 deletions tasks/gen.go
Original file line number Diff line number Diff line change
@@ -143,6 +143,7 @@ func main() {
schema.SpawnStructField("Size", "Int", true, true),
schema.SpawnStructField("PayloadCID", "String", true, true),
schema.SpawnStructField("ProposalCID", "String", true, true),
schema.SpawnStructField("DealIDString", "String", true, true),
}, schema.SpawnStructRepresentationMap(map[string]string{})))
ts.Accumulate(schema.SpawnList("FinishedTasks", "FinishedTask", false))
ts.Accumulate(schema.SpawnLinkReference("Link_FinishedTask", "FinishedTask"))
138 changes: 132 additions & 6 deletions tasks/ipldsch_satisfaction.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tasks/ipldsch_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b6bdda1

Please sign in to comment.