Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Kenneth Endfinger
    @kendfinger
    Hello!
    Rob Becker
    @robbecker-wf
    Hi!
    Kenneth Endfinger
    @kendfinger
    @AppleEducate Not sure if you use Gitter much but figured I’d invite you here since you use the Tesla library the most :)
    Rob Becker
    @robrbecker
    Github.dart was moved into the SpinlockLab github org. I’ve moved CI to run via Github Actions but I don’t have permissions to fully turn off Travis CI. I’ve removed the .travis.yaml which mostly does it, but it still gets a request which fails to start a build. Does anyone have a moment at some point to turn it off?
    Logan Gorence
    @lgorence
    I just turned it off
    Rob Becker
    @robrbecker
    Thanks!
    Rob Becker
    @robrbecker
    Huh .. looking at the graphql package .. it even uses GitHub in their example code. But then writing queries looks error prone https://pub.dev/packages/graphql#usage
    Joel Trottier-Hebert
    @Pacane
    I wish the graphql package used a staticly typed API and generated the string with code gen
    but I'm not really proficient with graphql, so that might be non-standard or something
    Rob Becker
    @robrbecker

    I wish the graphql package used a staticly typed API and generated the string with code gen

    Me too. The whole writing graphql queries as strings seems icky to me

    Rob Becker
    @robrbecker
    Does Spinlock Labs have a website or domain to set up a verified publisher? https://medium.com/dartlang/verified-publishers-98f05466558a
    If not, I’d be willing to set one up
    Logan Gorence
    @lgorence
    We have spinlock.sh, @kendfinger has control over it
    Kenneth Endfinger
    @kendfinger
    Oh awesome, yep, I can try to get this figured out
    I'm verifying it now
    Kenneth Endfinger
    @kendfinger
    @lgorence @robrbecker Both of you have been invited to the publisher that is now verified
    As well as @Pacane
    Kenneth Endfinger
    @kendfinger
    I also created a blank site in case we want to make one: https://github.com/SpinlockLabs/spinlock.sh
    Rob Becker
    @robrbecker
    Thanks! I’m in and have added github.dart to the publisher.
    Rob Becker
    @robrbecker
    @filiph ping on SpinlockLabs/github.dart#173. Just needs a master merge and it should be good to go.
    Rob Becker
    @robrbecker
    Anyone @here opposed to bumping the minimum of the http package to ^0.12.0 and using http pacakge directly to handle io vs web? This would remove the platform specific libraries and likely move the io and web utils to separate entry points.
    Alex Vincent
    @AlexVincent525
    Hi everyone. Is there a sample or document about how to use the EventPoller? It's just hard to figured when it comes to pagination, those stream too. And I can't find a useful wiki or demo. Hope you guys can help me this.
    Also there's a PR implemented markThreadRead.
    There's an app i'm working on it, which use this package. The pagination REALLY makes me confused :(
    Rob Becker
    @robrbecker
    Hi Alex, thanks for your contribution! I gave your PR a review.
    Looks like there’s a brief example of the event poller here https://github.com/SpinlockLabs/github.dart/blob/master/test/experiment/polling.dart
    Rob Becker
    @robrbecker
    You can call one of the github.activities.pollXXX methods to get an EventPoller
    Then you’d call the start method to have it start polling github for any updates https://github.com/SpinlockLabs/github.dart/blob/master/lib/src/common/activity_service.dart#L317
    You can configure some things in the start method Stream<Event> start({bool onlyNew = false, int interval, DateTime after}) {
    how frequently to poll (send a network request to GitHub)
    Only report new items .. and only after a certain time
    it returns a Stream of Events which you subscribe to by calling listen and give it a callback to be called whenever a new activity that you are polling for occurs.
    Rob Becker
    @robrbecker
    I hope that helps @AlexVincent525. What’s going on with pagination that I might be able to help with?
    Alex Vincent
    @AlexVincent525
    Thx man! Pagination goes like this: when I open the app, I want to get events start from a weeks ago or something, then stop listening to the new event, cause this can be triggered from the user.
    Most of the API will done this with Future and return count or total properties for pagination, idk how to implement this in Stream and the EventPoller.
    Alex Vincent
    @AlexVincent525
    Though, I done it with some timer manually stop the stream...
    To be honest, there's a lot of obvious mistake in this package...I'll PR them if I found them ASAP.
    Rob Becker
    @robrbecker
    Thanks for digging in @AlexVincent525 . I’m not the original author, but I’ve been helping to maintain it and slowly improve it. I’d be glad to work with you on improving things for your use case.
    Alex Vincent
    @AlexVincent525
    @robrbecker You can find some implement in my repo https://github.com/fluttercandies/gitcandies
    :worried: I just wondering why this package was developed for about 4 years and still acting like this...
    Rob Becker
    @robrbecker
    You can see the history in github https://github.com/SpinlockLabs/github.dart/graphs/contributors. Most of the code was developed 4+ years ago and it has only been very lightly maintained since. I recently started as a maintainer a few months ago. It’s all open source and we’re all volunteers. This isn’t an official github project or maintained by a company.
    These sort of projects depend on those that use it to report issues and put up fixes like you did, so thank you!
    Rob Becker
    @robrbecker
    notice: I published 5.5.0 and started a dev branch for the next major release https://github.com/SpinlockLabs/github.dart/tree/dev
    I’ve refactored to one cross platform entry point and plan to do some more cleanup and testing. I’ll release a 6.0 beta before going to stable if people want to test things out.
    Rob Becker
    @robrbecker
    Heads up 6.0 just released. Please file any bugs or API inconsistencies.
    Also, Pub now properly detects the library as working in all environments
    Rob Becker
    @robrbecker
    Should https://github.com/DirectMyFile/console.dart be transferred into Spinlock labs?