Skip to content

Niole.dom 75352.disable in memory jobs#18

Merged
niole merged 9 commits intodominodatalab:mainfrom
niole:niole.DOM-75352.disable_in_memory_jobs
Mar 24, 2026
Merged

Niole.dom 75352.disable in memory jobs#18
niole merged 9 commits intodominodatalab:mainfrom
niole:niole.DOM-75352.disable_in_memory_jobs

Conversation

@niole
Copy link
Copy Markdown
Collaborator

@niole niole commented Mar 20, 2026

JIRA https://dominodatalab.atlassian.net/browse/DOM-75352

This pr disables the ability for the user ot choose to run local jobs, but doesn't change the backend code
This also adds a helper for rendering links so that they point to the domino api host if the app runs in dev mode. this makes clicking on links to jobs actually work in dev

Screenshot 2026-03-20 at 10 01 52 AM

@niole niole requested a review from a team March 20, 2026 17:02
}
/>
<Select
<Input
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Disabled the input for selecting the execution target

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good. The Select→disabled Input swap is clean. One note: the hardcoded value="Domino Job" is a display string if the backend expects "domino_job" and something reads this input's value, it'll mismatch. But since the input is disabled and not bound to state, this is fine as purely cosmetic.

* use that host for all links.
* - Otherwise, derive the tenant host from window.location by stripping an apps. prefix.
*/
export function toDominoTenantUrl(rawUrl?: string): string | null {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Refactored this to domino tenant url function to also use domino_api_host if provided, while in dev mode. This makes testing the UI easier in dev mode

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The VITE_DEV_DOMINO_API_HOST approach for dev mode is sensible. One thing: the env var name in vite.config.ts is VITE_DEV_DOMINO_API_HOST but in vite-env.d.ts the type declaration is for VITE_DOMINO_API_HOST

@niole niole requested a review from ddl-subir-m March 20, 2026 20:53
@niole niole requested a review from ddl-subir-m March 23, 2026 22:12
@niole niole merged commit 57e4574 into dominodatalab:main Mar 24, 2026
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