IRC logs of #tryton for Friday, 2023-09-29

irc.libera.chat #tryton log beginning Fri Sep 29 12:10:01 AM CEST 2023
-!- yangoon(~yangoon@pd9e4ad78.dip0.t-ipconnect.de) has joined #tryton02:26
-!- springwurm(~springwur@2a01:76c0:100:f500:d3bb:a2e0:d8cb:99f9) has joined #tryton05:13
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton06:05
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:25
-!- ChanServ changed mode/#tryton -> +o cedk 06:25
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton06:25
-!- rpit(~rpit@p200300c88f19a400b629dc14e46bf803.dip0.t-ipconnect.de) has joined #tryton06:30
-!- htgoebel(~htgoebel@p200300d5df0fd50053da8105f7a4d2de.dip0.t-ipconnect.de) has joined #tryton06:33
pokolihtgoebel: I guess the mono-repo will be cloned on each run 06:47
pokoliNormally third-party developers workon on released series, so they can just use pypi packages06:48
pokoliat least, this is what we do 06:48
htgoebelpokoli: Will, we are preparing transition to 7.0, thus working on 6.9.06:57
htgoebelIf wheels of current development head/tip would be available.  this would ease this work a lot.06:58
-!- udono(~udo@013-154-117-131.ip-addr.inexio.net) has joined #tryton06:59
pokolihtgoebel: It should be possible to store packaeges on heptapod package registry: https://docs.gitlab.com/ee/user/packages/pypi_repository/07:01
-!- LordVan(~LordVan@gentoo/developer/lordvan) has joined #tryton07:05
LordVanhi07:06
LordVani got a question about invoice grouping07:06
pokoliACTION waiting for LordVan to ask his question....07:07
LordVanI did change _get_invoice_grouping_fields to include another (custom) field for grouping (i called it sale_group_name - so i can decide through a field on the sale/invoice which invoice I want to be grouping)07:07
LordVanbut for some reason i got a problem now where when it is multiple shipments from the same customer it does not group them unless i make a sale amendment later (to force it to re-process)07:07
LordVanand if it is from multiple sales it won'T do it at all07:08
LordVanit had worked during tests before, but for some reason I ge6t this weird issue now07:08
LordVanthe code is here: https://github.com/LordVan/tryton-modules/commit/9e375c964e0d90fc1cb7e1ab6cdc684247c17f7407:10
LordVan(the patch includes a few things related to 6.4 -> 6.8 too but you get the idea i am sure)07:10
LordVanpokoli, any idea what I'm missing?07:18
pokoliLordVan: not probably related to the issue but you should always call super instead of rewriting the full _get_invoice_grouping_fields method07:20
pokoliso you get the list from super() and append the fields you add07:20
pokoliLike you do in create_invoice07:20
LordVanyeah i actually just noticed that myself.. just changed that one 07:20
pokoliLordVan: you do not need to make and amendment, there is a process button on the sale07:20
LordVanpokoli, yes i know but i noticed an amedment does that too07:21
pokoliThere should be an error somewhere. If you are on 6.8, you should see some record in Administration - > Scheduler -> Errors07:21
LordVanbut not automatically and that is werid07:21
LordVanpokoli, aaah i found the error07:22
LordVanit is a custom fieldon the invoice that is required07:22
LordVanwait07:22
LordVanhmm i am not sure now .. that does nto show when the error happened?07:23
LordVanno never mind those were old errors .. there are none now .. hm07:25
pokoliLordVan: if you have a worker, sales are processed on background and errors not raised to the user but saved on errors table I mentioned earlier07:26
LordVanyes i had not actually needed that before so I forgot about it07:27
LordVanstill i am not sure why my problem happens .. hmm07:28
htgoebelpokoli: re registry: Yes, anyhow this accepts a single version per package. Thus updating a dev package either requires to have some increasing version (e.g. based on mercurial revision count) or to delete the packake07:29
htgoebelpokoli: Uploading to some webspace (e.g. via ssh) seam much easer.07:30
htgoebelcedk: Would you accept a merge-request for uploading development versions to some place (using ssh)? Or some other kind of support to get trydevpi active again?07:30
pokolihtgoebel: it is possible to list and delete packages using gitlab api: https://docs.gitlab.com/ee/api/packages.html#delete-a-project-package07:32
pokoliSo on each commit to default branch you can just delete and republish the same packages07:33
pokolihtgoebel: another problem when using the same package version is that you must use --no-cache when pip installing otherwise the packages will be installed from local cache if same version is used07:33
LordVanpokoli, btw here the data in question: https://dpaste.org/xuLGL07:37
LordVanso as you can see all the groupng fields are actually the same but it won'T group07:37
LordVanand i am out of ideas right now as to why 07:37
pokoliLordVan: what  happens if you delete both invoices?07:50
pokolithat will trigger the process of sale, recreate-them and they should be grouped07:50
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton07:51
htgoebelpokoli, cedk: I'm aware of the possibility to delete packages from the heptapod registry. Anyhow some "scp" command would be much easier. Esp. persmissions could be restricted to allow some ssh-key to only execute a single commans08:00
pokolihtgoebel: Maybe I'm missing something but how you install packages from scp ? 08:01
htgoebelpokoli: I mean publishing by pushing it to some webspace-directory using scp08:04
htgoebelpokoli: Much like we do for the static website we both worked on a few weeks ago and push to your server08:05
LordVanpokoli, hmm let me try I guess08:06
pokolihtgoebel: but if you use a static website for packages you will need to indicate the full url to the package. If you use a pypi package (like the heptapod one) you will just need to indicate the package to install and pip will do all the magic08:06
LordVanactually to rule out any other issues let me comment out my custom method and try processing again to see what happens first08:07
LordVanok that worked so it is that.. hmm08:09
LordVanpokoli, so this one line method is causing th eproblem but i am really not sure why .. https://github.com/LordVan/tryton-modules/blob/dd00adcad54f1a0aca4423ee0db3ffeed5432977/rm_extra_data/sale.py#L6808:12
LordVanmaybe because it is a varchar field - while all the other fields on the list are foreign keys ?08:13
LordVanno wait .. they are not .. 'state' is also char08:13
htgoebelpokoli: For a static web directory view one would only need to provide the link to the directory AFAIK as extra-index. pip would read directroy listing and fetch what it needs. I will validate this statement later today.08:25
pokolihtgoebel: yes but fetching from http is the same as fetching directly from the repository, you do no need to sync anything08:33
htgoebelpokoli: yes, but updating a directory on a static website is simpler than deleting the package in the repository, then uploading it again08:39
pokolihtgoebel: and downloading directly the monorepositoy is easier than a static website 08:40
pokoliyou won't need sync anything, just use the heptadpod sources for downloading your dependencies08:40
htgoebelpokoli: How can I make pip search for the package in the mono-repo.08:41
-!- rpit(~rpit@p200300c88f19a400b629dc14e46bf803.dip0.t-ipconnect.de) has joined #tryton08:42
pokolihtgoebel: https://www.tryton.org/~irclog/2023-09-28.log.html#t2023-09-28T10:27:4608:42
htgoebelpokoli: AFAIU this, this requires to create a list of all package URLs first.08:47
htgoebelpokoli: When so look a the bottom of https://pip.pypa.io/en/stable/topics/vcs-support/#url-fragments this says pip install "pkg @ vcs+protocol://repo_url/#subdirectory=pkg_dir" 08:48
pokolihtgoebel: the list of packages is already generated by setup.py requires08:49
pokoliyou just need to use the custom URL instead of just the package name08:49
htgoebelpokoli: … which I read as: pip does not serch08:49
htgoebelpokoli: Using a custom url per package means that the CI needs to do much. much more when using a develop version.08:50
htgoebelpokoli: This is crap!08:51
pokolihtgoebel: I think its easier that CI does to much, than having an external process to sync everything which will be more error prone 08:51
pokolihtgoebel: on the other hand, if you sync every day but just build once a month, the resources for sync are wasted ...08:52
htgoebelpokoli: Prior to switching to heptapod, trydevpi provided development packages. The same should be possible now. That's all I'm demanding. Everything else are implementation details08:57
pokolihtgoebel: trydevpi was provide because it was required for drone CI 08:58
pokolihtgoebel: trydevpi is  no longer required with heptapod, so it is no longer needed08:58
pokolithis is the reason why it is not available now08:58
htgoebelpokoli, cedk: Yeah, but this leaves alone that 3rd party developers may need development packages. Thus proving these IHMO is a task of the foundation: supporting the community and fostering Tryton.09:05
htgoebelpokoli, cedk: This is especially true since the infrastructure already exists. The only missing piece is the upload from heptapod CI - which I offered to provide09:05
pokolihtgoebel: If you want to provide a package index for development packages then just use the heptapod package registry 09:11
htgoebelpokoli, cedk: Would you accept a merge-request for uploading development versions to the Tryton project's heptapod package registry? (Which will require to delete existing dev version packages from the repository)09:18
pokolihtgoebel: you should just ask cedk  if he agrees with the design as I have no powers to accept anything09:24
pokoliBut I think it will be better to start with a discuss topic explaining the full proposal and the exact needs. 09:25
pokolihtgoebel: there is also https://foss.heptapod.net/tryton/tryton/-/issues/7736 which may solve the issue if you use docker for CI 09:26
-!- springwurm(~springwur@2a01:76c0:100:f500:a538:d39f:988d:f233) has joined #tryton11:54
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton12:05
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton13:38
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton15:11
-!- ChanServ changed mode/#tryton -> +o cedk 15:11

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