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
{{ message }}
Repository navigation
Commit bebcef0
Browse filesBrowse the repository at this point in the historyBrowse files
fix: consolidate region validation into centralized entry points
Move validate_region() into Session._initialize(), BaseInteractiveApp.__init__(), and DetailProfilerApp.__init__() so that region is validated automatically at object creation time, reducing the chance of future developers forgetting to add per-site checks.
Remove 7 redundant per-site validate_region() calls where region already comes from a validated Session:
- session_helper.py sts_regional_endpoint()
- spark/processing.py
- jumpstart/utils.py
- telemetry_logging.py
- serve/telemetry_logger.py
- tensorboard.py
- detail_profiler_app.py method-level call
Retain 8 per-site calls where region bypasses Session (direct function params or ARN parsing): common_utils.py (2), image_retriever.py (4), image_retriever_utils.py (1), image_uris.py (2), metrics_visualizer.py (2).
0 commit comments