Comments (12)
@joemasilotti I recommend we enable devise :confirmable
from the start to limit SPAM. What do you think?
from railsdevs.com.
Definitely! Good call.
from railsdevs.com.
@joemasilotti What are your thoughts on having a User
model where all of the devise fields live, and then having Developer
and Business
(probably a better name for this class) subclasses which inherit from and belong_to User
. Otherwise, we'll end up with 2 devise models in the app.
from railsdevs.com.
Since here we are talking different type of roles and user and maybe different subscriptions- I'd suggest we Implement User and Accounts. Simply said, this will enable the user to have different accounts (and within those accounts to have different teams that he can invite) / different subscriptions for those accounts. This will solve one part: Business Accounts as for developers - they will be just a normal users for begining.
What do you guys think ?
from railsdevs.com.
I was hoping we wouldn't need accounts vs. users just yet, but it's always easier to build them now vs. later. So if someone throws together a PR with both built in, even at its simplest level (sign up, switching, etc.) I'm on board with that approach.
I also agree with Developer and Business (or other name) belonging to a User. But why would they also inherit from User? Can you explain that a little bit?
from railsdevs.com.
I think having one User model and then defining roles will fit perfectly for this scenario. Having 2 models looks a little bit like overkill for this. If the approach of using a single User model is good, I can run a PR for that.
Then again, I also think its best to setup all devise modules except omniauth in the migration file just incase we decide to use any for letter. We must not use it immediately but its good to have it now and as someone pointed above `confirmable is great to avoid spam.
Last question. Should I shoot this out with the free tailwindcss sign up?
from railsdevs.com.
Ideally, I want to see Accounts / Users built at the same time. But if someone submits a PR that only does User authentication that's a fine place to start.
I strongly prefer to keep code we aren't using out of the codebase, even if we "might" use it in the future. So for the migration, only adding what will be used for the active PR.
As for design, feel free to use Tailwind UI if you have a license. Or leave it undesigned and someone else can style it later.
from railsdevs.com.
Ideally, I want to see Accounts / Users built at the same time. But if someone submits a PR that only does User authentication that's a fine place to start.
I strongly prefer to keep code we aren't using out of the codebase, even if we "might" use it in the future. So for the migration, only adding what will be used for the active PR.
As for design, feel free to use Tailwind UI if you have a license. Or leave it undesigned and someone else can style it later.
Whoa, TailwindUI can be used in an open source project? I assumed public code would break the license, but it definitely seems to imply you can use it in projects such as this...
Do you want to manage rolls in a column directly in the model, or use something like rolify?
from railsdevs.com.
Yep!
You can:
Use the Components to create End Products that are open source and freely available to End Users.
from railsdevs.com.
Is anyone working on this ? @joemasilotti do you know ?
from railsdevs.com.
Not that I'm aware of!
from railsdevs.com.
I ended up pulling the trigger on this since it was blocking a few other issues/PRs.
The current implementation is a basic devise installation with a User
model. Accounts and roles can come later.
from railsdevs.com.
Related Issues (20)
- Progressively enhanced combobox for developer specialties HOT 5
- Fresh database reset and migration breaks seeds HOT 4
- Refactor Hired::Form into Developers::CelebrationPackageRequest HOT 1
- Schedule a call link HOT 4
- Research calendar links and scheduling UX HOT 4
- Extend an (unofficial) offer HOT 13
- Convert hiring agreement to in-app DocuSign HOT 8
- Notify Admin by tracking user's LinkedIn profile on its any experience changes. HOT 5
- Rework "stale" developers HOT 10
- Rework "Recently Active" badge HOT 5
- Fix duplicated protocol prefix in input fields HOT 2
- Account vs. User (take 2) HOT 6
- Rename form param key for Admin::Businesses::HiringInvoiceRequestNotification
- Error message when address is missing in `/developers/new` form is confusing. HOT 6
- Upgrade Rails version HOT 2
- Fixing Selenium::WebDriver::Error::UnknownError HOT 2
- Update Bundler version HOT 1
- New payment processor HOT 1
- Mail not being sent in conversations HOT 2
- 'Share link' Stimulus error on Firefox (Desktop) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from railsdevs.com.