• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supavisor / e5e7ebfe80dbec4965226225050d4ef5c8216e88-PR-605

21 Feb 2025 02:35PM UTC coverage: 45.973% (-0.03%) from 46.003%
e5e7ebfe80dbec4965226225050d4ef5c8216e88-PR-605

Pull #605

github

hauleth
fix: remaining SSL connections that need to set `verify_none` option
Pull Request #605: fix: remaining SSL connections that need to set `verify_none` option

2 of 9 new or added lines in 3 files covered. (22.22%)

267 existing lines in 26 files now uncovered.

959 of 2086 relevant lines covered (45.97%)

635.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/lib/supavisor/tenants/cluster_tenants.ex
1
defmodule Supavisor.Tenants.ClusterTenants do
2
  @moduledoc false
3

4
  use Ecto.Schema
5

6
  import Ecto.Changeset
7

8
  alias Supavisor.Tenants.Cluster
9
  alias Supavisor.Tenants.Tenant
10

11
  @type t :: %__MODULE__{}
12

13
  @primary_key {:id, :binary_id, autogenerate: true}
14
  @schema_prefix "_supavisor"
15

UNCOV
16
  schema "cluster_tenants" do
79✔
17
    field(:type, Ecto.Enum, values: [:write, :read])
18
    field(:active, :boolean, default: false)
19
    belongs_to(:cluster, Cluster, foreign_key: :cluster_alias, type: :string)
20

21
    belongs_to(:tenant, Tenant,
22
      type: :string,
23
      foreign_key: :tenant_external_id,
24
      references: :external_id
25
    )
26

27
    timestamps()
28
  end
29

30
  @doc false
31
  def changeset(cluster, attrs) do
32
    cluster
33
    |> cast(attrs, [:type, :active, :cluster_alias, :tenant_external_id])
34
    |> validate_required([:type, :active, :cluster_alias, :tenant_external_id])
UNCOV
35
    |> unique_constraint([:tenant_external_id])
6✔
36
  end
37
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc