Kevin McConnell
bd259f7795
Add optimistic pausing to avoid stale reads
...
Instead of writer pinning, we'll track the last transaction ID of each
write in the session. Then on each read we'll wait for the replica to
report that this transaction is available.
If it doesn't become available within a reasonable timeout, we'll
proceed anyway, and accept the possibility of a stale read.
The hope here is that most of the time, the replica is caught up in the
time between a write request and the following read request. If it's
not, we now have a little tolerance to wait for it, which hopefully
proves enough to stale reads are not encountered in normal use.
We also disable the writer affinity opt-out mechanism that we had
before, since we will no longer be using writer affinity at the load
balancer.
2025-11-24 13:29:52 +00:00
Mike Dalessio
e3d86bb21e
Clean up some spots where "current account" is ambiguous
...
Primarily this is in tests (which were caught by temporarily
introducing acts_as_tenant and enabling safety checks), but notably
action cable connections were not working properly, and that's now
fixed.
2025-11-17 09:12:41 -05:00
Mike Dalessio
2c765fa03f
rubocop: style fixes
2025-11-17 09:12:41 -05:00
Stanko K.R.
01367c097f
Fix skipped tests
2025-11-17 09:12:41 -05:00
Mike Dalessio
4d8b3ed719
rubocop: style fixes
2025-11-17 09:12:40 -05:00
Stanko K.R.
34d83aaa7c
Fix tests after the removal of memberships
2025-11-17 09:12:40 -05:00
Stanko K.R.
8fa9566c07
Update sign up
2025-11-17 09:12:40 -05:00
Mike Dalessio
dbf66f9a50
Constrain user queries to the current or relevant account
2025-11-17 09:11:57 -05:00
Mike Dalessio
c38f27f3b4
test: fix or skip signup controller tests
2025-11-17 09:11:47 -05:00
Mike Dalessio
905cf759d8
test: fixing or skipping more tests
2025-11-17 09:11:47 -05:00
Mike Dalessio
15b25faaa6
Remove untenanted controller code from fizzy-saas
2025-11-17 09:11:42 -05:00
Mike Dalessio
362427b383
More changes to get setup and tests to run
2025-11-17 09:11:42 -05:00
Jason Zimdars
1316fd6dcb
Further copy tweaks
2025-11-07 07:08:24 +01:00
Jason Zimdars
e7646fab96
More copy and design edits
2025-11-07 07:08:24 +01:00
Jason Zimdars
7a58c23e55
Copy edits for unified flow
2025-11-07 07:06:28 +01:00
Stanko K.R.
3f4d500103
Unify sign in and sign up
2025-11-07 07:06:25 +01:00
Jorge Manrubia
2bb90eab13
Use the sole collection as the root for a better onboarding experience for new accounts
2025-11-04 17:09:35 +01:00
Jason Zimdars
e1159a06aa
Merge branch 'main' into seed-new-accounts
2025-11-03 17:10:09 -06:00
Jason Zimdars
7d154b682e
Rename 'BOXCAR' to 'Fizzy'
...
Missed files
2025-11-03 16:30:44 -06:00
Jorge Manrubia
348e3a890b
Fix test
2025-11-02 09:45:11 +01:00
Jorge Manrubia
e726335833
WIP for seeding accounts
2025-11-02 00:05:38 +01:00
Stanko K.R.
ece9008459
Remove dead code
2025-10-31 16:28:08 +01:00
Stanko K.R.
1b1a17b939
Auto-generate account names
2025-10-31 16:26:08 +01:00
Jason Zimdars
1f58cd11b0
Show busy state when submitting forms
2025-10-31 16:26:08 +01:00
Stanko K.R.
452c6a8373
Rework the email change flow to tie to memberships
2025-10-31 16:26:08 +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
Jason Zimdars
440631c790
Style signup and completion
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
Stanko Krtalić
6efeb03252
Create system user with account ( #1345 )
...
* Create system user with account
* Update tests
2025-10-17 20:23:34 +02:00
Mike Dalessio
160a5b5269
Signup user flow
2025-10-08 12:09:17 -04:00
Mike Dalessio
a9cf7c2c7c
Re-introduce a Signup PORO model
2025-10-08 11:20:33 -04:00
Mike Dalessio
6a9b98e44f
Remove the mysql setup
...
no longer needed now that we're not connecting to 37id
2025-10-03 21:56:18 -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
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
f4e2fe31b4
dep: add refs to the fizzy-saas git dependencies
...
so that we can quickly switch the app between using the saas extension
and not. (Bundler will re-fetch the remote if the ref is not present.)
Also set the bundler config to auto-install missing dependencies.
2025-09-13 16:03:02 -04:00
Mike Dalessio
e7dcefb25b
Extract SignalUser and SignalAccount, and QB routes
2025-09-13 16:03:02 -04:00
Mike Dalessio
66075fc49e
Extract signal_id and queenbee initialization
2025-09-13 16:03:00 -04:00
Mike Dalessio
8ad0c65997
Extract saas bin/setup
2025-09-13 15:21:01 -04:00
Mike Dalessio
8325059f5f
Extract basecamp proprietary dependencies into fizzy-saas
...
and wire up the fizzy-saas gemspec and Gemfile
2025-09-13 15:21:01 -04:00
Mike Dalessio
c21b6d824d
Removing unnecessary test files
2025-09-13 15:21:01 -04:00
Mike Dalessio
3fe0a07cdc
rails plugin new gems/fizzy-saas --mountable
2025-09-13 15:21:01 -04:00