Skip to content
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

Indexer-agent: remove fallback to hardcode default file #484

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

hopeyen
Copy link
Contributor

@hopeyen hopeyen commented Sep 19, 2022

Remove ensureGlobalCostModel and reconcileCostModel from indexer agent as they clutter the agent without any real changes towards the cost models.

Now indexers should simply set global default cost model through indexer-CLI such as

graph indexer cost set model global [path]/basic.agora

@fordN
Copy link
Contributor

fordN commented Sep 26, 2022

Nice, I like the goal of this PR, but the code changes should be much simpler.

Looking at the code changes though it seems there is other work mixed in with it? It seems to be based off the https://github.com/graphprotocol/indexer/pull/483 branch?

@hopeyen hopeyen force-pushed the hope/remove-default-agora-file branch from 046a620 to bbcaf54 Compare September 27, 2022 14:11
@hopeyen hopeyen requested a review from fordN September 27, 2022 14:17
@hopeyen
Copy link
Contributor Author

hopeyen commented Sep 27, 2022

Nice, I like the goal of this PR, but the code changes should be much simpler.

Looking at the code changes though it seems there is other work mixed in with it? It seems to be based off the https://github.com/graphprotocol/indexer/pull/483 branch?

You're right! I rebased this branch to main, shouldn't depend on the other PR anymore

@hopeyen hopeyen force-pushed the hope/remove-default-agora-file branch from bbcaf54 to b435892 Compare September 27, 2022 14:28
Copy link
Contributor

@fordN fordN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!

I see some warning about unused imports (CostModelAttributes, and COST_MODEL_GLOBAL, fs), can we resolve those? Then I think it will be ready to merge.

@hopeyen hopeyen force-pushed the hope/remove-default-agora-file branch from b435892 to 245e4df Compare September 27, 2022 18:31
@hopeyen hopeyen requested a review from fordN September 27, 2022 19:04
Copy link
Contributor

@fordN fordN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@hopeyen hopeyen force-pushed the hope/remove-default-agora-file branch from 245e4df to f7df2bc Compare September 27, 2022 22:49
@hopeyen hopeyen merged commit 6519b80 into main Sep 28, 2022
@hopeyen hopeyen deleted the hope/remove-default-agora-file branch September 28, 2022 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

None yet

2 participants