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
2 changes: 1 addition & 1 deletion .github/workflows/tests-studio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
- name: Run tests
# Generate `.test_durations` file with `pytest --store-durations --durations-path ../.github/.test_durations ...`
run: >
DATACHAIN_METASTORE_ARG_PROJECT=john
DATACHAIN_METASTORE_ARG_USERNAME=john
PYTHONPATH="$(pwd)/..:${PYTHONPATH}"
pytest
--config-file=pyproject.toml -rs
Expand Down
2 changes: 1 addition & 1 deletion src/datachain/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
LISTING_PREFIX = "lst__"

DEFAULT_DATASET_VERSION = "1.0.0"
DATASET_NAME_RESERVED_CHARS = ["."]
DATASET_NAME_RESERVED_CHARS = [".", "@"]
DATASET_NAME_REPLACEMENT_CHAR = "_"


Expand Down
2 changes: 1 addition & 1 deletion src/datachain/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from datachain.error import InvalidNamespaceNameError

N = TypeVar("N", bound="Namespace")
NAMESPACE_NAME_RESERVED_CHARS = ["."]
NAMESPACE_NAME_RESERVED_CHARS = [".", "@"]
Copy link
Contributor

Choose a reason for hiding this comment

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

just to make sure - are those replaced / escaped automatically if username contains them? do we check it when we create the default namespace from the username?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are replaced automatically for default namespace and validated when creating random namespace (error is thrown if name contains some of those)



@dataclass(frozen=True)
Expand Down
2 changes: 1 addition & 1 deletion src/datachain/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from datachain.namespace import Namespace

P = TypeVar("P", bound="Project")
PROJECT_NAME_RESERVED_CHARS = ["."]
PROJECT_NAME_RESERVED_CHARS = [".", "@"]


@dataclass(frozen=True)
Expand Down
Loading