Skip to content

Commit

Permalink
feat: clean measurement (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
pichoemr authored Jul 19, 2022
1 parent 6886b19 commit 571f983
Show file tree
Hide file tree
Showing 26 changed files with 21 additions and 890 deletions.
37 changes: 0 additions & 37 deletions apps/lenra/lib/app_channel_monitor.ex

This file was deleted.

4 changes: 3 additions & 1 deletion apps/lenra/lib/lenra/accounts/password.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ defmodule Lenra.Accounts.Password do
The password_save shema.
"""
use Lenra.Schema

import Ecto.Changeset
alias Lenra.User

alias Lenra.Accounts.User

@password_regex ~r/(?=.*[a-z])(?=.*[A-Z])(?=.*\W)/

Expand Down
4 changes: 1 addition & 3 deletions apps/lenra/lib/lenra/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ defmodule Lenra.Application do

def start(_type, _args) do
Lenra.MigrationHelper.migrate()
Lenra.Monitor.setup()

children = [
# Start the ecto repository
Expand Down Expand Up @@ -36,8 +35,7 @@ defmodule Lenra.Application do
}},
id: :finch_gitlab_http
),
{Cluster.Supervisor, [Application.get_env(:libcluster, :topologies), [name: Lenra.ClusterSupervisor]]},
AppChannelMonitor
{Cluster.Supervisor, [Application.get_env(:libcluster, :topologies), [name: Lenra.ClusterSupervisor]]}
]

# See https://hexdocs.pm/elixir/Supervisor.html
Expand Down
37 changes: 0 additions & 37 deletions apps/lenra/lib/lenra/db_schema/action_logs.ex

This file was deleted.

41 changes: 0 additions & 41 deletions apps/lenra/lib/lenra/db_schema/app_user_session.ex

This file was deleted.

29 changes: 0 additions & 29 deletions apps/lenra/lib/lenra/db_schema/docker_run_measurements.ex

This file was deleted.

2 changes: 0 additions & 2 deletions apps/lenra/lib/lenra/db_schema/lenra_application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ defmodule Lenra.LenraApplication do

alias Lenra.{
ApplicationMainEnv,
AppUserSession,
Build,
Environment,
LenraApplication
Expand Down Expand Up @@ -36,7 +35,6 @@ defmodule Lenra.LenraApplication do
has_many(:environments, Environment, foreign_key: :application_id)
has_many(:builds, Build, foreign_key: :application_id)
has_one(:main_env, ApplicationMainEnv, foreign_key: :application_id)
has_many(:app_user_session, AppUserSession, foreign_key: :application_id)
timestamps()
end

Expand Down
29 changes: 0 additions & 29 deletions apps/lenra/lib/lenra/db_schema/openfaas_runaction_measurement.ex

This file was deleted.

28 changes: 0 additions & 28 deletions apps/lenra/lib/lenra/db_schema/socket_app_measurement.ex

This file was deleted.

1 change: 0 additions & 1 deletion apps/lenra/lib/lenra/legal.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ defmodule Lenra.Legal do

import Ecto.Query, only: [from: 2, select: 3]

alias Lenra.User
alias Lenra.Legal.{CGU, UserAcceptCGUVersion}
alias Lenra.Repo

Expand Down
15 changes: 0 additions & 15 deletions apps/lenra/lib/lenra/services/action_logs_service.ex

This file was deleted.

21 changes: 0 additions & 21 deletions apps/lenra/lib/lenra/services/app_user_session_service.ex

This file was deleted.

1 change: 0 additions & 1 deletion apps/lenra/lib/lenra/services/deployment_services.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ defmodule Lenra.DeploymentServices do
BuildServices,
Deployment,
EnvironmentServices,
LenraApplication,
OpenfaasServices,
Repo
}
Expand Down
19 changes: 0 additions & 19 deletions apps/lenra/lib/lenra/services/docker_run_measurement_service.ex

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion apps/lenra/lib/lenra/services/resources_services.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Lenra.ResourcesServices do
The service that manages resources of lenra applications.
"""
alias ApplicationRunner.OpenfaasServices
alias Lenra.{LenraApplication, LenraApplicationServices, Repo}
alias Lenra.{LenraApplicationServices, Repo}
require Logger

@doc """
Expand Down
19 changes: 0 additions & 19 deletions apps/lenra/lib/lenra/services/socket_app_measurement_services.ex

This file was deleted.

Loading

0 comments on commit 571f983

Please sign in to comment.