-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DPA-1151]: fix: handle duplicate chain id across network better for ethkeys, ethTransactions & chains query. #14791
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"chainlink": minor | ||
--- | ||
|
||
#updated | ||
update ethkeys, ethtransactions to handle duplicate chain id in different network | ||
introduce network arg input to Chain graphql query to allow better lookup based on network and chain id |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ type Dataloader struct { | |
app chainlink.Application | ||
|
||
ChainsByIDLoader *dataloader.Loader | ||
ChainsByRelayIDLoader *dataloader.Loader | ||
EthTxAttemptsByEthTxIDLoader *dataloader.Loader | ||
FeedsManagersByIDLoader *dataloader.Loader | ||
FeedsManagerChainConfigsByManagerIDLoader *dataloader.Loader | ||
|
@@ -45,6 +46,7 @@ func New(app chainlink.Application) *Dataloader { | |
app: app, | ||
|
||
ChainsByIDLoader: dataloader.NewBatchedLoader(chains.loadByIDs), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a ticket to clean out the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not yet, there is still code using it for backwards compatibility as it is exposed via API, and to be honest i dont know enough about how this repo works and removing this is a breaking change for the API, like we would have to communicate to consumers to not use this or monitor the usage of it. |
||
ChainsByRelayIDLoader: dataloader.NewBatchedLoader(chains.loadByRelayIDs), | ||
EthTxAttemptsByEthTxIDLoader: dataloader.NewBatchedLoader(attmpts.loadByEthTransactionIDs), | ||
FeedsManagersByIDLoader: dataloader.NewBatchedLoader(mgrs.loadByIDs), | ||
FeedsManagerChainConfigsByManagerIDLoader: dataloader.NewBatchedLoader(ccfgs.loadByManagerIDs), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does
thunk
mean as a var?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great question, in this context, thunk is just promise, but mainly i was following the rest of the data loaders, they seem to call the value returned by
load
thunk