Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    ardo
    @ardohr_gitlab
    Hi..night all.
    Is the guillotina-react documentation still valid? I tried to install but can't login (python 3.7.11, Guillotina 6.3.15)
    ardo
    @ardohr_gitlab
    error message in guillotina application like this: [32mINFO←[0m: ::1:49704 - "←[1mGET /db/ HTTP/1.1←[0m" [32m200 OK←[0m
    origin http://localhost:3000 not allowed
    Roger Boixader Güell
    @rboixaderg
    Hi @ardohr_gitlab, have the allow_origin: config in your guillotina config? It's seems that is guillotina config problem and not guillotina_react problem
    ardo
    @ardohr_gitlab
    Hi Roger
    Thx a lot for your explanation. now guillotina_react is running well in my laptop
    ardo
    @ardohr_gitlab
    Hi all
    How does Guillotina handle relational data? Any examples?
    Ramon Navarro Bosch
    @bloodbare
    @ardohr_gitlab it has the driver for pg connection and you can reuse the connection pool for quering DB and do your own views. There is a small package we use for storing relational data as a field on a Guillotina Object : https://github.com/guillotinaweb/guillotina_pgfield
    you can define a field on an object that has a sql schema
    I hope it helps
    ardo
    @ardohr_gitlab
    Hi @bloodbare , Thank you. I'll try it.
    ardo
    @ardohr_gitlab
    Hi All. Sorry i have another question to ask.
    I tried to follow it step by step in the training document (on guillotina_chat). But when I click Add Message in the conversation there is an error as shown in the image. I've disabled the serialize script(serialize.py), but the error is still the same. Is there an explanation for this error ?
    Screenshot (1022).png
    ardo
    @ardohr_gitlab
    in debug mode there is'nt error message.
    Roger Boixader Güell
    @rboixaderg
    Hi @ardohr_gitlab, can you share the guillotina response?
    ardo
    @ardohr_gitlab
    Hi @rboixaderg. That is my mistake. Because the GMI Form seems to only display the Id and Title fields. Whereas in chat applications, the content schema only has a Text message field (without id and title). After changing required = True to False, there is no such error
    Roger Boixader Güell
    @rboixaderg

    You can override default Form to RequiredFieldsForm in registry. Or you can create your custom Form for your Type. Here there is an example:

    https://github.com/guillotinaweb/guillotina_react/blob/1383ea02bb89866921defab365b6b4de4d325743/e2e/example/components/guillotina.js#L23
    This guillotina has GMI type.

    ardo
    @ardohr_gitlab
    Thx a lot @rboixaderg , I'll try it
    ardo
    @ardohr_gitlab
    Hi all. Sorry i have another question. If the application to be built has a lot of time series data, does anyone here have any suggestions on how to do it using Guillotina?
    Ramon Navarro Bosch
    @bloodbare
    Hi Ardo, when I used time series I used PG specific logic for it, but u can use ES driver to provide time series or implement something like pgfields or specific view code agains any db like influxdb
    ardo
    @ardohr_gitlab
    Hi Ramon, thanks a lot for your explanation. What do you mean by the words PG specific logic? What do you think about timescaledb(Postgresql for timeseries) ? Looks like I'm interested in trying it out using pgfields in G.
    Ramon Navarro Bosch
    @bloodbare
    I meant PLSQL code to aggregate, bit hacky and only valid if its not massive data. Timescaledb looks really nice but never tested. I’m curious about how PG can scale for time series.
    ardo
    @ardohr_gitlab
    Thanks Ramon for the explanation
    alan runyan
    @runyaga
    @bloodbare if you have 10m for a quick chat - would apprecaite it. Dont see a way to DM you.
    Ramon Navarro Bosch
    @bloodbare
    hey alan, DMed you :)