Git Product home page Git Product logo

Comments (2)

seanmarcia avatar seanmarcia commented on June 9, 2024

I don't think we're using the partner_service -- I think we're using the Devise Invitable gem instead. If you look at the /api/vi/partners_controller.rb you'll see that we are creating users via invite!

    partner = Partner.invite!(email: partner_params[:email],
      diaper_bank_id: partner_params[:diaper_bank_id],
      diaper_partner_id: partner_params[:diaper_partner_id])

I think it might make more sense for this issue to determine if we are using the partner_service.rb and if not, remove it.

from partner.

dacur avatar dacur commented on June 9, 2024

I tested this locally. I created a Partner from the rails console using Partner.invite!(email: "[email protected]") - note: a bank_id and diaper_partner_id were not required. I was able to click on the link in the email, which then allowed me to set a password and log into the app.

If bank_id and diaper_partner_id are actually supposed to be required, then a bug should probably be logged. Otherwise, like Sean mentioned, I think the only thing left to do is determine whether or not you need the partner service (and I'm not familiar enough w/ this app yet to offer an opinion).

I also tried to create a partner manually without an email or password and received the errors @messages={:email=>["can't be blank"], :password=>["can't be blank"]}, so it seems like things may be set up correctly.

I hope this is helpful 😄

from partner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.