Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 04 16:37
    davidbgk opened #2361
  • Dec 02 09:52
    crowdin-opendatateam opened #2360
  • Dec 02 09:52

    crowdin-opendatateam on l10n_master

    New translations udata.pot (Spa… (compare)

  • Dec 02 09:52

    crowdin-opendatateam on l10n_master

    New translations udata.pot (Ser… (compare)

  • Dec 02 09:51

    crowdin-opendatateam on l10n_master

    New translations udata.pot (Por… (compare)

  • Dec 02 09:51

    crowdin-opendatateam on l10n_master

    New translations udata.pot (Fre… (compare)

  • Dec 02 09:51

    crowdin-opendatateam on l10n_master

    New translations udata.pot (Ara… (compare)

  • Dec 02 09:51

    crowdin-opendatateam on l10n_master

    (compare)

  • Dec 02 09:48

    quaxsze on master

    Fixed organization's members ro… (compare)

  • Dec 02 09:48
    quaxsze closed #2359
  • Dec 02 09:48
    quaxsze closed #935
  • Dec 02 09:48
    quaxsze edited #2359
  • Nov 29 15:47
    quaxsze synchronize #2359
  • Nov 29 15:36
    quaxsze review_requested #2359
  • Nov 29 15:35
    quaxsze synchronize #2359
  • Nov 29 15:16
    quaxsze synchronize #2359
  • Nov 29 15:14
    quaxsze edited #2359
  • Nov 29 15:14
    quaxsze edited #2359
  • Nov 29 15:13
    quaxsze opened #2359
  • Nov 28 15:02

    noirbizarre on pyup-update-twine-1.13.0-to-3.1.0

    (compare)

Nicolas Bonnel
@nicolas-bonnel
A default command test with an empty (true) test and associated documentation in readme could be a nice addition
Some additonnal documentation would help too : i had to look in udata-ods plugin to see there were a dataset field on resources, which is not in the publicly exposed schema (i think udata have additional properties internaly)
Axel H.
@noirbizarre
Yes, right now there is only an empty test on some of the plugin types. I'll add other missing sample test
Comte-Zero
@Comte-Zero
Hi, i'm trying to build an interface listing the datasets and enabling their downloads. I'm wondering if such solutions already exist.
Fabien Antoine
@rhanka
Hi @noirbizarre - I found a small error in the doc of the 1.5.3, concerning TLDS, section URLS_ALLOWED_TLDS:
URLS_ALLOWED_TLDS = Defaults.URLS_ALLOWED_TLDS + set(['custom', 'company']) should be URLS_ALLOWED_TLDS = Defaults.URLS_ALLOWED_TLDS | set(['custom', 'company']) (pipe operator for sets)
Axel H.
@noirbizarre
@Comte-Zero You can take a look at http://datakode.github.io/metaclic/
Hi @rhanka
Thanks.
You can directly submit a fix for this typo as a pull-request (for this kind of typo, the github markdown editor is sufficient)
Fabien Antoine
@rhanka
ok !
Christophe BARRIERE
@ChrisBarriere

@noirbizarre
I'm back with my problem for serving udata with a prefixpath like that: http://{mydomain}/{myprefixPath}/{language}/
I tried your link

@ChrisBarriere Yes, it should be possible. Something like https://stackoverflow.com/questions/31151116/serving-flask-app-on-subdirectory-nginx-uwsgi
But right now this has not been tested yet

So with these options in uwsgi/front.ini:

  • mount = /myprefixpath=udata.wsgi:app
  • manage-script-name = true

I can serve udata in the directory myprefixpath.

But there's another problem because all the assets are builded without this prefixPath. And in the docker deployment it's not possible to build assets (no node an no webpack in the container)
Is there a solution ?

Axel H.
@noirbizarre
@ChrisBarriere Right now assets are built to be served from udata root or from another CDN domain root.
This is a little bit complicated to serve assets from an unkown subpath (at build time) using current JS toolings.
But I'm curious, what justify serving udata from a prefix path ?
Christophe BARRIERE
@ChrisBarriere
@noirbizarre
We are developing services around udata : ihm for datavizualisation, extension of the api, etc..
We do not want to multiply domain names for each service. Subdomain is not a solution because of https and certificates (one certifiate for each subdomain is not possible).
So i think one prefix for one service in the same domain ( http://{mydomain}/{nameofmyservice} ) is an elegant way to solve our problem
Axel H.
@noirbizarre

Yes, but this is a bad practice it comes with some problems, the more obvious is that all cookies are shared all apps:

  • to be rgpd compliant, each app should tell about cookies other apps
  • performances: every cookie is sent and received for every request

Why not use letsencrypt for subdomains ?
Right now I can't see an easy solution to serve udata on a subpath. Maybe serve udata on root and mount other apps on subpaths ?

Christophe BARRIERE
@ChrisBarriere

@noirbizarre

Yes, but this is a bad practice it comes with some problems, the more obvious is that all cookies are shared all apps

No cookie for my new services... (just Session storage in the browser)

Why not use letsencrypt for subdomains ?

I think i can't use letsencrypt for subdomain of developpement-durable.gouv.fr

Right now I can't see an easy solution to serve udata on a subpath. Maybe serve udata on root and mount other apps on subpaths ?

Actually i do that

Axel H.
@noirbizarre
OK. I just took another look and runtime prefix declaration is not easily doable with webpack :/

I think i can't use letsencrypt for subdomain of developpement-durable.gouv.fr

Why is that ? It's working fine on *.data.gouv.fr. Another alternative is to ask for an aditionnal RGS certificate for your subdomain. It should be free (only cost time, so maybe letsencrypt while waiting)

Axel H.
@noirbizarre
Maybe an alias /static/ for {udata}/static ?
Christophe BARRIERE
@ChrisBarriere
@noirbizarre
ok, i will try the alias.
and i will take a look at letsencrypt (i use traefik for my reverse-proxy and it's really simple to configure it with letsencrypt)
Thanks for your answers
Axel H.
@noirbizarre
Maybe this can help too, but still untested
Yes, treafik is great, I believe it's now letsencrypt-inside
Christophe BARRIERE
@ChrisBarriere
@noirbizarre
I try another way. When i build my Docker image, i add a build stage from a nodejs image and i launch npm run build with a new output.publicpath in webpack.config.js. So i get the assets from this stage image and i can copy them in /usr/local/lib/python2.7/dist-packages/udata/static of my Udata image.
And everything is ok.
Axel H.
@noirbizarre
Well done :+1:
I don't see another easy and working solution not involving rebuilding assets :/
Christophe BARRIERE
@ChrisBarriere

@noirbizarre
No problem: rebuilding assets is not so complex because i can do that during a stage build of my final image (for that docker is really great). So, the process is completely automated.

thanks for your availability

Axel H.
@noirbizarre
You're welcome :wink:
Tam-Kien Duong
@taniki
Hey @all! Who will be ready for an informal meetup next week? People from luxembourg will be around on 13th of september. We should also plan more wide and formal udatacon (:
Nicolas Bonnel
@nicolas-bonnel
Hi, I m trying to make a little theme, but I'm stuck
The display is broken, it seems the /static/ folder si not reachable
And I don't have livereload
udata_1          | 192.168.32.1 - - [06/Sep/2018 14:26:45] "GET /static/common.js?_=1.5.3 HTTP/1.1" 404 -
udata_1          | Static files are only served in debug
Axel H.
@noirbizarre
Given the stack trace, it seems you are runnning in production mode. Live reload and static assets serving isonly available in debug mode.
Set DEBUG = True in you udata.cfg.
Nicolas Bonnel
@nicolas-bonnel
I used the cookbook, i ll check tomorrow but there is already a DEBUG = True in the udata.cfg file
Axel H.
@noirbizarre
OK, Are you using docker or native python environment. If you use docker, you might want to take a look at https://github.com/opendatalu/gouvlu/blob/master/docker-compose.yml
Nicolas Bonnel
@nicolas-bonnel
yes I use docker, i'll check your link tomorrow. Thanks.
Nicolas Bonnel
@nicolas-bonnel
Ok that works better, the cookiecutter template should be updated with this configuration
On the live reload, is it possible to avoid hitting f5 to see updates ?
Nicolas Bonnel
@nicolas-bonnel
And how hard is it to switch to another framework ? I would like to use material, can I use something like this easily ?
Nicolas Bonnel
@nicolas-bonnel
One more question : how can I disable template cache ? I have added TEMPLATE_CACHE_DURATION = 0 in my config file, the cache_duration variable has a value of 0, yet my pages are not updated. I have to run a command udata cache flush
TROJETTE
@trojette
Hey everyone, is there a way to specify a CKAN API key in the CKAN harvester (@noirbizarre)??

@trojette Seems the extras key is missing from the API response. Maybe we need to check this attribute and have a fallback in cas it's m issing

I think my problem is related to this (and it is in a different CKAN instance)

@noirbizarre : you can reproduce the issue with http://agridata.tn for instance
image.png
same problem with http://www.openbaladiati.tn
image.png
Axel H.
@noirbizarre
@trojette No, it's not possible to provide an API key (which is only necessary for write operations). The extras is another problem (totally unrelated) which will be solved in the next udata-ckan release
Axel H.
@noirbizarre
@micael-grilo I just seen your PR. I'm currently reviewing it. We are going to release the 1.6 soon so if everything is OK, it might be included
In the meantime, don't forget to update portuguese translations, there are new strings to translate
TROJETTE
@trojette
great news, thanks @noirbizarre !
Eklou Kodjo A.
@ameklou
Screen Shot 2018-12-20 at 14.16.36.png
Hello all please i have this issue with the docker version of udata
Olivier
@oblab
@noirbizarre is it possible to open all organizations to any members (without sending request to join the organization) ?
Axel H.
@noirbizarre
Hi @oblab
Sorry, this is not currently possible because organisation defines permissions. What is you use case ?
TROJETTE
@trojette
Hello @noirbizarre ! How do I deactivate the ninja long-term caching system?