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

chore: remove references to cursor based pagination in rpc documentation #8086

Merged
merged 3 commits into from
Apr 5, 2023

Conversation

jeremyletang
Copy link
Member

close #7989

@jeremyletang jeremyletang requested review from candida-d and a team as code owners April 5, 2023 08:40
@@ -1018,7 +1018,7 @@ func tradesToProto(trades []entities.Trade) []*vega.Trade {
return protoTrades
}

// ListTrades lists trades by using a cursor based pagination model.
// ListTrades lists trades by.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// ListTrades lists trades by.
// ListTrades lists trades.

This is a pretty useless description now though. How about "List all trades" and if there are filters, mentioning that they can be filtered?

@@ -1137,7 +1137,7 @@ func (t *TradingDataServiceV2) ListMarkets(ctx context.Context, req *v2.ListMark
}, nil
}

// List all Positions using a cursor based pagination model.
// List all Positions.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// List all Positions.
// List all positions.

@@ -1103,7 +1103,7 @@ func (t *TradingDataServiceV2) GetMarket(ctx context.Context, req *v2.GetMarketR
}, nil
}

// ListMarkets lists all markets using a cursor based pagination model.
// ListMarkets lists all markets.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// ListMarkets lists all markets.
// List all markets.

@@ -1171,7 +1171,7 @@ func (t *TradingDataServiceV2) ListPositions(ctx context.Context, req *v2.ListPo
}, nil
}

// ListAllPositions lists all positions using a cursor based pagination model.
// ListAllPositions lists all positions.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// ListAllPositions lists all positions.
// Lists all positions.

@@ -1335,7 +1335,7 @@ func (t *TradingDataServiceV2) GetParty(ctx context.Context, req *v2.GetPartyReq
}, nil
}

// ListParties lists Parties using a cursor based pagination model.
// ListParties lists Parties.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// ListParties lists Parties.
// List parties.

@@ -1364,7 +1364,7 @@ func (t *TradingDataServiceV2) ListParties(ctx context.Context, req *v2.ListPart
}, nil
}

// ListMarginLevels lists MarginLevels using a cursor based pagination model.
// ListMarginLevels lists MarginLevels.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// ListMarginLevels lists MarginLevels.
// Lists margin levels.

for a given market, for all markets?

@@ -1417,7 +1417,7 @@ func (t *TradingDataServiceV2) ObserveMarginLevels(req *v2.ObserveMarginLevelsRe
})
}

// ListRewards lists Rewards using a cursor based pagination model.
// ListRewards lists Rewards.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// ListRewards lists Rewards.
// List rewards.

received? funded?

@@ -1962,7 +1962,7 @@ func (t *TradingDataServiceV2) getVotesByProposal(ctx context.Context, proposalI
return
}

// ListVotes gets all Votes using a cursor based pagination model.
// ListVotes gets all Votes.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// ListVotes gets all Votes.
// Lists all votes.

datanode/gateway/graphql/schema.graphql Outdated Show resolved Hide resolved
protos/sources/data-node/api/v2/trading_data.proto Outdated Show resolved Hide resolved
jeremyletang and others added 3 commits April 5, 2023 13:24
Signed-off-by: Jeremy Letang <me@jeremyletang.com>
Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
Signed-off-by: Jeremy Letang <me@jeremyletang.com>
@jeremyletang jeremyletang merged commit a8a27c2 into develop Apr 5, 2023
16 checks passed
@jeremyletang jeremyletang deleted the fix/7989 branch April 5, 2023 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove talk of cursor based pagination model
2 participants