Skip to content

Commit

Permalink
implement file fetcher for stored_response (#43)
Browse files Browse the repository at this point in the history
* implement file fetcher for stored_response

* add branch msp to validate flow
  • Loading branch information
shunj-nb authored Jul 7, 2023
1 parent 7020f09 commit 9fceb85
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Validate Merge

on:
pull_request:
branches: [master]
branches: [master, msp]

jobs:
validate-merge:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Validate

on:
push:
branches: [master]
branches: [master, msp]
pull_request:
branches: [master]
branches: [master, msp]

jobs:
validate:
Expand Down
4 changes: 3 additions & 1 deletion stored_requests/backends/file_fetcher/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ func (fetcher *eagerFetcher) FetchRequests(ctx context.Context, requestIDs []str
}

func (fetcher *eagerFetcher) FetchResponses(ctx context.Context, ids []string) (data map[string]json.RawMessage, errs []error) {
return nil, nil
storedResponse := fetcher.FileSystem.Directories["stored_responses"].Files
errs = appendErrors("Response", ids, storedResponse, errs)
return storedResponse, errs
}

// FetchAccount fetches the host account configuration for a publisher
Expand Down

0 comments on commit 9fceb85

Please sign in to comment.