cubicweb issueshttps://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues2024-03-11T14:47:27Zhttps://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1033Transpile cubicwebjs client package to ESM2024-03-11T14:47:27ZArnaud VergnetTranspile cubicwebjs client package to ESMWe currently only build `@cubicweb/client` to commonjs module. Some frameworks like Astro only understand ESM. We should also provide and ESM package.We currently only build `@cubicweb/client` to commonjs module. Some frameworks like Astro only understand ESM. We should also provide and ESM package.Nicolas Chauvatnicolas.chauvat@logilab.frNicolas Chauvatnicolas.chauvat@logilab.frhttps://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1031Fix column_types for added properties through a RQL adapter2024-03-05T15:26:54ZNicola SpantiFix column_types for added properties through a RQL adapter```
rset = cnx.execute('Any X, X.dc_title() WHERE X is CWUser')
print(rset.column_types(1))
```
The result must be `'str'` or `'string'` and not `'CWUser'`.```
rset = cnx.execute('Any X, X.dc_title() WHERE X is CWUser')
print(rset.column_types(1))
```
The result must be `'str'` or `'string'` and not `'CWUser'`.https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1030Raise an error when try to access a non-existing member through RQL2024-03-05T15:27:01ZNicola SpantiRaise an error when try to access a non-existing member through RQL```
Any X, X.i_dont_exist WHERE X is CWUser
```
Cette requête RQL devrait renvoyer une erreur et pas renvoyer l'eid pour la 2e colonne.```
Any X, X.i_dont_exist WHERE X is CWUser
```
Cette requête RQL devrait renvoyer une erreur et pas renvoyer l'eid pour la 2e colonne.https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1029Automatically convert Date and (TZ)DateTime and Time from/to api format2024-03-05T16:08:51ZArnaud VergnetAutomatically convert Date and (TZ)DateTime and Time from/to api formathttps://forge.extranet.logilab.fr/cubicweb/cubicwebjs/-/issues/32https://forge.extranet.logilab.fr/cubicweb/cubicwebjs/-/issues/32https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1028Return metadata along results sets on /rql2024-03-05T13:04:45ZArnaud VergnetReturn metadata along results sets on /rqlhttps://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1027Add CORS information in readme2024-02-28T16:09:53ZArnaud VergnetAdd CORS information in readmewhen deploying the api cube on a separate URL from the frontend, we need to set
```
more_set_headers "Access-Control-Allow-Origin: $http_origin";
more_set_headers "Access-Control-Allow-Credentials: true";
more_set_headers "Access-Contro...when deploying the api cube on a separate URL from the frontend, we need to set
```
more_set_headers "Access-Control-Allow-Origin: $http_origin";
more_set_headers "Access-Control-Allow-Credentials: true";
more_set_headers "Access-Control-Allow-Methods: GET,POST,OPTIONS";
more_set_headers "Access-Control-Allow-Headers: X-Client-Name, Content-Type";
```
in the server confighttps://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1026Update the Transaction api in the @cubicweb/client2024-03-05T14:40:17ZArnaud VergnetUpdate the Transaction api in the @cubicweb/client- [x] unifier RqlQuery et TransactionQuery et renommer en RQLQuery
- [x] utiliser des UUID à la place d'un index dans RQLQuery
- [x] convertir les TransactionQueryXXXRef en classes (pour utiliser instanceof pour les différencier)
- [x] a...- [x] unifier RqlQuery et TransactionQuery et renommer en RQLQuery
- [x] utiliser des UUID à la place d'un index dans RQLQuery
- [x] convertir les TransactionQueryXXXRef en classes (pour utiliser instanceof pour les différencier)
- [x] avoir un seul resolve sur TransactionResult qui vérifie le type de la référence
- [x] ajouter rowRef(row) et cellRef(row, column) dans RQLQuery
- [x] ajouter pushQuery et pushQueries dans Transaction => a voir si on veut garder seulement pushQueries
- [x] renommer TransactionQueryScalarRef en TransactionQueryCellRef
- [x] supprimer type de TransactionQueryCellRef
- [x] Faire pareil pour BinaryRef
- [x] créer une fonction serializeQueries pour convertir une liste de RQLQuery en des valeurs compatibles avec le backend (eg: rajouter la clé type: "query_reference")Arnaud VergnetArnaud Vergnethttps://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1016Move `cubicweb.tags` to cube `web`2024-02-15T16:20:18ZNicola SpantiMove `cubicweb.tags` to cube `web`https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/blob/4a7c8e33a6039fcd823008a83f336fa1a9cbc7d1/cubicweb/tags.py
It seems to be a remaining piece that seems to have now its location in the cube `web` as it is very likely to be useles...https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/blob/4a7c8e33a6039fcd823008a83f336fa1a9cbc7d1/cubicweb/tags.py
It seems to be a remaining piece that seems to have now its location in the cube `web` as it is very likely to be useless without it.https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1014Publish May activity report2024-02-14T16:27:28ZNicola SpantiPublish May activity report0. Précédent : https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1013
1. Demande de fusion : *à faire*
2. Suivant : *à faire*0. Précédent : https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1013
1. Demande de fusion : *à faire*
2. Suivant : *à faire*2024-06-04https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1013Publish April activity report2024-02-14T15:43:26ZNicola SpantiPublish April activity report0. Précédent : https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1012
1. Demande de fusion : *à faire*
2. Suivant : https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/10140. Précédent : https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1012
1. Demande de fusion : *à faire*
2. Suivant : https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1014Nicola SpantiNicola Spanti2024-05-07https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1012Publish March activity report2024-02-14T15:42:38ZNicola SpantiPublish March activity report0. Précédent : https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1011
1. Demande de fusion : *à faire*
2. Suite : https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/10130. Précédent : https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1011
1. Demande de fusion : *à faire*
2. Suite : https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1013Nicola SpantiNicola Spanti2024-04-02https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1011Publish February activity report2024-03-11T15:59:39ZNicola SpantiPublish February activity report0. Précédent : https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/970
1. RMO : https://hedgedoc.logilab.fr/AvfBQeKYQ2mkQMHf_55f3g
2. Actuel : https://forge.extranet.logilab.fr/cubicweb/cubicweb.org/-/tree/topic/default/report-2...0. Précédent : https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/970
1. RMO : https://hedgedoc.logilab.fr/AvfBQeKYQ2mkQMHf_55f3g
2. Actuel : https://forge.extranet.logilab.fr/cubicweb/cubicweb.org/-/tree/topic/default/report-2024-02
3. Suite : https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1012Nicola SpantiNicola Spanti2024-03-05https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1009cube-doctor : laissé en plan ou être plus actif ?2024-02-20T16:22:51ZNicola Spanticube-doctor : laissé en plan ou être plus actif ?Pendant au moins un temps, le créateur, améliorateur et mainteneur de cube-doctor, Laurent, ne va plus travailler pour Logilab. Que veut t'on faire ? Le laisser en plan pour le moment ? Juste le maintenir ? Continuer à l'améliorer ?
Si ...Pendant au moins un temps, le créateur, améliorateur et mainteneur de cube-doctor, Laurent, ne va plus travailler pour Logilab. Que veut t'on faire ? Le laisser en plan pour le moment ? Juste le maintenir ? Continuer à l'améliorer ?
Si on le maintient au moins, quel gestion de ce qu'il produit ? Être plus sélectif pour qu'il produise moins de demandes de fusion ?
Si on veut continuer, il faudrait 1 ou 2 personnes à former.
Todo:
- [ ] passer aux semvers pour l'upgrade des versions
- [ ] ^ et qu'on gère l'upgrade de version pour cubicweb aussi
- [ ] mise en prod des fix de deprecations warnings avec une correspondance "tel version de {yams,logilab-*,rql} -> upgrade la dépendance de cubicweb pour la version y"
- [ ] pouvoir lancer cube-doctor en CLI en mode intéractif sur le projet courant
- [ ] garder un state des modifications sur un dépot dans un gist
- [ ] probablement + de tests
- [ ] pondre des rapports
- [ ] les .cube-doctor.yaml
- [ ] renomer cube-doctor en code-doctorhttps://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1005Faire une tâche récurrente pour supprimer les sessions expirées2024-02-06T13:15:30ZNicola SpantiFaire une tâche récurrente pour supprimer les sessions expiréesSuite de https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/954
Notes :
- Si un ticket d'authentification est toujours valable, ça n'a pas expiré.
- Sans ticket d'authentification, une session est expirée.
- Une ou d'autres rè...Suite de https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/954
Notes :
- Si un ticket d'authentification est toujours valable, ça n'a pas expiré.
- Sans ticket d'authentification, une session est expirée.
- Une ou d'autres règles pour l'expiration ? À priori non.https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1004Got an internal error when re-creating a CWUser and trying to connect with a ...2024-02-14T15:35:04ZSimon ChabotGot an internal error when re-creating a CWUser and trying to connect with a previously set cookieStep to reproduce
1. Create an instance
2. Create a user `toto`
3. Log in with `toto`
4. Re-create the instance from stratch
5. Re-create the user `toto` (make sure the eid of the created user is ≠ than the one created at step 2, may be...Step to reproduce
1. Create an instance
2. Create a user `toto`
3. Log in with `toto`
4. Re-create the instance from stratch
5. Re-create the user `toto` (make sure the eid of the created user is ≠ than the one created at step 2, may be create some additional entities).
If the cookie created a step 3 is still there, them you may experience an Internal Server Error, as the eid in the cookie does not refer anymore to the user `toto`.
The `assert` causing the Internal Server Error is [this one](https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/blob/cfb38d4b3c2a38d211a5b0eb0089602dab14f51f/cubicweb/server/repository.py#L718). Instead of failing, we could invalidate the cookie and redirect to /login.Simon ChabotSimon Chabothttps://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/1003remove yams.xy if no one is using it2024-02-06T14:46:02ZNicolas Chauvatnicolas.chauvat@logilab.frremove yams.xy if no one is using itsee https://forge.extranet.logilab.fr/open-source/yams/-/issues/7
and https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/blob/branch/4.x/cubicweb/xy.py
We also need to remove cubicweb/xy.py file in the CubicWeb project.
It seems to ...see https://forge.extranet.logilab.fr/open-source/yams/-/issues/7
and https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/blob/branch/4.x/cubicweb/xy.py
We also need to remove cubicweb/xy.py file in the CubicWeb project.
It seems to be used in the cubes:
* sioc
* skos
* conference
* prov
* blog
* webNicolas Chauvatnicolas.chauvat@logilab.frNicolas Chauvatnicolas.chauvat@logilab.frhttps://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/997CW 6.X2024-02-06T16:55:12ZLaurent PeuchCW 6.XPréalable : https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/938
- [ ] #903 (yams)Préalable : https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/938
- [ ] #903 (yams)https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/996Generating i18n files fails when entity's description is identical to the ent...2024-01-30T13:07:50ZSimon ChabotGenerating i18n files fails when entity's description is identical to the entity nameAssuming
```
# schema.py
class Toto(EntityType):
"""Toto"""
pass
```
executing `cubicweb-ctl i18ncube my-cube` fails because two keys are identical.
It should not fail, as the two `Toto` are not the same thing.
I think the i...Assuming
```
# schema.py
class Toto(EntityType):
"""Toto"""
pass
```
executing `cubicweb-ctl i18ncube my-cube` fails because two keys are identical.
It should not fail, as the two `Toto` are not the same thing.
I think the issue comes from: https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/blob/branch/4.x/cubicweb/devtools/devctl.py?ref_type=heads#L179 and https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/blob/branch/4.x/cubicweb/devtools/devctl.py?ref_type=heads#L166 where not context is provided.https://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/995update cube doctor to take into accound semantic versionning2024-01-25T14:32:49ZFrançois Ferryupdate cube doctor to take into accound semantic versionninghttps://forge.extranet.logilab.fr/cubicweb/cubicweb/-/issues/994Fetch `fetch_attrs` when using cnx.find and other method to fetch entities2024-01-25T10:58:40ZFrançois FerryFetch `fetch_attrs` when using cnx.find and other method to fetch entitiesHi there (✿◠‿◠)
I was considering using `cnx.find(<etype>)` in order to fetch entities, but it only fetches eid and not attributes, so it's not optimized. What if it also fetches attributes in `fetch_attrs` ?
`cnx.find(<etype>)` could ...Hi there (✿◠‿◠)
I was considering using `cnx.find(<etype>)` in order to fetch entities, but it only fetches eid and not attributes, so it's not optimized. What if it also fetches attributes in `fetch_attrs` ?
`cnx.find(<etype>)` could load `fetch_attr`
`cnx.find(<etype>, fetch_attr=["foo", "bar"])` could load `foo` and `bar` attributes
`cnx.find(<etype>, fetch_attr=[])` could load none of the attributes.
Imo it could improve performance on many website.François FerryFrançois Ferry