IRC logs of #tryton for Monday, 2018-10-08

chat.freenode.net #tryton log beginning Mon Oct 8 00:00:01 CEST 2018
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:40
-!- lucascastro(~lucascast@177-185-139-186.isotelco.net.br) has joined #tryton02:17
-!- yangoon(~mathiasb@i59F5FFBC.versanet.de) has joined #tryton02:46
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton04:58
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton05:28
-!- thaneor(~lenovo3@r179-25-55-134.dialup.adsl.anteldata.net.uy) has joined #tryton05:43
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton06:56
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton07:00
-!- rpit(~rpit@p200300C88F2C730025CEEF795EAB85A0.dip0.t-ipconnect.de) has joined #tryton07:04
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton07:16
-!- udono(~udono@2a00:6020:15fa:1e00:76e5:bff:fe6e:a706) has joined #tryton07:17
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton07:17
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:56
mrichezhi, how to test a patch with tryton-env ? before i just did hg review --fetch -i xxxxxx08:24
pokolimrichez: I download the patchset and apply it with: patch -p1 < file08:25
mrichezpokoli: ok thanks !08:29
pokolimrichez: jftr, if the patch applies to a single repoistory you can import it directly with: hg import --no-commit <patch_url>08:44
mrichezpokoli: ok. and hg review is now obsolete ?08:51
pokolimrichez: IIRC hg review does not work with latest mercurial version09:01
mrichezpokoli: ok09:02
pokolimrichez: so we use upload.py with this patch aapplied: https://github.com/rietveld-codereview/rietveld/pull/56809:02
-!- smorillo(bc559993@gateway/web/cgi-irc/kiwiirc.com/ip.188.85.153.147) has joined #tryton09:03
pokolimrichez: See: https://discuss.tryton.org/t/using-subrepository/585/1609:04
pokolimrichez: upload.py can also be downloaded from https://codereview.tryton.org/use_uploadpy09:05
mrichezpokoli: oki thanks for all explanations09:07
cedkFYI, at the pycon.fr we discussed with marmoute from Octobus (hg developer) about our workflow and how we could improve it09:07
-!- smorillo(9effefda@gateway/web/cgi-irc/kiwiirc.com/ip.158.255.239.218) has joined #tryton09:10
cedkI will make a post on discuss when it is clear09:13
mrichezcedk: ok09:13
cedkbut the big lines are to use a monorepo (using prefixed tag for module release)09:14
cedkuse a draft repo with evolve/topics opened to any one with bug.tryton.org account09:14
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton09:15
cedkmake review on hgweb (by injecting JS to be written)09:15
cedkand dev validate topics by pushing an non-draft repository09:15
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton09:16
pokolicedk: so we will only use standard hg tools, except to the review on hgweb09:17
cedkpokoli: yes the idea is to focus on the real need and not on the tools09:18
cedkindeed we have already all the bricks except for commenting on patch09:20
cedkbut we have already a tool to display patches: hgweb09:20
cedkit is not a new idea, I found this: http://blog.codekills.net/2009/09/21/review-anywhere---a-tool-for-reviewing-hypertext-documents/09:20
-!- smorillo(bc559993@gateway/web/cgi-irc/kiwiirc.com/ip.188.85.153.147) has joined #tryton09:21
cedkbut the merge to a monorepo could be complicated, we may need to contract octobus to do that09:22
cedkand the testing should be rework to run only for what has changed09:25
-!- smorillo(9effefda@gateway/web/cgi-irc/kiwiirc.com/ip.158.255.239.218) has joined #tryton09:31
-!- smorillo(bc559993@gateway/web/cgi-irc/kiwiirc.com/ip.188.85.153.147) has joined #tryton09:43
-!- lukio(~lukio@190.191.95.243) has joined #tryton10:16
-!- nlopez73(bc559993@gateway/web/cgi-irc/kiwiirc.com/ip.188.85.153.147) has joined #tryton10:31
-!- mariomop(~quassel@181.105.94.19) has joined #tryton10:59
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton11:36
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton11:58
mrichezWhat's the best way to ensure a field is unique ? adding an sql_constraint ?12:43
cedkmrichez: yes but NULL is always unique12:49
mrichezcedk: ok. I'm wondering where is stored the error_message linked to the constraint when using cls._sql_contraints ?12:53
mrichezcedk: doc.tryton.org is no more working ?12:53
cedkmrichez: check http://docs.tryton.org/projects/server/en/latest/ref/models/models.html?highlight=sql_constraints#trytond.model.ModelSQL._sql_constraints13:00
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton13:04
cedkmrichez: for doc.tryton.org, you may have DNS propagation delay13:05
cedkit may takes up to 7 days since last Friday13:06
mrichezcedk: ok, thanks. One more question, modelstorage.validate could also be used to check unique ? (even if sql_constraint is better)13:08
cedkmrichez: no it can not because of the concurrency and transactional behavior of Tryton13:16
mrichezcedk: ok13:18
-!- lukio(~lukio@190.191.219.148) has joined #tryton13:45
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton14:08
-!- lukio(~lukio@190.191.219.148) has joined #tryton14:15
-!- rpit(~rpit@p200300C88F2C7300C0FB24A9170DA84C.dip0.t-ipconnect.de) has joined #tryton14:36
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton15:52
-!- cryptic(~cryptic@142.196.170.87) has joined #tryton16:10
-!- lucascastro(~lucascast@200.141.207.18) has joined #tryton16:51
-!- mariomop(~quassel@host238.190-137-186.telecom.net.ar) has joined #tryton17:00
-!- lucascastro(~lucascast@189.90.38.210.jupiter.com.br) has joined #tryton17:28
-!- thaneor1(~lenovo3@179.26.153.232) has joined #tryton17:45
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton18:04
-!- lukio(~lukio@host160.190-138-184.telecom.net.ar) has joined #tryton18:34
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton20:00
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton20:38
-!- csotelo(~csotelo@2800:200:f400:23c1:83dd:9b29:5c88:1c4c) has joined #tryton20:43
-!- lucascastro(~lucascast@177-185-139-186.isotelco.net.br) has joined #tryton21:46

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!