Add filter for paused contracts in subgraph queries#1753
Open
trizin wants to merge 18 commits intorename-ocean-token-to-prediction-tokenfrom
Conversation
Contributor
Author
|
Blocked by #1751 |
…ub.com/oceanprotocol/pdr-backend into issue1752-update-subgraph-functions-and-calls-to-filter-out-paused-prediction-contracts
…ng paused contracts
…h include_paused parameter
…and removing redundant code
…meters and return type
| NATIVE_TOKEN = True | ||
|
|
||
|
|
||
| class _INCLUDE_PAUSED: |
Member
There was a problem hiding this comment.
I suggest renaming this to '_INCLUDE_PAUSED_FALSE'
Member
There was a problem hiding this comment.
Easier to read, but not a mandatory change
Contributor
Author
There was a problem hiding this comment.
But why would we add "false" to the end? I don't get it
KatunaNorbert
approved these changes
Nov 11, 2025
trentmc
approved these changes
Nov 11, 2025
Member
trentmc
left a comment
There was a problem hiding this comment.
I only did a cursory review. Good to see that you have unit tests:)
trentmc
approved these changes
Dec 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a consistent filtering of "paused" contracts across all subgraph queries, ensuring that by default only active contracts are included in analytics, payouts, and reporting. Additionally, it adds a new CLI option to allow users to include paused contracts when claiming payouts, and updates the payout logic and tests to support this feature.