You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add filter and select parameters to client.tables.list() (#112)
* Add optional filter parameter to client.tables.list()
Allow callers to pass an OData $filter expression to narrow the list of
returned tables. The user-supplied filter is combined with the existing
IsPrivate eq false guard using 'and', so private tables remain excluded.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Add optional select parameter to client.tables.list()
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Add tables.list(filter, select) usage to examples
Exercise the new filter and select params in functional_testing.py
and installation_example.py to improve E2E coverage.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix installation_example validation: update expected methods for current API
- Remove query.get (moved to records.get)
- Add records.upsert, all relationship methods, files.upload
- Guard FileOperations import for branches without files namespace
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Revert "Fix installation_example validation: update expected methods for current API"
This reverts commit 73083b7.
* Fix Copilot review: wrap user filter in parens to prevent OData or-precedence bypass, update test docstring
- Wrap user-provided filter in parentheses when combining with IsPrivate guard
to prevent `or` operator from bypassing the privacy check
- Update TestListTables class docstring to mention both filter and select params
- Update test assertions to match new parenthesized filter format
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Address Copilot review: add files namespace to README concept table
Update DataverseClient and Namespaces descriptions to include the
`files` namespace alongside records, query, and tables.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Revert "Address Copilot review: add files namespace to README concept table"
This reverts commit 1375402.
* Fix Copilot review round 2: update docstring example to match parens, add assert_called_once to tests
- Update _list_tables docstring example to show parenthesized filter format
- Add assert_called_once() to 5 test methods that read call_args without
first verifying the mock was called exactly once
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix Copilot review round 3: reject bare str for select param, update docstrings
- Add TypeError guard rejecting bare str passed to select parameter
(prevents character-joined $select like "L,o,g,i,c,a,l,N,a,m,e")
- Update docstrings in _odata.py and tables.py to document that select=[]
is equivalent to None (all properties returned)
- Add test_select_bare_string_raises_type_error unit test
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Simplify TypeError message for bare string select param
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix test assertion to match updated TypeError message
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: tpellissier <tpellissier@microsoft.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments