Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move electric_phoenix package into monorepo #2300

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

magnetised
Copy link
Contributor

plus fix electric client versioning and update to phoenix liveview 1.x

@magnetised magnetised force-pushed the magnetised/move-electric-phoenix-into-monorepo branch from 68dd3b5 to 233e8c9 Compare February 6, 2025 17:51

defp deps_for_env(:dev) do
[
{:electric, path: "../sync-service/", env: :dev, only: [:dev, :test], override: true},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This "workspace" approach is a bit tricky. Because presumably when :electric_phoenix is included as a dependency by someone's app, that app can be run in :dev mode.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey - yeah. i'm in "trail of destruction" mode. just trying stuff out and getting it working. no plans to include this in the final release.

plus fix electric client versioning and update to phoenix liveview 1.x
which pre-configures the shape, ignoring any table, where, columns etc
parameters
tables have to start with _ or a lowercase letter
reserved words have to be quoted
which supports pre-defined shapes

also remove the oneshot option as it's defunct now we're chunking
snapshots
making embedded versions support all the stuff that this hosted version
does
@magnetised magnetised force-pushed the magnetised/move-electric-phoenix-into-monorepo branch from 954bc77 to f0ac145 Compare February 20, 2025 17:13
@magnetised magnetised deployed to Pull request February 20, 2025 17:13 — with GitHub Actions Active
Copy link

netlify bot commented Feb 20, 2025

Deploy Preview for electric-next ready!

Name Link
🔨 Latest commit f0ac145
🔍 Latest deploy log https://app.netlify.com/sites/electric-next/deploys/67b762b41f267c000808feeb
😎 Deploy Preview https://deploy-preview-2300--electric-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants