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

Dataset.publication_owner can return unexpected value #93

Open
hagenw opened this issue May 15, 2024 · 1 comment
Open

Dataset.publication_owner can return unexpected value #93

hagenw opened this issue May 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@hagenw
Copy link
Member

hagenw commented May 15, 2024

For most datasets I have tested audbcards.Dataset.publication_owner it works as expected.

But for crema-d it behaves strange:

>>> import audbackend
>>> audbackend.__version__
'2.0.1'
>>> backend = audbackend.backend.Artifactory('https://audeering.jfrog.io/artifactory', 'data-public')
>>> maven = audbackend.interface.Maven(backend)
>>> # Expected owner
>>> with backend:
...     print(maven.owner("/crema-d/db.yaml", "1.3.0"))
audeering
>>> import audeer
>>> cache_root = audeer.path("cache")
>>> audeer.rmdir(cache_root)
>>> _ = audeer.mkdir(cache_root)
>>> import audbcards
>>> audbcards.__version__
'0.2.0'
>>> ds = audbcards.Dataset("crema-d", "1.3.0", cache_root=cache_root)
>>> ds.publication_owner
'_system_'

Even though the code executed by audbcards.Dataset.publication_owner is identical to what I did above using audbackend:

@functools.cached_property
def publication_owner(self) -> str:
r"""User who uploaded dataset to repository."""
with self.backend.backend:
path = self.backend.join("/", self.name, "db.yaml")
return self.backend.owner(path, self.version)

/cc @ChristianGeng

@hagenw
Copy link
Member Author

hagenw commented May 15, 2024

The issue exists only for our public repository, not for our internal repositories.

@hagenw hagenw added the bug Something isn't working label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant