Skip to content

Commit

Permalink
rename iterative.ai to dvc.ai in Studio domain (#5626)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Seddon <[email protected]>
  • Loading branch information
shcheklein and mattseddon authored Jul 16, 2024
1 parent d467a51 commit 7f8a288
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Management]. For deeper learning, try our [free course]! [More resources].

[experiments]: https://dvc.org/doc/start/experiments
[data management]: https://dvc.org/doc/start/data-management
[free course]: https://learn.iterative.ai/
[free course]: https://learn.dvc.ai/
[more resources]:
https://github.com/iterative/vscode-dvc/blob/main/extension/resources/walkthrough/more-resources.md

Expand Down 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.iterative.ai
[studio]: https://studio.iterative.ai
[dvc studio]: https://studio.dvc.ai
[studio]: https://studio.dvc.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.iterative.ai/
[dvc studio]: https://studio.dvc.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\.iterative\.ai\/.*$)/
const experimentAtRegex = /\sat\s+(https:\/\/studio\.dvc\.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.iterative.ai'
export const DEFAULT_STUDIO_URL = 'https://studio.dvc.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.iterative.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.dvc.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.iterative.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.dvc.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.iterative.ai/user/olivaw/projects/vscode-dvc-demo-ynm6t3jxdx' +
'https://studio.dvc.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.iterative.ai/user/olivaw/projects/vscode-dvc-demo-ynm6t3jxdx'
'https://studio.dvc.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.iterative.ai/api/device-login/token',
token_uri: 'https://studio.dvc.ai/api/device-login/token',
user_code: '40DWMKNA',
verification_uri: 'https://studio.iterative.ai/auth/device-login'
verification_uri: 'https://studio.dvc.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.iterative.ai/api/device-login/token',
token_uri: 'https://studio.dvc.ai/api/device-login/token',
user_code: '40DWMKNA',
verification_uri: 'https://studio.iterative.ai/auth/device-login'
verification_uri: 'https://studio.dvc.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.iterative.ai/api/device-login/token',
token_uri: 'https://studio.dvc.ai/api/device-login/token',
user_code: '40DWMKNA',
verification_uri: 'https://studio.iterative.ai/auth/device-login'
verification_uri: 'https://studio.dvc.ai/auth/device-login'
})
} as Fetch.Response)

Expand Down

0 comments on commit 7f8a288

Please sign in to comment.