Skip to content

Commit

Permalink
update code snippet
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Oct 18, 2023
1 parent c79b2fa commit 2bc8570
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ export const ExecutionNodeURL: React.FC<{
const url = `flyte://v1/${project}/${domain}/${executionName}/${nodeId}/${suffix}`;
const code = `from flytekit.remote.remote import FlyteRemote

Check warning on line 17 in packages/console/src/components/Executions/ExecutionDetails/ExecutionNodeURL.tsx

View check run for this annotation

Codecov / codecov/patch

packages/console/src/components/Executions/ExecutionDetails/ExecutionNodeURL.tsx#L12-L17

Added lines #L12 - L17 were not covered by tests
from flytekit.configuration import Config
rr = FlyteRemote(
Config.auto(),
remote = FlyteRemote(
Config.for_endpoint(endpoint="localhost:30080"),
default_project="${project}",
default_domain="${domain}",
default_domain="${domain}"
)
rr.get("${url}")`;
remote.get("${url}")`;
const handleClick = event => {
if (event.shiftKey) {
navigator.clipboard.writeText(code);
Expand Down

0 comments on commit 2bc8570

Please sign in to comment.