Skip to content

Conversation

@tpellissier-msft
Copy link
Collaborator

This pull request updates the _get method in src/PowerPlatform/Dataverse/data/odata.py to improve how selected columns are specified when retrieving a single record. Instead of passing a comma-separated string, the method now expects a list of column names, which it joins into the required format for the $select parameter.

API usability improvements:

  • Changed the select parameter in the _get method from a comma-separated string to a list of column names, making the API easier and safer to use. (src/PowerPlatform/Dataverse/data/odata.py) [1] [2]

Copilot AI review requested due to automatic review settings November 13, 2025 17:14
@tpellissier-msft tpellissier-msft requested a review from a team as a code owner November 13, 2025 17:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves the API consistency of the _get method by changing the select parameter from a comma-separated string to a list of column names. This aligns the internal implementation with the public API expectation in DataverseClient.get(), which already accepts select as a list.

Key Changes:

  • Updated _get method signature to accept select: Optional[List[str]] instead of Optional[str]
  • Modified implementation to join the list elements with commas when constructing the $select query parameter
  • Updated docstring to reflect the new parameter type using consistent numpy-style documentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tpellissier-msft tpellissier-msft force-pushed the user/tpellissier/fix-get-single-select branch from 794d7ab to 4d5425b Compare November 14, 2025 06:04
@tpellissier-msft tpellissier-msft merged commit 1d469ed into main Nov 14, 2025
5 checks passed
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.

5 participants