Skip to content

Allow optional IPv6 for clickhouse repo - #2970

Merged
aerosol merged 2 commits into
plausible:masterfrom
rissson:ch-ipv6
Jul 11, 2023
Merged

Allow optional IPv6 for clickhouse repo#2970
aerosol merged 2 commits into
plausible:masterfrom
rissson:ch-ipv6

Conversation

@rissson

@rissson rissson commented May 24, 2023

Copy link
Copy Markdown
Contributor

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

rissson commented May 24, 2023

Copy link
Copy Markdown
Contributor Author

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...

Comment thread config/runtime.exs Outdated
Comment thread config/runtime.exs Outdated
Comment thread config/runtime.exs Outdated
@rissson

rissson commented May 25, 2023

Copy link
Copy Markdown
Contributor Author

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

@ruslandoga

Copy link
Copy Markdown
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

rissson commented May 26, 2023

Copy link
Copy Markdown
Contributor Author

Got it, thanks for the pointers!

@rissson
rissson requested review from ruslandoga and ukutaht May 26, 2023 14:36
@bundlemon

bundlemon Bot commented May 26, 2023

Copy link
Copy Markdown

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

rissson commented Jun 21, 2023

Copy link
Copy Markdown
Contributor Author

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

@ruslandoga

ruslandoga commented Jun 25, 2023

Copy link
Copy Markdown
Contributor

@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