feat(job): print dashboard preview link#596
Conversation
Co-Authored-By: RapidPoseidon <poseidon@rapidata.ai>
Code ReviewOverviewThis PR adds a dashboard URL preview link printed to the terminal after creating a job definition. The implementation is clean and minimal - two small functions in What works well
Issues / Suggestions1. Module docstring is now stale The module-level docstring at the top of
Now that the module also handles plain URL link printing for job definitions, this should be updated to reflect the broader scope. 2. No error handling - inconsistent with the module's stated contract The module docstring explicitly promises best-effort semantics:
3. Print message wording inconsistency The fallback in 4. Ordering: QR code then link In 5. Pyright could not be validated The PR notes pyright could not run due to missing deps in the container. The key type to verify is SummarySmall, clean addition. The main gap is the missing |
LinoGiger
left a comment
There was a problem hiding this comment.
What about the order?
Co-Authored-By: RapidPoseidon <poseidon@rapidata.ai>
Code Review — feat(job): print dashboard preview linkOverviewThis PR adds a text dashboard URL after job definition and order creation, complementing the existing phone-oriented QR code preview. The change is small, focused, and well-scoped. What's Good
Issues / Suggestions1. Both builder helpers are reachable from outside the module ( # Before
def build_job_definition_preview_url(environment: str, job_definition_id: str) -> str:
# After
def _build_job_definition_preview_url(environment: str, job_definition_id: str) -> str:The existing 2. Duplicate message text Both new print functions use the identical string _DASHBOARD_PREVIEW_MSG = "Preview in dashboard: {url}"Minor point — not a blocker. 3. No test coverage No tests exist for any of the 4. The job-definition path is SummaryThe implementation is clean and correct. The two items worth acting on before merge are:
Everything else is minor style/future-proofing. Good PR overall. |
Summary
Validation
git diff --checkPATH="/home/agent/.local/share/mise/installs/node/20.20.2/bin:$PATH" pyright src/rapidata/rapidata_client(fails: dependencies are not installed in this container, causing repo-wide missing-import errors for pydantic, pandas, opentelemetry, etc.)🔗 Session: session-56ddff8d