Skip to content

Conversation

@john-b-rush
Copy link
Contributor

No description provided.

- Update job URLs to use proper format: /jobs/<job-id>/runs/<run-id>?o=<workspace-id>
- Add get_job_run_status() call to retrieve job_id from run_id for correct URL construction
- Update notebook URLs to include workspace ID parameter and URL encoding for spaces
- Add proper error handling with fallback to generic URLs if job status lookup fails
- Update function signatures to pass client for API calls
- Fix test assertion to match new message format ("What you can do now" vs "Choose from the following options")
@john-b-rush john-b-rush requested a review from Copilot June 8, 2025 18:47
Copy link

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 updates the messaging and behavior for the setup-stitch command, ensuring a more descriptive and guided experience for users in their Databricks workspace.

  • Updated test assertions to check for new user guidance messages.
  • Modified command handling to build and display detailed post-launch guidance messages and summary details.
  • Added functions to display post-launch options and detailed technical summaries.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
tests/unit/commands/test_setup_stitch.py Updated test assertions to check for the new, more informative messages.
chuck_data/commands/setup_stitch.py Updated message construction and added functions for user guidance and detailed summary display.
Comments suppressed due to low confidence (1)

chuck_data/commands/setup_stitch.py:496

  • Add unit tests for _display_post_launch_options and the related functions (_display_detailed_summary and _build_post_launch_guidance_message) to ensure that the output messages are formatted and behave as expected.
def _display_post_launch_options(console, launch_result, metadata, client=None):

lines.append(f"• you can ask me about the status of the job (id {run_id})")

# Get workspace URL for constructing browser links
workspace_url = get_workspace_url()
Copy link

Copilot AI Jun 8, 2025

Choose a reason for hiding this comment

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

Consider handling the case where get_workspace_url() might return None before passing it to normalize_workspace_url to prevent potential runtime errors.

Suggested change
workspace_url = get_workspace_url()
workspace_url = get_workspace_url()
if workspace_url is None:
logging.warning("Workspace URL could not be retrieved. Aborting operation.")
return

Copilot uses AI. Check for mistakes.
normalize_workspace_url,
)

lines = []
Copy link

Copilot AI Jun 8, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider separating the technical summary details from the main post-launch guidance message to improve readability and maintain a clearer separation of user information versus technical details.

Copilot uses AI. Check for mistakes.
@john-b-rush john-b-rush merged commit b031631 into main Jun 8, 2025
2 checks passed
@john-b-rush john-b-rush deleted the stitch-next-steps branch June 8, 2025 18:59
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.

2 participants