Commit Graph

37 Commits

Author SHA1 Message Date
Mike Dalessio edf6b53469 Introduce an "owner" role, and prevent it from being administered
to prevent the owner from being demoted or kicked out.

ref: https://app.fizzy.do/5986089/cards/3213
2025-11-29 14:13:29 -05:00
Mike Dalessio b78977f563 Make db/seeds.rb rerunnable when I want to add more cards. 2025-11-27 10:46:48 -05:00
Kevin McConnell b63ec319a2 Remove trailing newline (appease Rubocop) 2025-11-18 18:44:45 +00:00
Mike Dalessio 0e5d320045 Skip seeds in non-development environments
because we need to bootstrap the database in production
2025-11-18 11:54:35 -05:00
Mike Dalessio 7b1b5f464d Fix up seeds to work in a post-membership world. 2025-11-17 09:12:40 -05:00
Mike Dalessio 4ac87a9ad9 Fix seeds 2025-11-17 09:11:57 -05:00
Mike Dalessio 362427b383 More changes to get setup and tests to run 2025-11-17 09:11:42 -05:00
Mike Dalessio d41d50d52b Account.sole → Current.account
and some other de-tenant changes, including removing the controller
tenanting concerns
2025-11-17 09:11:40 -05:00
Kevin McConnell 76defb5b0b Update seeds from "Collection" to "Board" 2025-11-05 14:43:46 +00:00
Stanko K.R. fd7a9330e8 Remove email_address & password_digest from User 2025-11-04 07:20:16 +01:00
Jorge Manrubia f104e31f3f Remove unused method 2025-11-04 05:06:18 +01:00
Stanko Krtalić 98755844a1 Remove the internal API
* Bind sessions to identities
* Remove references to the identity token
* Move email changes to identity
* Move account menu into a turbo-frame
* Create tenants from a tenanted route
2025-10-31 16:26:08 +01:00
Stanko K.R. 201c3e27d3 Update tests for the Internal API 2025-10-31 16:26:08 +01:00
Stanko K.R. 79b012f319 Add Join Codes 2025-10-31 16:24:30 +01:00
Stanko K.R. c8843360fe Clean up and simplify magic links 2025-10-31 16:23:38 +01:00
Stanko K.R. 5cef4ffeb0 Add sign in flow using magic links 2025-10-31 16:22:12 +01:00
Mike Dalessio 73faf76976 Fix seeds script
broken in eb9ed86f
2025-10-07 02:50:15 -04:00
Mike Dalessio eb9ed86f64 seeds: make sure the admin has the secret password 2025-10-06 23:57:39 -04:00
Mike Dalessio 0425a83577 seeds: drop the 'bare' option 2025-10-06 23:44:42 -04:00
Mike Dalessio f26b0b7256 Rename accounts.tenant_id to external_account_id
and simplify the params to Account.create_with_admin_user
2025-10-03 17:21:01 -04:00
Mike Dalessio 8e0cb930af Delete SignalId concerns from the codebase
including Signup for now, will rebuild it with just QB
2025-10-03 14:06:51 -04:00
Mike Dalessio 320558919c Rename LOCAL_AUTHENTICATION to OSS_CONFIG 2025-10-02 16:44:24 -04:00
Mike Dalessio 47370084d2 Remove code related to Launchpad auth or 37id Users 2025-10-02 16:33:23 -04:00
Mike Dalessio d5a4239d19 Rename the queenbee_id and signal_user_id columns
to be more generic for the open-source release.

Find the signal account via Account#external_account

Find the signal user via User#external_user
2025-09-15 13:57:53 -04:00
Mike Dalessio 2630e4bd74 Extract 37id and QB controllers, models, and tests 2025-09-13 16:03:02 -04:00
Mike Dalessio 9db98366c3 Set up a "cleanslate" seed that has no cards and no collections
and only a single user, david@37signals.com

ref: https://fizzy.37signals.com/5986089/collections/7/cards/1318
2025-08-06 17:35:55 -04:00
Mike Dalessio 8e13ce5b78 Drop Current.account and just use Account.sole
I had reintroduced this in dacb53b8 after David removed it in
6bbf68a4, but now I agree we don't need it.

Also, fix a CORS error when trying to redirect a user to an untenanted
path after login (see
https://fizzy.37signals.com/5986089/collections/2/cards/1032).
2025-07-20 13:00:09 -04:00
Mike Dalessio a0d506435f Scatter Honcho seeds over a 30 day period
to make the activity page look a bit more realistic
2025-07-03 01:08:03 -04:00
Mike Dalessio 9c59a85abd Make sure seeds are creating sluggable tenants 2025-07-01 15:56:14 -04:00
Mike Dalessio a8a64a2384 Link the seeds up to the signal_id fixture data 2025-06-20 15:16:57 -04:00
David Heinemeier Hansson 4d1a1382e1 Fix seeds for new descriptions 2025-04-21 16:21:20 +02:00
David Heinemeier Hansson 539b26c7df Small enough DSL to inline it 2025-04-21 16:01:01 +02:00
David Heinemeier Hansson dc12751192 Have an empty first-run tenant too 2025-04-21 15:23:18 +02:00
David Heinemeier Hansson b6584ed655 Seed multiple seed accounts with basic DSL 2025-04-21 15:12:57 +02:00
Kevin McConnell 67f4038d46 Don't use fixtures as seeds
Otherwise each new deployment starts out with dev data instead of going
through the first run flow.
2025-01-06 10:58:09 +00:00
Jeffrey Hardy 117d5b1e2e Use bin/setup --reset to recreate the database 2024-08-16 17:06:51 -04:00
Kevin McConnell 564a0f48ae New Rails app 2024-06-21 13:19:56 +01:00