Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 06:18
    dependabot-preview[bot] synchronize #910
  • 06:18

    dependabot-preview[bot] on npm_and_yarn

    Bump @rollup/plugin-typescript … (compare)

  • 06:18
    dependabot-preview[bot] edited #910
  • 06:17
    dependabot-preview[bot] edited #910
  • 06:17

    dependabot-preview[bot] on npm_and_yarn

    (compare)

  • 06:17

    dependabot-preview[bot] on master

    Bump rollup from 2.36.2 to 2.37… (compare)

  • 06:17
    dependabot-preview[bot] closed #935
  • 06:15
    github-actions[bot] commented #935
  • 06:13
    dependabot-preview[bot] labeled #935
  • 06:13
    dependabot-preview[bot] opened #935
  • 06:13

    dependabot-preview[bot] on npm_and_yarn

    Bump rollup from 2.36.2 to 2.37… (compare)

  • Jan 19 05:43
    dependabot-preview[bot] synchronize #910
  • Jan 19 05:43

    dependabot-preview[bot] on npm_and_yarn

    Bump @rollup/plugin-typescript … (compare)

  • Jan 19 05:43
    dependabot-preview[bot] edited #910
  • Jan 19 05:42
    dependabot-preview[bot] edited #910
  • Jan 19 05:41

    dependabot-preview[bot] on npm_and_yarn

    (compare)

  • Jan 19 05:41

    dependabot-preview[bot] on master

    Bump eslint-config-prettier fro… (compare)

  • Jan 19 05:41
    dependabot-preview[bot] closed #934
  • Jan 19 05:40
    github-actions[bot] commented #934
  • Jan 19 05:38
    dependabot-preview[bot] labeled #934
Chew Guan Xun
@guanxun14
Thanks, but I don't think that's what I'm looking for as the remotely deleted record is meant to be deleted locally as well.
Chew Guan Xun
@guanxun14
@dstaley any ideas?
Sergey Maranchuk
@slav0nic
Dylan Staley
@dstaley
@guanxun14 unfortunately it sounds like you might need to put together a reproducible demo in order for us to track this down. I delete the last record in a collection all the time and don't run into any issues, so there's something funky going on in your setup I think. Have you tried running your app against the public Kinto instance (if that's even possible for your app that is)?
Dylan Staley
@dstaley
Another thing I'd look into is whether your database is retaining deleted records. By default, Kinto keeps a record of all deleted records.
Chew Guan Xun
@guanxun14

Ok, I've isolated its occurrence to a custom collection that I create upon an account registration notification, via a plugin:

account_email_slug = slugify(registered_email)

storage_backend.create(
    resource_name='collection',
    parent_id='/buckets/custombucket',
    obj={'id': account_email_slug}
)
permission_backend.add_principal_to_ace(
    '/buckets/custombucket/collections/'+email_slug,
    'record:create',
    'account:'+registered_email
)

I wanted to do it this way instead of using the default bucket to have finer grain control over the user's permissions on the server side.

Will dig further into it, but I guess if I can't figure it out then I might settle for going with the default bucket, and handling permissions on the client.

Thanks @slav0nic @dstaley for the guidance, felt like I was at my wit's end earlier but now I have some direction. :)

Greg Koval
@gregg00
Hello,
Does anyone have issues that they are working on that they would like some help with? I'm new to kinto/opensource but willing to learn and put time in. Thanks!
Dylan Staley
@dstaley
Hi @gregg00! What programming languages are you looking to contribute in? Kinto has projects in almost every language, and I'd be happy to help point out some places where you can contribute.
h4xhor
@h4xhor

Hi Kinto community. I'm so glad I found this Gitter channel!

In https://www.kinto-storage.org/ are you able to update the footer of the site to remove Slack (which I presume was shutdown) and add Gitter there in it's place (as it took me a while to find this Gitter channel through the docs).

I think I've found a bug on Kinto version 13.6.6 (as version 13.6.5 didn't have this error). I'm not sure where's the best place to post this (here or on GitHub for future reference?)

When I try to access the Kinto web based admin dashboard I get this error at the browser console:

==========

--- Error Start ---

react-dom.production.min.js:209 Error: Invariant failed
at t.a (tiny-invariant.esm.js:9)
at Switch.js:17
at vu (react-dom.production.min.js:268)
at ls (react-dom.production.min.js:246)
at us (react-dom.production.min.js:246)
at Zu (react-dom.production.min.js:239)
at Qu (react-dom.production.min.js:230)
at Is (react-dom.production.min.js:281)
at react-dom.production.min.js:284
at ts (react-dom.production.min.js:240)
eu @ react-dom.production.min.js:209
react-dom.production.min.js:256 Uncaught Error: Invariant failed
at t.a (tiny-invariant.esm.js:9)
at Switch.js:17
at vu (react-dom.production.min.js:268)
at ls (react-dom.production.min.js:246)
at us (react-dom.production.min.js:246)
at Zu (react-dom.production.min.js:239)
at Qu (react-dom.production.min.js:230)
at Is (react-dom.production.min.js:281)
at react-dom.production.min.js:284

at ts (react-dom.production.min.js:240)

==========

--- Error End ---

I confirmed the bug on these two platforms:

Platform 1

  • Kinto version 13.6.6
  • In a Python virtual environment with Python version 3.8.5
  • pip 20.1.1
  • Operating System: Arch Linux

Platform 2

  • Kinto version 13.6.6
  • In a Python virtual environment with Python version 3.8.2
  • pip 20.1.1
  • Operating System: Ubuntu 20.04 LTS

It was previously working before on Kinto version 13.6.5 and I can confirm that after downgrading from Kinto version 13.6.6 to version 13.6.5 the web admin works again. I used this pip command to downgrade:
(venv) $ pip install "kinto<=13.6.5" --force-reinstall

Many thanks in advance!

Dylan Staley
@dstaley
@h4xhor thank you for the report! I must have missed the footer when updating things. Could you file an issue in the kinto-admin repo and tag me? I can take a look tomorrow. It looks to be an issue with the admin, but it could also be an issue with kinto. Once I dig into it I can confirm.
Chew Guan Xun
@guanxun14

may I ask what exactly does the expectedTimestamp option of the sync method in kinto.js do? The description is unfortunately a little unclear:

A timestamp to use as a "cache busting" query parameter.

Looking at the source, it looks like it passes the timestamp as a filter to server call for listing records, but I'm not sure it about beyond that.

If it helps, i'm trying to handle the case of syncing a local change that was made while a sync call was already ongoing, after that first sync completes. Passing an expectedTimestamp value seems to address the issue, but I want to be sure I'm using it correctly.

thank you!

Dylan Staley
@dstaley
Actually I think the description is accurate. It's just a query parameter that ensures the response isn't from the cache
As far as I can tell, Kinto server doesn't process that parameter
Chew Guan Xun
@guanxun14
Hmm ok gotcha, thanks! :)
h4xhor
@h4xhor
Hi @dstaley thanks very much for looking into this. I've submitted the Kinto/kinto-admin#1469.
Philipp Krüger
@matheus23
Hi! We're trying to talk to a local kinto container. Issuing a PUT request to one of the collection's records, the browser runs a CORS preflight OPTIONS request, but Kinto returns a 400 status code. Running any OPTIONS request to the same url from curl results in a 400 status code too. Running a request as GET works, though.

Because the CORS preflight doesn't succeed with 200, firefox blocks our actual request.

Why does Kinto return a 400 on an OPTIONS request?

$ curl --header "Origin: http://localhost:3000/" --header "Access-Control-Request-Method: PUT"  -X OPTIONS "http://localhost:8888/v1/buckets/flatmate/collections/items/records"
{"code":400,"errno":107,"error":"Invalid parameters","message":"Access-Control-Request-Method in header: Method not allowed","details":[{"location":"header","name":"Access-Control-Request-Method","description":"Method not allowed"}]}
$ curl --header "Origin: http://localhost:3000/" --header "Access-Control-Request-Method: GET"  -X OPTIONS "http://localhost:8888/v1/buckets/flatmate/collections/items/records"
null
Philipp Krüger
@matheus23
Nevermind! We solved the issue
the PUT method needs to be run against buckets/flatmate/collections/items/records/12344 with a record id!
h4xhor
@h4xhor
Hi is there any plans to make a Kinto package for Flutter? If not I was thinking maybe I'll attempt to write one with
idb_sqflite - Indexed DB for flutter on top of sqflite
Mathieu Leplatre
@leplatrem
Not that I know of! But it could give a great boost to the project :)
Dylan Staley
@dstaley
@leplatrem @Natim @glasserc just a heads up that I reached out to npm support about gaining ownership of the @kinto npm org. I assumed someone was just keeping the name, but npm support said the org actually has access to some public packages, so there's a chance it's actually one of you. So if you get an email from npm support about it, feel free to tell them that you're already in touch with me 🙂
Mathieu Leplatre
@leplatrem
Hmm, i didn't know there were orgs on npm :sweat:
Thanks for the heads up! I'll watch my emails ;)
I've been working towards this for a good while: Kinto now runs on React Native!
Dylan Staley
@dstaley:matrix.org
[m]
Hello from matrix!
Mathieu Leplatre
@leplatrem
Hello! :)
Jordi Collell
@jordic
hello
Sergey Maranchuk
@slav0nic
why kinto-ldap repo was archived?
Dylan Staley
@dstaley:matrix.org
[m]
I'm not exactly sure. @leplatrem was that you?
Rodwan Bakkar
@Rodwan-Bakkar
Hi all, my name is Rodwan, I am new here, could someone please tell if there is a guide for setting kinto with pycharm for debug and development?
Dylan Staley
@dstaley:matrix.org
[m]
Hello! I don't believe we have any documentation regarding PyCharm.
Rodwan Bakkar
@Rodwan-Bakkar
Hi Dylan, what do you use for development?
Dylan Staley
@dstaley:matrix.org
[m]
I use VS Code. I'm familiar with the JetBrains IDEs though, and they're a great choice if that's what you're familiar with!
Rodwan Bakkar
@Rodwan-Bakkar
yeah, I am just trying to set kinto for debug, I use pycharm but vscode is also fine
I found this in the documentation but it does not explain how to start debugging https://docs.kinto-storage.org/en/latest/community.html#how-to-contribute
Dylan Staley
@dstaley:matrix.org
[m]
Are you looking to use a debugger like pdb, or are you just looking to run unit tests?
Rodwan Bakkar
@Rodwan-Bakkar
I want to contribute so I want basically to make some request and debug it so I can get a better idea about the code
Dylan Staley
@dstaley:matrix.org
[m]
Ah gotcha! Yeah I don't think we have any docs on interactive debugging, but I can't think of anything Kinto is doing that would prevent you from using any generic python debugger. Kinto uses Pyramid, so this might be useful: https://docs.pylonsproject.org/projects/pyramid-cookbook/en/latest/debugging/debugging_pyramid.html
Rodwan Bakkar
@Rodwan-Bakkar
yeah, thank you!! I will check, could you please also indicate me the main file in the project where the execution start?
Dylan Staley
@dstaley:matrix.org
[m]
I don't know off the top of my head, but I'll take a look and let you know in a little while.
Rodwan Bakkar
@Rodwan-Bakkar
thank you very much!
Dylan Staley
@dstaley:matrix.org
[m]
This is the first entry point into Kinto when running as a wsgi application https://github.com/Kinto/kinto/blob/88353d06bfef508b7c3f5dd561ba56de28df3566/kinto/__init__.py#L42
Rodwan Bakkar
@Rodwan-Bakkar
Thank you Dylan
Dylan Staley
@dstaley:matrix.org
[m]
You're welcome!
Rodwan Bakkar
@Rodwan-Bakkar
I added this to the main.py file, in the same path of the init.py file, and ran it in debug mode passing the parameter 'start' and I called http://localhost:8888/v1/ and I got a result
where in the code can I put a breakpoint to catch this request, in the pyramid endpoint ??
1 reply
I added this*
if name == 'main':
main()