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

Allow optional IPv6 for clickhouse repo #2970

Merged
merged 2 commits into from
Jul 11, 2023
Merged

Conversation

rissson
Copy link
Contributor

@rissson rissson commented May 24, 2023

Changes

Adds optional support for connect to clickhouse over ipv6. Same as #1661, but for clickhouse.

Tests

  • This PR does not require tests

Changelog

  • Entry has been added to changelog

Documentation

  • Docs have been updated

Dark mode

  • This PR does not change the UI

@rissson
Copy link
Contributor Author

rissson commented May 24, 2023

This ought to replace the ungodly sed -i 's/ch_transport_opts = \[/ch_transport_opts = [ inet6: true ,/' /app/releases/0.0.1/runtime.exs I have in my deployment currently...

config/runtime.exs Outdated Show resolved Hide resolved
config/runtime.exs Outdated Show resolved Hide resolved
config/runtime.exs Outdated Show resolved Hide resolved
@rissson
Copy link
Contributor Author

rissson commented May 25, 2023

I've never actually written in this language before, so which options do you want me to use?

@ruslandoga
Copy link
Contributor

I think

get_var_from_path_or_env(config_dir, "ECTO_CH_IPV6", "false")
|> String.to_existing_atom()

that Uku suggested would be the most consistent. Let's go with that.

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
@rissson
Copy link
Contributor Author

rissson commented May 26, 2023

Got it, thanks for the pointers!

@bundlemon
Copy link

bundlemon bot commented May 26, 2023

BundleMon

Unchanged files (7)
Status Path Size Limits
static/css/app.css
492.34KB -
static/js/dashboard.js
298.88KB -
static/js/app.js
12.13KB -
static/js/embed.host.js
5.58KB -
static/js/embed.content.js
5.06KB -
tracker/js/plausible.js
742B -
static/js/applyTheme.js
314B -

No change in files bundle size

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@rissson
Copy link
Contributor Author

rissson commented Jun 21, 2023

Ah I see this missed 2.0, shame. Was anything else needed?

@ruslandoga
Copy link
Contributor

ruslandoga commented Jun 25, 2023

@rissson v2.0 hasn't been officially released yet: #3030

I'll ask the core team to merge it on the next call so that it gets into v2 :)

@ruslandoga ruslandoga mentioned this pull request Jun 27, 2023
@ruslandoga ruslandoga mentioned this pull request Jul 11, 2023
1 task
@aerosol aerosol merged commit 50fa1b0 into plausible:master Jul 11, 2023
@rissson rissson deleted the ch-ipv6 branch July 11, 2023 14:48
ruslandoga added a commit that referenced this pull request Jul 12, 2023
ruslandoga pushed a commit that referenced this pull request Jul 12, 2023
* Allow optional IPv6 for clickhouse repo

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>

* remove trailing comma

---------

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Co-authored-by: ruslandoga <rusl@n-do.ga>
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.

4 participants