Closed calufa closed 3 years ago
✔️ Deploy Preview for vlab-research canceled.
🔨 Explore the source changes: 19a89996a7f2bab1c68b90aa8c9fc8d4a65816bd
🔍 Inspect the deploy log: https://app.netlify.com/sites/vlab-research/deploys/616e4aa290fb690008172a7c
Looks great!
The only thing about the cache, thinking about it: most likely you will actually want a different ReloadlyService for each authorization (right now the service stores the token it recieves from authorizing in a mutable field in the struct)
Yep, makes sense.
RE: https://github.com/vlab-research/fly/pull/28#discussion_r722846012
TestDinersClubErrorsWhenProviderNotListed
it is almost an exact copy of TestDinersClubErrorsOnNonExistentProvider
, https://github.com/vlab-research/fly/blob/main/dinersclub/dinersclub_test.go#L103-L128. In TestDinersClubErrorsOnNonExistentProvider
, the code seems to indicate that the error is reported to BotParty, and not reported upstream, hence, https://github.com/vlab-research/fly/blob/main/dinersclub/dinersclub_test.go#L127.
The test mainly seems to be checking for BotParty payload, more than anything else.
Ah right, there is an error reported. Makes sense, sorry!
TODO:
go mod tidy
todinersclub
andformcentral
Auth()
method toprovider
interfaceAuth()
ReloadlyConfig
env vars