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

add abstraction to manage shape request-response behaviour #2273

Merged
merged 25 commits into from
Feb 6, 2025

Conversation

magnetised
Copy link
Contributor

@magnetised magnetised commented Jan 30, 2025

Used by #2297

Copy link

netlify bot commented Jan 30, 2025

Deploy Preview for electric-next ready!

Name Link
🔨 Latest commit c0e4d05
🔍 Latest deploy log https://app.netlify.com/sites/electric-next/deploys/67a36d6db333060008b40b6b
😎 Deploy Preview https://deploy-preview-2273--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.

@magnetised magnetised force-pushed the 2256-allow-for-a-pure-elixir-api branch 4 times, most recently from 9917d15 to 13bb6c4 Compare February 4, 2025 11:03
@magnetised magnetised marked this pull request as ready for review February 4, 2025 16:13
@magnetised magnetised requested a review from icehaunter February 4, 2025 16:29
@magnetised magnetised force-pushed the 2256-allow-for-a-pure-elixir-api branch from ea6edeb to c0e4d05 Compare February 5, 2025 13:53
@magnetised magnetised requested a review from icehaunter February 5, 2025 14:25
Copy link
Contributor

@icehaunter icehaunter left a comment

Choose a reason for hiding this comment

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

This a great change. I think this encapsulation is worth it and makes parts of the flow much cleaner. I think some nested structure updates are a bit hard to follow at times, but that's OK. I have some nitpicks, with only blocking request being the one about exposing stacktraces

packages/sync-service/test/support/component_setup.ex Outdated Show resolved Hide resolved
packages/sync-service/lib/electric/shapes/api.ex Outdated Show resolved Hide resolved
packages/sync-service/lib/electric/shapes/api/response.ex Outdated Show resolved Hide resolved
packages/sync-service/lib/electric/shapes/api.ex Outdated Show resolved Hide resolved
packages/sync-service/lib/electric/shapes/api.ex Outdated Show resolved Hide resolved
packages/sync-service/lib/electric/shapes/api.ex Outdated Show resolved Hide resolved
packages/sync-service/lib/electric/shapes/api.ex Outdated Show resolved Hide resolved
Co-authored-by: Ilia Borovitinov <[email protected]>
add some convenience functions to clean up the api
just return a response from do_serve_shape_log
normalise error messages
@magnetised magnetised merged commit 8955a58 into main Feb 6, 2025
30 of 31 checks passed
@magnetised magnetised deleted the 2256-allow-for-a-pure-elixir-api branch February 6, 2025 09:19
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