Skip to content

Commit 6bef0dc

Browse files
balegasclaude
andcommitted
fix: Revert database port back to 55555
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a7fdf0d commit 6bef0dc

8 files changed

Lines changed: 28 additions & 8 deletions

File tree

.claude/settings.local.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(mix deps.get:*)",
5+
"Bash(mix test)",
6+
"Bash(MIX_ENV=test mix deps.get:*)",
7+
"Bash(mix start_dev:*)",
8+
"Bash(docker compose:*)",
9+
"WebFetch(domain:raw.githubusercontent.com)",
10+
"WebFetch(domain:api.github.com)",
11+
"Bash(mix test:*)",
12+
"Bash(git add:*)",
13+
"Bash(git commit -m \"$\\(cat <<''EOF''\nfix: Update Electric 1.2.x API compatibility\n\n- Update StatusMonitor.mark_connection_pool_ready/2 to /3 \\(new pool type arg\\)\n- Remove ShapeStatus.opts/1 calls \\(function removed in Electric 1.2.x\\)\n- Fix storage format to use keyword lists instead of maps\n- Implement Inspector.load_supported_features/1 callback\n- Implement PublicationManager.wait_for_restore/1 callback\n- Update test helpers for Electric 1.2.x storage format\n- Change default Postgres port from 55555 to 54321\n- Update application tests for Electric 1.2.x compatibility\n\nNote: Sandbox mode is not yet compatible with Electric 1.2.x due to\nElectric.Replication.Supervisor being removed. This will be addressed\nin a future release.\n\n🤖 Generated with [Claude Code]\\(https://claude.com/claude-code\\)\n\nCo-Authored-By: Claude <noreply@anthropic.com>\nEOF\n\\)\")",
14+
"Bash(git push:*)",
15+
"Bash(gh pr create --title \"Update to Electric 1.2.x and electric_client 0.8.0\" --body \"$\\(cat <<''EOF''\n## Summary\n\nUpdates Phoenix.Sync to work with Electric 1.2.x and electric_client 0.8.0.\n\n### Changes\n\n- **Breaking**: Updated `electric` dependency to `~> 1.2.4` \\(dropping support for Electric 1.1.x\\)\n- **Breaking**: Updated `electric_client` dependency to `~> 0.8.0`\n- Removed `http_api_num_acceptors` workaround \\(fixed upstream in Electric via #2863\\)\n- Updated `Electric.StatusMonitor.mark_connection_pool_ready/2` calls to `/3` \\(Electric 1.2.x API change\\)\n- Updated storage configuration to use keyword list format \\(Electric 1.2.x requirement\\)\n- Implemented `Inspector.load_supported_features/1` callback \\(new in Electric 1.2.x\\)\n- Implemented `PublicationManager.wait_for_restore/1` callback \\(new in Electric 1.2.x\\)\n- Updated storage configuration tests to handle both keyword list and map formats\n\n### Known Issues\n\n- **Sandbox mode** \\(`mode: :sandbox`\\) is not yet compatible with Electric 1.2.x due to internal architecture changes \\(`Electric.Replication.Supervisor` was removed\\). Sandbox mode will be updated in a future release.\n\n### Migration Guide\n\nIf upgrading from Phoenix.Sync 0.6.1 or earlier:\n\n1. **Electric 1.2.x Required**: This version requires Electric 1.2.4 or later. Electric 1.1.x is no longer supported.\n\n2. **Deprecated Configuration Options**:\n - `experimental_live_sse` has been replaced by `live_sse` in Electric 1.2.x\n - The `ELECTRIC_EXPERIMENTAL_MAX_SHAPES` environment variable has been retired; use the `max_shapes` configuration option instead\n\n3. **New Configuration Options** \\(Electric 1.2.x\\):\n - `live_sse`: Enable server-sent events for real-time updates\n - `replication_idle_timeout`: Automatically close database connections during idle replication streams\n\n## Test plan\n\n- [x] Application tests pass \\(22/22\\)\n- [ ] Sandbox tests - skipped \\(requires Electric 1.2.x architecture update\\)\n- [ ] Integration tests with real Electric 1.2.x server\n\n🤖 Generated with [Claude Code]\\(https://claude.com/claude-code\\)\nEOF\n\\)\")",
16+
"Bash(mix format:*)",
17+
"Bash(git commit:*)"
18+
]
19+
}
20+
}

apps/phoenix_sync_example/config/dev.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ config :phoenix_sync_example, PhoenixSyncExample.Repo,
66
password: "password",
77
hostname: "localhost",
88
database: "phoenix_sync_example_dev",
9-
port: 54321,
9+
port: 55555,
1010
stacktrace: true,
1111
show_sensitive_data_on_connection_error: true,
1212
pool_size: 10

apps/phoenix_sync_example/config/test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ config :phoenix_sync_example, PhoenixSyncExample.Repo,
1010
password: "password",
1111
hostname: "localhost",
1212
database: "phoenix_sync_example_test#{System.get_env("MIX_TEST_PARTITION")}",
13-
port: 54321,
13+
port: 55555,
1414
pool: Ecto.Adapters.SQL.Sandbox,
1515
pool_size: System.schedulers_online() * 2
1616

apps/plug_sync/config/dev.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ case System.get_env("PHOENIX_SYNC_MODE", "embedded") do
1616
password: "password",
1717
hostname: "localhost",
1818
database: "electric",
19-
port: 54321
19+
port: 55555
2020

2121
_ ->
2222
IO.puts("Starting in embedded mode")
@@ -31,5 +31,5 @@ case System.get_env("PHOENIX_SYNC_MODE", "embedded") do
3131
password: "password",
3232
hostname: "localhost",
3333
database: "plug_sync",
34-
port: 54321
34+
port: 55555
3535
end

apps/plug_sync/config/test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ config :plug_sync, PlugSync.Repo,
77
password: "password",
88
hostname: "localhost",
99
database: "plug_sync_test",
10-
port: 54321,
10+
port: 55555,
1111
pool: Ecto.Adapters.SQL.Sandbox

config/runtime.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Config
33
if config_env() == :test do
44
# port = 3333
55
default_database_url =
6-
"postgresql://postgres:password@localhost:54321/phoenix_sync?sslmode=disable"
6+
"postgresql://postgres:password@localhost:55555/phoenix_sync?sslmode=disable"
77

88
database_url = System.get_env("DATABASE_URL", default_database_url)
99

config/test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ db_config = [
1717
password: "password",
1818
hostname: "localhost",
1919
database: "phoenix_sync",
20-
port: 54321
20+
port: 55555
2121
]
2222

2323
# configure the support repo with random options so we can validate them in Phoenix.Sync.ConfigTest

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
POSTGRES_USER: postgres
77
POSTGRES_PASSWORD: password
88
ports:
9-
- "54321:5432"
9+
- "55555:5432"
1010
volumes:
1111
- ./postgres.conf:/etc/postgresql.conf:ro
1212
tmpfs:

0 commit comments

Comments
 (0)