Skip to content

cli: renku dataset tag dataset-name dataset- [...] #3463

Description

@bethcg

Describe the bug

I was working with tags for datasets, and wanted to overwrite an already existing tag (the goal was to change the tag's description by using the following command:
renku dataset tag dataset-name dataset-tag -f -d 'This is a short description'

Details

The automatically created bug report is as follows:

Renku version: 2.4.1rc1
OS: Darwin (Darwin Kernel Version 22.1.0: Sun Oct 9 20:19:12 PDT 2022; root:xnu-8792.41.9~3/RELEASE_ARM64_T6020)
Python: 3.9.6

Traceback

Traceback (most recent call last):
  File "[...]/renku/command/command_builder/database.py", line 110, in _post_hook
    project_context.pop_context()
  File "[...]/renku/domain_model/project_context.py", line 247, in pop_context
    self._top.database.commit()
  File "[...]/renku/infrastructure/database.py", line 459, in commit
    self._store_object(object)
  File "[...]/renku/infrastructure/database.py", line 466, in _store_object
    self._cache[object._p_oid] = object
  File "[...]/renku/infrastructure/database.py", line 532, in __setitem__
    raise ValueError(f"The same oid exists: {existing_data} != {object}")
ValueError: The same oid exists: <renku.domain_model.dataset.DatasetTag object at 0x1073c92e0 oid '9ad0666be7e40f11eceec79a004d2364cea7ab9a735bca66e72db03d6f893437' in <renku.infrastructure.database.Database object at 0x1073a8160>> != <renku.domain_model.dataset.DatasetTag object at 0x1073c93c0 oid '9ad0666be7e40f11eceec79a004d2364cea7ab9a735bca66e72db03d6f893437' in <renku.infrastructure.database.Database object at 0x1073a8160>>

Additional context

Add any other context about the problem.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions