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
Fix W-21968404: Make authentication_type optional in update_connections
This change addresses a usability issue where users were confused by the
update_connections method name and were using it for general connection
updates without realizing it required an authentication_type parameter.
Changes:
- Made authentication_type parameter optional in both datasource and workbook
update_connections methods
- Updated request_factory to only set authenticationType in XML when provided
- Enhanced docstrings to clarify that authentication_type is optional and
existing auth types are preserved when not specified
- Updated sample script to demonstrate optional parameter usage
- Added comprehensive tests for both datasources and workbooks when
authentication_type is not provided
Benefits:
- Backward compatible: existing code continues to work
- More flexible: users can now update credentials without changing auth type
- Clearer intent: function can be used for both auth type changes and
general credential updates
- Better UX: eliminates confusion about the function's purpose
The function safely iterates through each connection LUID independently,
so there's no risk of cross-contamination when auth type is omitted.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
0 commit comments