Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

artifacts: Bring back name_is_compatible. #9972

Merged
merged 2 commits into from
Sep 26, 2023
Merged

artifacts: Bring back name_is_compatible. #9972

merged 2 commits into from
Sep 26, 2023

Conversation

daavoo
Copy link
Contributor

@daavoo daavoo commented Sep 25, 2023

Unfortunately, DVCLive was importing this function so I am bringing back the name for backwards compatibility.

See iterative/dvclive#715

@daavoo daavoo added the A: artifacts Related to `artifacts` section in `dvc.yaml` label Sep 25, 2023
@daavoo daavoo self-assigned this Sep 25, 2023
@daavoo daavoo requested review from dberenbaum and a team September 25, 2023 18:36
@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Files Coverage Δ
dvc/repo/artifacts.py 52.51% <12.50%> (-1.88%) ⬇️

... and 2 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@dberenbaum dberenbaum added the release-blocker Blocks a release label Sep 25, 2023
@@ -38,6 +38,17 @@ def check_name_format(name: str) -> None:
) from exc


def name_is_compatible(name: str) -> bool:
from gto.constants import assert_name_is_valid
Copy link
Contributor

@efiop efiop Sep 25, 2023

Choose a reason for hiding this comment

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

Was it only importing it or using also? If the former then a noop stub should do. But either way need a comment here with a link so we know this is only kept because of dvclive and can drop it later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was it only importing it or using also?

Actually using

Unfortunately, DVCLive was importing this function so I am bringing back the name for backwards compatibility.
@efiop efiop force-pushed the name-is-compatible branch from b6065ce to 71cb7a6 Compare September 26, 2023 11:31
@efiop efiop merged commit 2aa2bef into main Sep 26, 2023
@efiop efiop deleted the name-is-compatible branch September 26, 2023 11:32
@efiop efiop added the bugfix fixes bug label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: artifacts Related to `artifacts` section in `dvc.yaml` bugfix fixes bug release-blocker Blocks a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants