Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Oana Sipos
    @oana-sipos
    9.3.5.1
    what is your error precisely?
    Monica Giambitto
    @nirnaeth
    then it's not :D
    or maybe I'm just retarded.
    so, my error is
    Sequel::DatabaseError: PG::UndefinedObject: ERROR: constraint "email" of relation "users" does not exist
    if I look at how the constraint is named in my db
    Oana Sipos
    @oana-sipos
    Ah, I got that too
    Monica Giambitto
    @nirnaeth
    it's named users_email_key
    how did you solved it?
    because in theory the docs say that you are supposed to use the drop_constraint with the name of the constraint. and they don't match
    Oana Sipos
    @oana-sipos
    I have logged in in PG and created it myself
    so something like
    psql template1
    \l  # to list existing databases
    CREATE DATABASE organizations;
    \l  # to see the db in the list
    \q  # to quit
    Monica Giambitto
    @nirnaeth
    heavy lifting :D
    Oana Sipos
    @oana-sipos
    well, that fixed it :P
    Monica Giambitto
    @nirnaeth
    ahahahah :muscle:
    I was wondering if @splattael had no issue at all
    Peter Leitzen
    @splattael
    Hm I tested it on SQLite only. Sorry for that :worried:
    Monica Giambitto
    @nirnaeth
    yeah, just figured it out
    no problem :3
    Peter Leitzen
    @splattael
    PR is coming!
    Monica Giambitto
    @nirnaeth
    :runner:
    Peter Leitzen
    @splattael
    @jodosha Could you please merge jodosha/collaborators#4 soonish? ;)
    Monica Giambitto
    @nirnaeth
    now I also have to wait for the 404 to go away as @oana-sipos :)
    Peter Leitzen
    @splattael
    @nirnaeth @oana-sipos I've sent you both the secret
    via private chat
    Monica Giambitto
    @nirnaeth
    thank you!
    <3
    Peter Leitzen
    @splattael
    you're welcome :)
    Monica Giambitto
    @nirnaeth
    I am wondering if it's possible / ok to rewrite the first migration to make the constraint name explicit, so it doesn't change with the db
    Luca Guidi
    @jodosha
    @nickgnd @oana-sipos @nirnaeth I invited all of you.
    @/all All the members of this organization https://github.com/hanami-workshop are added as owners. That means, if you're in that org, you can add other people.
    Nicolò G.
    @nickgnd
    Hi @jodosha sorry for bothering you, but I didn't receive any invite :/
    Luca Guidi
    @jodosha
    @nickgnd resent
    Nicolò G.
    @nickgnd
    @jodosha arrived, thanks!!

    I notice a weird behaviour.

    If the Hanami app is started with different host and port values than the default ones, for ex. with hanami server --host <MY IP ADDRESS> -p 3000 and then, from the homepage I click on signup button, I went redirect to localhost:2300 instead of <MY IP>:3000.
    http://localhost:2300/auth/github/callback?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fv3%2Foauth%2F%23redirect-uri-mismatch&state=eea63689dea59cc34a10b5f76488fa1b7d4fc8439c498331

    OAuth returns a Redirect URI Mismatch

    Luca Guidi
    @jodosha
    @nickgnd This is how I configured the callback auth on GH: https://github.com/organizations/hanami-workshop/settings/applications/443165
    Search for "Authorization callback URL"
    @nickgnd Please do NOT change it or other people will see their app to break
    Nicolò G.
    @nickgnd
    @jodosha ah ok! I've got it, thanks for the patience :)
    Luca Guidi
    @jodosha
    @nickgnd No worries ;)
    Nicolò G.
    @nickgnd

    Little tip:

    To list the Github organizations which you belong you have to set the organization visibility to public for each one (by default I think is set to private).

    For example, for Hanami Workshop org you can update the settings a this link https://github.com/orgs/hanami-workshop/people

    Luca Guidi
    @jodosha
    @nickgnd Thank you :+1:
    olistik
    @olistik
    in a view I’d like to show the number of repositories belonging to a specific organization. I could create an helper that calls a Repository that performs the query and returns the count but I’m wondering wheter it’s better to decorate the object passed into the view or not.
    Lucas Hosseini
    @beauby
    @olistik How about exposing a variable/method?
    olistik
    @olistik
    @beauby I’m already exposing a list. For each item of this list I need to provide this counter as well
    so it’s a list of counters associated to the list of entities
    I guess it’s better to decorate the list I’m exposing to the view, so that it provides the info belonging to the Entity and the counter as well.
    Nicolò G.
    @nickgnd

    Hi folks :) In the past days I worked and completed the assignment. The app is very essential (and not production ready yet) but it fits the initial requirements.

    You can find the repository at this link: https://github.com/nickgnd/collaborators

    In the readme i tried to list the next steps, but they are just assumptions.
    https://github.com/nickgnd/collaborators#next-steps

    Every suggestion, open issue or PR is really appreciated. I would love to hear your opinions :) Thanks!