ObjectRef.full_path: the file branch and plugin storage protocols still build the path by hand
Les mainteneurs répondent en général sous 6 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 55/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- python
- Domaine
- data-engineering
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Python
- Étoiles
- 198
- Forks
- 103
- Merge moyen
- 6 j 1 h
- PR mergées (30 j)
- 10
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de datajoint/datajoint-python
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
datajoint/datajoint-python#1703 ·
Les mainteneurs répondent en général sous 6 jours
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
datajoint/datajoint-python#1702 ·
Les mainteneurs répondent en général sous 6 jours
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
datajoint/datajoint-python#1701 ·
Les mainteneurs répondent en général sous 6 jours
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
datajoint/datajoint-python#1691 ·
Les mainteneurs répondent en général sous 6 jours
-
dependencies needs-discussion
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
datajoint/datajoint-python#1687 ·
Les mainteneurs répondent en général sous 6 jours
Toutes les issues de datajoint/datajoint-python
Issues similaires
-
needs-triage
Difficulté 1/5 1-3 heures Accessibilité débutants 85/100
gke-labs/kube-agents#6620 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
open-webui/open-webui#34719 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
cognition
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
One non-object JSON record makes the session catalog exitPeut-être pris @he-yufeng l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
[Suggestion]: Geonode MCP ServerOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
collabnix/awesome-mcp-lists#433 ·
Les mainteneurs répondent en général sous 4 jours