Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ more information.
https://marketplace.visualstudio.com/items?itemName=ms-python.python
[studio.token]:
https://dvc.org/doc/user-guide/project-structure/configuration#studio
[dvc studio]: https://studio.dvc.ai
[studio]: https://studio.dvc.ai
[dvc studio]: https://studio.datachain.ai
[studio]: https://studio.datachain.ai
[workspace level]:
https://code.visualstudio.com/docs/getstarted/settings#_workspace-settings
[python.envFile]:
Expand Down
2 changes: 1 addition & 1 deletion extension/resources/walkthrough/more-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
[blog]: https://dvc.org/blog
[community]: https://dvc.org/community
[dvc github repository]: https://github.com/iterative/dvc
[dvc studio]: https://studio.dvc.ai/
[dvc studio]: https://studio.datachain.ai/
2 changes: 1 addition & 1 deletion extension/src/experiments/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const promptToAddStudioToken = async () => {
}

const convertUrlTextToLink = (stdout: string) => {
const experimentAtRegex = /\sat\s+(https:\/\/studio\.dvc\.ai\/.*$)/
Copy link
Contributor Author

Choose a reason for hiding this comment

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

🥶🦉

const experimentAtRegex = /\sat\s+(https:\/\/studio\.datachain\.ai\/.*$)/
const match = stdout.match(experimentAtRegex)
if (!(match?.[0] && match?.[1])) {
return stdout
Expand Down
2 changes: 1 addition & 1 deletion extension/src/setup/webview/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ export const DEFAULT_SECTION_COLLAPSED = {

export type SectionCollapsed = typeof DEFAULT_SECTION_COLLAPSED

export const DEFAULT_STUDIO_URL = 'https://studio.dvc.ai'
export const DEFAULT_STUDIO_URL = 'https://studio.datachain.ai'
6 changes: 3 additions & 3 deletions extension/src/test/suite/experiments/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ suite('Experiments Test Suite', () => {
mockExpPush.callsFake(() => {
resolve(undefined)
return Promise.resolve(
"Experiment major-lamb is up to date on Git remote 'origin'.\nView your experiments at \nhttps://studio.dvc.ai/user/mattseddon/projects/vscode-dvc-demo-ynm6t3jxdx"
"Experiment major-lamb is up to date on Git remote 'origin'.\nView your experiments at \nhttps://studio.datachain.ai/user/mattseddon/projects/vscode-dvc-demo-ynm6t3jxdx"
)
})
)
Expand Down Expand Up @@ -805,7 +805,7 @@ suite('Experiments Test Suite', () => {
expect(mockReport).to.be.calledWithExactly({
increment: 75,
message:
"Experiment major-lamb is up to date on Git remote 'origin'.\nView your experiments in [DVC Studio](https://studio.dvc.ai/user/mattseddon/projects/vscode-dvc-demo-ynm6t3jxdx)"
"Experiment major-lamb is up to date on Git remote 'origin'.\nView your experiments in [DVC Studio](https://studio.datachain.ai/user/mattseddon/projects/vscode-dvc-demo-ynm6t3jxdx)"
})

messageSpy.restore()
Expand Down Expand Up @@ -851,7 +851,7 @@ suite('Experiments Test Suite', () => {

await writeToClipboardCalled
const link =
'https://studio.dvc.ai/user/olivaw/projects/vscode-dvc-demo-ynm6t3jxdx' +
'https://studio.datachain.ai/user/olivaw/projects/vscode-dvc-demo-ynm6t3jxdx' +
'?showOnlySelected=1' +
'&experimentReferences=4fb124aebddb2adf1545030907687fa9a4c80e70'

Expand Down
2 changes: 1 addition & 1 deletion extension/src/test/suite/experiments/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const DEFAULT_EXPERIMENTS_OUTPUT = {
}

export const mockBaseStudioUrl =
'https://studio.dvc.ai/user/olivaw/projects/vscode-dvc-demo-ynm6t3jxdx'
'https://studio.datachain.ai/user/olivaw/projects/vscode-dvc-demo-ynm6t3jxdx'

export const buildExperiments = ({
availableNbCommits = { main: 5 },
Expand Down
12 changes: 6 additions & 6 deletions extension/src/test/suite/setup/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -885,9 +885,9 @@ suite('Setup Test Suite', () => {
const mockUriHandlerDispose = stub()
const mockStudioRes = {
device_code: 'Yi-NPd9ggvNUDBcam5bP8iivbtLhnqVgM_lSSbilqNw',
token_uri: 'https://studio.dvc.ai/api/device-login/token',
token_uri: 'https://studio.datachain.ai/api/device-login/token',
user_code: '40DWMKNA',
verification_uri: 'https://studio.dvc.ai/auth/device-login'
verification_uri: 'https://studio.datachain.ai/auth/device-login'
}
const mockCallbackUrl = 'url-to-vscode'

Expand Down Expand Up @@ -1013,9 +1013,9 @@ suite('Setup Test Suite', () => {
json: () =>
Promise.resolve({
device_code: 'Yi-NPd9ggvNUDBcam5bP8iivbtLhnqVgM_lSSbilqNw',
token_uri: 'https://studio.dvc.ai/api/device-login/token',
token_uri: 'https://studio.datachain.ai/api/device-login/token',
user_code: '40DWMKNA',
verification_uri: 'https://studio.dvc.ai/auth/device-login'
verification_uri: 'https://studio.datachain.ai/auth/device-login'
})
} as Fetch.Response)
const openUrlEvent = new Promise(resolve =>
Expand Down Expand Up @@ -1071,9 +1071,9 @@ suite('Setup Test Suite', () => {
json: () =>
Promise.resolve({
device_code: 'Yi-NPd9ggvNUDBcam5bP8iivbtLhnqVgM_lSSbilqNw',
token_uri: 'https://studio.dvc.ai/api/device-login/token',
token_uri: 'https://studio.datachain.ai/api/device-login/token',
user_code: '40DWMKNA',
verification_uri: 'https://studio.dvc.ai/auth/device-login'
verification_uri: 'https://studio.datachain.ai/auth/device-login'
})
} as Fetch.Response)

Expand Down
Loading