Conversation
…om projects, add /remove projects from collections
…' into feat/myfiles_imports_collections
grololo06
left a comment
There was a problem hiding this comment.
Au vu du volume de code, c'est principalement des remarques esthétiques.
There was a problem hiding this comment.
Il faut changer la version de l'API non?
QA/py/tests/test_update_prj.py
Outdated
| assert rsp.json() != ref_json | ||
| assert rsp.json()["comments"] == "New comment" | ||
| assert rsp.json()["visible"] is False | ||
| assert rsp.json()["access"]==AccessLevelEnum.PRIVATE.value |
There was a problem hiding this comment.
J'ai l'impression que le code n'est pas formatté avec black ici.
There was a problem hiding this comment.
black plante de temps en temps
There was a problem hiding this comment.
corrigé , j'ai enlevé les options
| COMMIT; | ||
|
|
||
| BEGIN; | ||
| ------------Running upgrade a9dd3c62b7b0->647290b6c4fc |
There was a problem hiding this comment.
C'est un upgrade dans le passé?
There was a problem hiding this comment.
la aussi : Running upgrade 565015aa8282 -> dac2d438e6b5
QA/py/pg_files/upgrade_prod.sql
Outdated
| UPDATE projects SET access='2' WHERE visible=true AND license!='' AND LOWER(license) NOT LIKE 'copyright'; | ||
|
|
||
| -- private when copyright or visible=False | ||
| UPDATE projects SET access='0' WHERE visible=false OR LOWER(license) LIKE 'copyright'; |
There was a problem hiding this comment.
oui mais pas utile ici
QA/py/tests/test_v_guest.py
Outdated
| from tests.credentials import ADMIN_AUTH, USER_AUTH, ORDINARY_GUEST_GUEST_ID | ||
|
|
||
|
|
||
| # noinspection PyPackageRequirements |
py/DB/Project.py
Outdated
| rf_models_used = Column(VARCHAR) | ||
| cnn_network_id = Column(VARCHAR(50)) | ||
|
|
||
| # to calculate concentration |
There was a problem hiding this comment.
Un petit mot sur le format en DB? C'est des lignes de texte?
py/helpers/AppConfig.py
Outdated
| def get_account_request_url(self) -> Optional[str]: | ||
| # TODO find a way to have multi request url ( list of identified url ???) | ||
| url = self.parser.get("SERVERURL").strip() | ||
| url = self.parser.get("SERVERURL" or "").strip() |
There was a problem hiding this comment.
Un "or" de 2 str je ne comprends pas. C'est pour rendre une default value? get("SERVERURL","") ?
There was a problem hiding this comment.
oui default value
| - An administrator or user administrator or logged project manager can create a guest. | ||
| - An ordinary logged user cannot create another guest. | ||
|
|
||
| If back-end configuration for self-creation check is Google reCAPTCHA, |
There was a problem hiding this comment.
Pas de no_bot dans les paramètres?
There was a problem hiding this comment.
les guests ne peuvent s'inscrire que par un manager de projet ou un admin
py/main.py
Outdated
| """ | ||
| **Search for collections.** | ||
|
|
||
| Note: Only manageable collections are returned. |
There was a problem hiding this comment.
Un peu + d'explication sur 'manageable' serait bien. Par le user courant?
| fields: Optional[str] = Query( | ||
| default="*default", | ||
| title="Fields", | ||
| description="Return the default fields (typically used in conjunction with an additional field list). For users list display purpose.", |
There was a problem hiding this comment.
C'est les mêmes champs que ceux pour trier un peu + haut?
There was a problem hiding this comment.
je devrais l'enlever pour l'instant , c'est pour ?fields=
There was a problem hiding this comment.
[?fields=**default ou ?fields=**summary ou fields=**all ou ?fields=**default,short_title ] (https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_fields.htm)
new : user "my files" with import addition ( import from user directory, recursive import )
collections : many chnages and projectset functionality (mapping , aggregated fields)
guests : create/update / rights to do necessary for collections