Conversation
- Unify _cached_token_auth and _cached_pwd_auth into single _cached_auth with JWT > apiToken > Basic fallback, so GSQL endpoints use apiToken when available instead of always falling back to Basic auth - Add `wait` param to installQueries (sync default=True, async default=False) to control blocking/polling behavior - Track token origin (_token_source) to auto-refresh on 401 for tokens generated by getToken(), while raising errors for user-provided tokens
…nager - installQueries polling: use ret.get() to avoid KeyError, increase sleep to 10s, add 1-hour timeout with TigerGraphException - 401 auto-refresh: add _refreshing_token guard to prevent infinite recursion when getToken() itself triggers a 401 - useGlobal context manager: re-capture graphname at __enter__ time so deferred use restores correctly
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
- Add params argument to _put (sync and async) to match _get/_post/_delete - runSchemaChangeJob now passes query params via _put(params=...) instead of manual query string construction
PR Type
Enhancement, Bug fix, Tests, Documentation
Description
Add schema change job APIs
createGraph supports vertex/edge types
Fix auth init and tgCloud handling
Normalize boolean params; improve installQueries
Diagram Walkthrough
File Walkthrough
3 files
Add comprehensive tests for 2.0.2 changesValidate query param encoding and typingTest auth header caching and 401 refresh11 files
Add schema job APIs and createGraph typesSchema job APIs; createGraph supports typesStringify vertex_must_exist and doc updatesConvert vertex_must_exist to lowercase stringTrack token origin for auto-refreshStringify rebuildGraph force parameterCore sync helpers for new endpointsCore async helpers for new endpointsAdd installQueries wait and pollingAsync installQueries wait and pollingWrap GSQL results and parse graph list1 files
Fix auth init order; add scope helpers3 files
Clarify timeout argument documentationUpdate timeout parameter docstringsDocument auth, schema, and query updates1 files
Bump version and export updates1 files
Add conda build integration8 files