ObjectRef.full_path: the file branch and plugin storage protocols still build the path by hand
Los mantenedores suelen responder en 6 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- python
- Área
- data-engineering
Línea de trabajo
Start with src/datajoint/objectref.py and inspect ObjectRef.full_path alongside StorageBackend._full_path; the issue identifies the file branch, plugin storage branch, and location normalization as the affected paths. Read the tests for object references and storage adapters, then add coverage for the reported behaviors, including a literal path that pins current location handling. Done means the return behavior for file references is decided and the plugin branch includes its store location without changing existing object keys.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Follow-up to #1646 and #1648. #1648 makes ObjectRef.full_path use the backend's get_url() for s3, gcs and azure stores, so the location is included. Two other branches of full_path (src/datajoint/objectref.py) still build the path themselves:
fileprotocol: returnsstr(Path(location) / self.path). On Windows this gives backslashes, the path is not made absolute, and the docstring promises a URI while this branch returns a plain path. Switching it toget_url()would returnfile:///...and break callers that doopen(ref.full_path), so the return type needs an explicit decision, or the branch should use_full_path.- Any other protocol (storage adapters registered through the
datajoint.storageentry point): returns the bareself.path, without the store location, which is the same bug as #1646.StorageAdapteralready providesget_urlandfull_path, soreturn self._backend.get_url(self.path)would fix it.
Separately, StorageBackend._full_path does not normalize the location: "proj/outbox/" gives s3://bkt/proj/outbox//.... That is consistent with where objects are written today, so changing it would move the keys of existing stores. A test that pins the current behavior with a literal path would make any later change deliberate.
- Lenguaje dominante
- Python
- Estrellas
- 198
- Forks
- 103
- Merge medio
- 6 d 1 h
- PR fusionados (30 d)
- 10
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de datajoint/datajoint-python
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
datajoint/datajoint-python#1703 ·
Los mantenedores suelen responder en 6 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
datajoint/datajoint-python#1702 ·
Los mantenedores suelen responder en 6 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
datajoint/datajoint-python#1701 ·
Los mantenedores suelen responder en 6 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
datajoint/datajoint-python#1691 ·
Los mantenedores suelen responder en 6 días
-
dependencies needs-discussion
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
datajoint/datajoint-python#1687 ·
Los mantenedores suelen responder en 6 días
Todos los issues de datajoint/datajoint-python
Issues similares
-
cognition
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
[Suggestion]: Geonode MCP ServerAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
collabnix/awesome-mcp-lists#433 ·
Los mantenedores suelen responder en 4 días
-
CrossEntropyFilter raises on zero probabilities and single-class resultsPosiblemente ocupada @NopeCharon la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Archmonger/ServeStatic#129 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 2 días