Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:18
    dependabot[bot] labeled #95
  • 01:18
    dependabot[bot] opened #95
  • 01:18

    dependabot[bot] on pip

    Bump ujson from 2.0.3 to 5.2.0 … (compare)

  • 01:13

    dependabot[bot] on pip

    (compare)

  • 01:13
    dependabot[bot] closed #217
  • 01:13
    dependabot[bot] commented #217
  • 01:13
    dependabot[bot] labeled #219
  • 01:13
    dependabot[bot] opened #219
  • 01:13

    dependabot[bot] on pip

    Bump ujson from 4.0.2 to 5.2.0 … (compare)

  • 01:11

    dependabot[bot] on pip

    (compare)

  • 01:11
    dependabot[bot] closed #253
  • 01:11
    dependabot[bot] commented #253
  • 01:11
    dependabot[bot] labeled #256
  • 01:11
    dependabot[bot] opened #256
  • 01:11

    dependabot[bot] on pip

    Bump ujson from 4.0.2 to 5.2.0 … (compare)

  • 01:11

    dependabot[bot] on pip

    (compare)

  • 01:11
    dependabot[bot] closed #222
  • 01:11
    dependabot[bot] commented #222
  • 01:11
    dependabot[bot] labeled #224
  • 01:11
    dependabot[bot] opened #224
bengwie
@bengwie
Ahhh.... I haven't selected the master branch on drop down. My bad, sorry I am a noob in open source contrib, please bear with me :D
Dylan Staley
@dstaley:matrix.org
[m]
No worries!
Ezequiel Schwartzman
@Zequez

Hi! I'm hitting a wall here trying to run Kinto locally. I'm running the server at localhost:8888 and the front-end at localhost:3000. CORS is enabled, but when I try to make any call the browser rejects the request with "(Reason: header ‘authorization’ is not allowed according to header ‘Access-Control-Allow-Headers’ from CORS preflight response)"

But I cannot seem to find ANY mention of setting the ‘Access-Control-Allow-Headers setting anywhere, so maybe I'm doing something wrong on the configuration?

Here is the configuration I'm using https://gist.github.com/Zequez/423989c8cadc30700ef76c535a6e389d

When I use the public server it runs without issues. Locally I already created the admin account, and from the admin panel I can browse without issues too.
Ezequiel Schwartzman
@Zequez
Update: I finally figured it out! It turns out I was using the URL http://localhost:8888/ for the server which was missing the version number, I had to use http://localhost:8888/v1. The Elm implementation didn't warn about it, but when I tried to use the Kinto JS implementation it did warned me and that's when I realized. Would be nice to make a pull request for that.
Dylan Staley
@dstaley:matrix.org
[m]
Glad you figured it out! And yes, please do make a pull request. I'm not sure who's maintaining the elm client, but I'm sure they'd appreciate it.
Ezequiel Schwartzman
@Zequez

I'm wondering something. I've made a deployment based on the kinto-scalingo package. I couldn't figure out how to successfully configure it to use paste.deploy on runapp.pyto run the app locally (I'm not a Python mastermind; and the server was just refusing to respond or log anything when ran from runapp.py). But I figured I could just replace the runapp.py with runapp.sh with the CLI Kinto command and change the Procfile to use that.

Afterwards I could run it locally and I also successfully deployed it. Am I missing something here? What's the point of the overhead of running it from Python rather than just using a CLI command? Does Paste Deployment adds anything of value here?

Dylan Staley
@dstaley:matrix.org
[m]
@Zequez if you ran run the app with the CLI that's totally fine, but most production deployments use WSGI instead of the built-in server (which is what the CLI uses)
Sergey Maranchuk
@slav0nic
@leplatrem is here any integration tests example with real kinto instance and requests without mocking?
h4xhor
@h4xhor
Hi, just want to update that I'm no longer going to write a Kinto package for Flutter. Sorry.
Sergey Maranchuk
@slav0nic
@leplatrem have you seen this project https://github.com/plone/guillotina ? looks interesting ( if not ZCA :P)
Mathieu Leplatre
@leplatrem
@slav0nic haha, yeah! that's funny you found it, because we used to work together with Eric, one of the main author of guillotina. And both Kinto and guillotina come out from the same conversations at lunch :) :)
Sergey Maranchuk
@slav0nic
yep, i like folder/item concept more then bucket/collection/record. In our current project i implemented separate backend for storing trees in kinto (based on postgres ltree). If offline-first support is not needed, guillotina looks a little more interesting (from my point of view)
Sergey Maranchuk
@slav0nic
@leplatrem https://docs.pylonsproject.org/projects/pyramid/en/latest/whatsnew-2.0.html#upgrading-authentication-authorization any plans for upgrade auth politics in kinto? Looks like it's also affected multiauth lib
Mathieu Leplatre
@leplatrem
we have to do it! I'm currently on holiday, but that's something I can look up when back to work
simkimsia
@simkimsia

i have a question as a complete newbie to Kinto. So I have a Django web app using Postgres RDBMS. So i want to have at least some pages to be offline first and sync to the RDBMS.

Given thatI used Django and most of the data I have is in typical RDBMS already and it has its own authentication architecture, how do I make it work with Kinto? GOod thing that Kinto uses postgres as well. but I see that it uses JSON store, so I am now a bit lost.

Dylan Staley
@dstaley:matrix.org
[m]
@simkimsia great question! Kinto uses its own database within your Postgres instance. It wouldn't have access to the tables and records from your Django installation.
Azat
@azataiot
.properties['principals'].description should be string what dose this mean in the kinto admin page ?
hello everyone, I am now really confused with the Kinto permissions .....
Mathieu Leplatre
@leplatrem
Hello! This does not look like an expected error in the admin... could you please open an issue with some steps to reproduce and/or screenshots please?
Sergey Maranchuk
@slav0nic
@leplatrem, kinto-redis still uses ujson (so, pip install kinto[redis] is broken)
6 replies
Sergey Maranchuk
@slav0nic
leplatrem, tnx, username is same. But personally we using kinto-redis only for caching backend
Mathieu Leplatre
@leplatrem
makes sense :)
I cannot maintain the packages that we don't use in production anymore, so I'm happy if you can give them some love if you use them (same for kinto-ldap)
vinod-mortgagekart
@vinod-mortgagekart
Hi everyone, I am working ModuleNotFoundError: No module named 'kinto.core'; 'kinto' is not a package
on a project using kinto,for python using kinto_http, I wanted to add filters to my query, from the documentation I understood that we have to use from kinto.core import resource
but whenever I try to import this, it gives me an error of - ModuleNotFoundError: No module named 'kinto.core'; 'kinto' is not a package
I have installed kinto using pip3 install kinto
Can anyone help me to debug this please
Chris Allen Moore
@chrisallenmoore
Hi, is it possible to clear only deleted records from kinto.js? Maybe using a filter or something?
Chris Allen Moore
@chrisallenmoore
I figured out a way... just call await <collectionName>.resetSyncStatus(); https://kintojs.readthedocs.io/en/latest/api/#the-case-of-a-newflushed-server
vinod-mortgagekart
@vinod-mortgagekart
Hi, does anyone know how to do sub object filtering using kinto http python api?
Mathieu Leplatre
@leplatrem
Have you tried ?field.subfield=value ?
vinod-mortgagekart
@vinod-mortgagekart
Yeah but for kinto python http how will that work?
while we use the function get_records and specify the collections and buckets, we can specify filters for higher level values using key = value as one of the parameter. But for sub object how to do it?
For example - client.get_records(bucket='default', collection='test',_sort = 'updatedAt', key = value)
Mathieu Leplatre
@leplatrem
Something like get_records(bucket='default', collection='test',_sort = 'updatedAt', **{"field.subfield": 42}) maybe?
If you find a limitation in the python client with this, don't hesitate to submit a pull-request and we can merge/release it quite rapidly
vinod-mortgagekart
@vinod-mortgagekart
actually the key is not in "
vinod-mortgagekart
@vinod-mortgagekart
Sorry, my bad, this worked @leplatrem thanks alot! Maybe we need to add this to docs, shall I create a pull request for the same?
Mathieu Leplatre
@leplatrem
Nice :) Yes please! Add it whereever you wish you would have found it ;)
vinod-mortgagekart
@vinod-mortgagekart
Yes, sure thanks!
Also do we have a slack channel? The current link is not accessible :(
vinod-mortgagekart
@vinod-mortgagekart
Also, @leplatrem wanted to know if we have aggregations functions such as what is average of a field throughout all the records?
Dylan Staley
@dstaley:matrix.org
[m]
We don't use Slack anymore. We use Gitter/Matrix
vinod-mortgagekart
@vinod-mortgagekart
Okay, thanks @dstaley:matrix.org !
Mathieu Leplatre
@leplatrem
Quick poll: Would anyone be impacted if we stopped publishing the kinto-admin as a React component on npm? (/cc @dstaley:matrix.org)
Dylan Staley
@dstaley:matrix.org
[m]
I would not be impacted, so my vote is let's stop.
grahamalama
@grahamalama
:tada:
Vinod Kamat
@vinod-mortgagekart_gitlab
Hi, I was inserting the data into Kinto using kinto-http in python. I used client.create_record functionality to insert records. I inserted 2 records simultaneously, the last modified associated with both the records vary alot. They differ by 5-6 hrs
3 replies
What is the reason behind it? This happens in node.js as well
new Date(1649782097790);
Tue Apr 12 2022 22:18:17 GMT+0530 (India Standard Time)
new Date(1649801897791);
Wed Apr 13 2022 03:48:17 GMT+0530 (India Standard Time)
new Date(1649821697792);
Wed Apr 13 2022 09:18:17 GMT+0530 (India Standard Time)
This is the example of 3 consecutive records