From aedebc300d5b235f4f938742feb19e5e546e0454 Mon Sep 17 00:00:00 2001 From: Pierre Tessier Date: Fri, 10 Mar 2023 09:23:38 -0500 Subject: [PATCH] [chore] - add copyright notice (part 1) (#784) * add copyright notice Signed-off-by: Pierre Tessier * add copyright notice Signed-off-by: Pierre Tessier * revert to original copyright Signed-off-by: Pierre Tessier --------- Signed-off-by: Pierre Tessier Co-authored-by: Carter Socha <43380952+cartersocha@users.noreply.github.com> --- internal/tools/sanitycheck.py | 14 ++++++++++++++ src/accountingservice/Dockerfile | 14 ++++++++++++++ src/accountingservice/kafka/consumer.go | 14 ++++++++++++++ src/adservice/build.gradle | 14 ++++++++++++++ src/adservice/settings.gradle | 14 ++++++++++++++ src/checkoutservice/kafka/producer.go | 14 ++++++++++++++ src/emailservice/Dockerfile | 14 ++++++++++++++ src/emailservice/Gemfile | 14 ++++++++++++++ src/featureflagservice/.formatter.exs | 14 ++++++++++++++ src/featureflagservice/Dockerfile | 14 ++++++++++++++ src/featureflagservice/assets/css/app.css | 17 ++++++++++++++++- src/featureflagservice/assets/js/app.js | 14 ++++++++++++++ src/featureflagservice/config/config.exs | 14 ++++++++++++++ src/featureflagservice/config/dev.exs | 14 ++++++++++++++ src/featureflagservice/config/prod.exs | 14 ++++++++++++++ src/featureflagservice/config/runtime.exs | 14 ++++++++++++++ src/featureflagservice/config/test.exs | 14 ++++++++++++++ .../lib/featureflagservice.ex | 14 ++++++++++++++ .../lib/featureflagservice/application.ex | 14 ++++++++++++++ .../lib/featureflagservice/feature_flags.ex | 14 ++++++++++++++ .../feature_flags/feature_flag.ex | 14 ++++++++++++++ .../lib/featureflagservice/release.ex | 14 ++++++++++++++ .../lib/featureflagservice/repo.ex | 14 ++++++++++++++ .../lib/featureflagservice_web.ex | 14 ++++++++++++++ .../controllers/feature_flag_controller.ex | 14 ++++++++++++++ .../controllers/page_controller.ex | 14 ++++++++++++++ .../lib/featureflagservice_web/endpoint.ex | 14 ++++++++++++++ .../lib/featureflagservice_web/gettext.ex | 14 ++++++++++++++ .../lib/featureflagservice_web/router.ex | 14 ++++++++++++++ .../templates/feature_flag/edit.html.heex | 16 ++++++++++++++++ .../templates/feature_flag/form.html.heex | 16 ++++++++++++++++ .../templates/feature_flag/index.html.heex | 16 ++++++++++++++++ .../templates/feature_flag/new.html.heex | 16 ++++++++++++++++ .../templates/feature_flag/show.html.heex | 16 ++++++++++++++++ .../templates/layout/app.html.heex | 16 ++++++++++++++++ .../templates/layout/live.html.heex | 16 ++++++++++++++++ .../templates/layout/root.html.heex | 16 ++++++++++++++++ .../templates/page/index.html.heex | 16 ++++++++++++++++ .../views/error_helpers.ex | 14 ++++++++++++++ .../featureflagservice_web/views/error_view.ex | 14 ++++++++++++++ .../views/feature_flag_view.ex | 14 ++++++++++++++ .../featureflagservice_web/views/layout_view.ex | 14 ++++++++++++++ .../featureflagservice_web/views/page_view.ex | 14 ++++++++++++++ src/featureflagservice/mix.exs | 14 ++++++++++++++ .../20220524172636_create_featureflags.exs | 14 ++++++++++++++ src/featureflagservice/priv/repo/seeds.exs | 14 ++++++++++++++ src/featureflagservice/rebar.config | 14 ++++++++++++++ src/featureflagservice/rel/overlays/bin/migrate | 14 ++++++++++++++ .../rel/overlays/bin/migrate.bat | 14 ++++++++++++++ src/featureflagservice/rel/overlays/bin/server | 14 ++++++++++++++ .../rel/overlays/bin/server.bat | 14 ++++++++++++++ .../src/featureflagservice.app.src | 14 ++++++++++++++ .../featureflagservice/feature_flags_test.exs | 14 ++++++++++++++ .../feature_flag_controller_test.exs | 14 ++++++++++++++ .../controllers/page_controller_test.exs | 14 ++++++++++++++ .../views/error_view_test.exs | 14 ++++++++++++++ .../views/layout_view_test.exs | 14 ++++++++++++++ .../views/page_view_test.exs | 14 ++++++++++++++ .../test/support/conn_case.ex | 14 ++++++++++++++ .../test/support/data_case.ex | 14 ++++++++++++++ .../support/fixtures/feature_flags_fixtures.ex | 14 ++++++++++++++ src/featureflagservice/test/test_helper.exs | 14 ++++++++++++++ 62 files changed, 888 insertions(+), 1 deletion(-) diff --git a/internal/tools/sanitycheck.py b/internal/tools/sanitycheck.py index e51a3ec2e9..6e7033e176 100644 --- a/internal/tools/sanitycheck.py +++ b/internal/tools/sanitycheck.py @@ -1,5 +1,19 @@ #!/usr/bin/env python3 +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import glob import os import sys diff --git a/src/accountingservice/Dockerfile b/src/accountingservice/Dockerfile index 4feb5d090b..27b1a7a32b 100644 --- a/src/accountingservice/Dockerfile +++ b/src/accountingservice/Dockerfile @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM golang:1.19.2-alpine AS builder RUN apk add build-base protobuf-dev protoc WORKDIR /usr/src/app/ diff --git a/src/accountingservice/kafka/consumer.go b/src/accountingservice/kafka/consumer.go index eceebf34c4..51284022e4 100644 --- a/src/accountingservice/kafka/consumer.go +++ b/src/accountingservice/kafka/consumer.go @@ -1,3 +1,17 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kafka import ( diff --git a/src/adservice/build.gradle b/src/adservice/build.gradle index 14b4620cc3..3117e71b1c 100644 --- a/src/adservice/build.gradle +++ b/src/adservice/build.gradle @@ -1,3 +1,17 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + plugins { id 'com.google.protobuf' version '0.8.18' id 'com.github.sherter.google-java-format' version '0.9' diff --git a/src/adservice/settings.gradle b/src/adservice/settings.gradle index 9dcbccda17..3cf558822a 100644 --- a/src/adservice/settings.gradle +++ b/src/adservice/settings.gradle @@ -1 +1,15 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + rootProject.name = 'opentelemetry-demo-ad-service' diff --git a/src/checkoutservice/kafka/producer.go b/src/checkoutservice/kafka/producer.go index 78c905ee6e..ddcf951b31 100644 --- a/src/checkoutservice/kafka/producer.go +++ b/src/checkoutservice/kafka/producer.go @@ -1,3 +1,17 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kafka import ( diff --git a/src/emailservice/Dockerfile b/src/emailservice/Dockerfile index d94dd5a206..5313b9373e 100644 --- a/src/emailservice/Dockerfile +++ b/src/emailservice/Dockerfile @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM ruby:3.1.2-alpine as base FROM base as builder diff --git a/src/emailservice/Gemfile b/src/emailservice/Gemfile index 971b0d036b..fabaf7a7af 100644 --- a/src/emailservice/Gemfile +++ b/src/emailservice/Gemfile @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + source "https://rubygems.org" gem "net-smtp", "~> 0.3" diff --git a/src/featureflagservice/.formatter.exs b/src/featureflagservice/.formatter.exs index 8a6391c6a6..7be38a174f 100644 --- a/src/featureflagservice/.formatter.exs +++ b/src/featureflagservice/.formatter.exs @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [ import_deps: [:ecto, :phoenix], inputs: ["*.{ex,exs}", "priv/*/seeds.exs", "{config,lib,test}/**/*.{ex,exs}"], diff --git a/src/featureflagservice/Dockerfile b/src/featureflagservice/Dockerfile index 517d1d5eb0..ec082c766b 100644 --- a/src/featureflagservice/Dockerfile +++ b/src/featureflagservice/Dockerfile @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Find eligible builder and runner images on Docker Hub. We use Ubuntu/Debian instead of # Alpine to avoid DNS resolution issues in production. # diff --git a/src/featureflagservice/assets/css/app.css b/src/featureflagservice/assets/css/app.css index 19c2e51edc..eff8666199 100644 --- a/src/featureflagservice/assets/css/app.css +++ b/src/featureflagservice/assets/css/app.css @@ -1,4 +1,19 @@ -/* This file is for your main application CSS */ +/** +* Copyright The OpenTelemetry Authors +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + @import "./phoenix.css"; /* Alerts and form errors used by phx.new */ diff --git a/src/featureflagservice/assets/js/app.js b/src/featureflagservice/assets/js/app.js index 2ca06a5664..81bb0ac6cc 100644 --- a/src/featureflagservice/assets/js/app.js +++ b/src/featureflagservice/assets/js/app.js @@ -1,3 +1,17 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // We import the CSS which is extracted to its own file by esbuild. // Remove this line if you add a your own CSS build pipeline (e.g postcss). import "../css/app.css" diff --git a/src/featureflagservice/config/config.exs b/src/featureflagservice/config/config.exs index da7d0c8e89..8f2b544de9 100644 --- a/src/featureflagservice/config/config.exs +++ b/src/featureflagservice/config/config.exs @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This file is responsible for configuring your application # and its dependencies with the aid of the Config module. # diff --git a/src/featureflagservice/config/dev.exs b/src/featureflagservice/config/dev.exs index 6312e977fa..9b919ce683 100644 --- a/src/featureflagservice/config/dev.exs +++ b/src/featureflagservice/config/dev.exs @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import Config # Configure your database diff --git a/src/featureflagservice/config/prod.exs b/src/featureflagservice/config/prod.exs index c7938446b5..1526528140 100644 --- a/src/featureflagservice/config/prod.exs +++ b/src/featureflagservice/config/prod.exs @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import Config # For production, don't forget to configure the url host diff --git a/src/featureflagservice/config/runtime.exs b/src/featureflagservice/config/runtime.exs index d0c478017e..259725c342 100644 --- a/src/featureflagservice/config/runtime.exs +++ b/src/featureflagservice/config/runtime.exs @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import Config if System.get_env("PHX_SERVER") do diff --git a/src/featureflagservice/config/test.exs b/src/featureflagservice/config/test.exs index bb35117d9c..410b038d3a 100644 --- a/src/featureflagservice/config/test.exs +++ b/src/featureflagservice/config/test.exs @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import Config # Configure your database diff --git a/src/featureflagservice/lib/featureflagservice.ex b/src/featureflagservice/lib/featureflagservice.ex index 971a698267..0850135c10 100644 --- a/src/featureflagservice/lib/featureflagservice.ex +++ b/src/featureflagservice/lib/featureflagservice.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule Featureflagservice do @moduledoc """ Featureflagservice keeps the contexts that define your domain diff --git a/src/featureflagservice/lib/featureflagservice/application.ex b/src/featureflagservice/lib/featureflagservice/application.ex index efef61c62a..368c109189 100644 --- a/src/featureflagservice/lib/featureflagservice/application.ex +++ b/src/featureflagservice/lib/featureflagservice/application.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule Featureflagservice.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications diff --git a/src/featureflagservice/lib/featureflagservice/feature_flags.ex b/src/featureflagservice/lib/featureflagservice/feature_flags.ex index c9d38dbbfa..4960cfb35b 100644 --- a/src/featureflagservice/lib/featureflagservice/feature_flags.ex +++ b/src/featureflagservice/lib/featureflagservice/feature_flags.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule Featureflagservice.FeatureFlags do @moduledoc """ The FeatureFlags context. diff --git a/src/featureflagservice/lib/featureflagservice/feature_flags/feature_flag.ex b/src/featureflagservice/lib/featureflagservice/feature_flags/feature_flag.ex index 29ab530163..be7109d671 100644 --- a/src/featureflagservice/lib/featureflagservice/feature_flags/feature_flag.ex +++ b/src/featureflagservice/lib/featureflagservice/feature_flags/feature_flag.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule Featureflagservice.FeatureFlags.FeatureFlag do use Ecto.Schema import Ecto.Changeset diff --git a/src/featureflagservice/lib/featureflagservice/release.ex b/src/featureflagservice/lib/featureflagservice/release.ex index 9adad2960e..99ec6d8dd6 100644 --- a/src/featureflagservice/lib/featureflagservice/release.ex +++ b/src/featureflagservice/lib/featureflagservice/release.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule Featureflagservice.Release do @moduledoc """ Used for executing DB release tasks when run in production without Mix diff --git a/src/featureflagservice/lib/featureflagservice/repo.ex b/src/featureflagservice/lib/featureflagservice/repo.ex index b18e85d08e..9056873cac 100644 --- a/src/featureflagservice/lib/featureflagservice/repo.ex +++ b/src/featureflagservice/lib/featureflagservice/repo.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule Featureflagservice.Repo do use Ecto.Repo, otp_app: :featureflagservice, diff --git a/src/featureflagservice/lib/featureflagservice_web.ex b/src/featureflagservice/lib/featureflagservice_web.ex index c2ad9a8ca2..4cd8421726 100644 --- a/src/featureflagservice/lib/featureflagservice_web.ex +++ b/src/featureflagservice/lib/featureflagservice_web.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb do @moduledoc """ The entrypoint for defining your web interface, such diff --git a/src/featureflagservice/lib/featureflagservice_web/controllers/feature_flag_controller.ex b/src/featureflagservice/lib/featureflagservice_web/controllers/feature_flag_controller.ex index deea293d47..2514b0b903 100644 --- a/src/featureflagservice/lib/featureflagservice_web/controllers/feature_flag_controller.ex +++ b/src/featureflagservice/lib/featureflagservice_web/controllers/feature_flag_controller.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb.FeatureFlagController do use FeatureflagserviceWeb, :controller diff --git a/src/featureflagservice/lib/featureflagservice_web/controllers/page_controller.ex b/src/featureflagservice/lib/featureflagservice_web/controllers/page_controller.ex index d268ac51a2..e1797da190 100644 --- a/src/featureflagservice/lib/featureflagservice_web/controllers/page_controller.ex +++ b/src/featureflagservice/lib/featureflagservice_web/controllers/page_controller.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb.PageController do use FeatureflagserviceWeb, :controller diff --git a/src/featureflagservice/lib/featureflagservice_web/endpoint.ex b/src/featureflagservice/lib/featureflagservice_web/endpoint.ex index 3e32c2a10c..00b0f33d62 100644 --- a/src/featureflagservice/lib/featureflagservice_web/endpoint.ex +++ b/src/featureflagservice/lib/featureflagservice_web/endpoint.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb.Endpoint do use Phoenix.Endpoint, otp_app: :featureflagservice diff --git a/src/featureflagservice/lib/featureflagservice_web/gettext.ex b/src/featureflagservice/lib/featureflagservice_web/gettext.ex index 4e8f23c287..23583d7dd9 100644 --- a/src/featureflagservice/lib/featureflagservice_web/gettext.ex +++ b/src/featureflagservice/lib/featureflagservice_web/gettext.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. diff --git a/src/featureflagservice/lib/featureflagservice_web/router.ex b/src/featureflagservice/lib/featureflagservice_web/router.ex index 2e72c6878e..9c122b9497 100644 --- a/src/featureflagservice/lib/featureflagservice_web/router.ex +++ b/src/featureflagservice/lib/featureflagservice_web/router.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb.Router do use FeatureflagserviceWeb, :router diff --git a/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/edit.html.heex b/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/edit.html.heex index 8fe3c66ac4..c66d59cb2d 100644 --- a/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/edit.html.heex +++ b/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/edit.html.heex @@ -1,3 +1,19 @@ +<%!-- + Copyright The OpenTelemetry Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--%> +

Edit feature flag

<%= render "form.html", Map.put(assigns, :action, Routes.feature_flag_path(@conn, :update, @feature_flag)) %> diff --git a/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/form.html.heex b/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/form.html.heex index ccd5a42564..c730c993b3 100644 --- a/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/form.html.heex +++ b/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/form.html.heex @@ -1,3 +1,19 @@ +<%!-- + Copyright The OpenTelemetry Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--%> + <.form let={f} for={@changeset} action={@action}> <%= if @changeset.action do %>
diff --git a/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/index.html.heex b/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/index.html.heex index fce44f7d60..26fa34f5e4 100644 --- a/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/index.html.heex +++ b/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/index.html.heex @@ -1,3 +1,19 @@ +<%!-- + Copyright The OpenTelemetry Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--%> +

Listing feature flags

diff --git a/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/new.html.heex b/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/new.html.heex index 656fad3989..df15a10836 100644 --- a/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/new.html.heex +++ b/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/new.html.heex @@ -1,3 +1,19 @@ +<%!-- + Copyright The OpenTelemetry Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--%> +

New Feature flag

<%= render "form.html", Map.put(assigns, :action, Routes.feature_flag_path(@conn, :create)) %> diff --git a/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/show.html.heex b/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/show.html.heex index fcade2bfe7..994436b0ae 100644 --- a/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/show.html.heex +++ b/src/featureflagservice/lib/featureflagservice_web/templates/feature_flag/show.html.heex @@ -1,3 +1,19 @@ +<%!-- + Copyright The OpenTelemetry Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--%> +

Show feature flag

    diff --git a/src/featureflagservice/lib/featureflagservice_web/templates/layout/app.html.heex b/src/featureflagservice/lib/featureflagservice_web/templates/layout/app.html.heex index 169aed9569..bafda4840e 100644 --- a/src/featureflagservice/lib/featureflagservice_web/templates/layout/app.html.heex +++ b/src/featureflagservice/lib/featureflagservice_web/templates/layout/app.html.heex @@ -1,3 +1,19 @@ +<%!-- + Copyright The OpenTelemetry Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--%> +
    diff --git a/src/featureflagservice/lib/featureflagservice_web/templates/layout/live.html.heex b/src/featureflagservice/lib/featureflagservice_web/templates/layout/live.html.heex index a29d604480..54e49194d8 100644 --- a/src/featureflagservice/lib/featureflagservice_web/templates/layout/live.html.heex +++ b/src/featureflagservice/lib/featureflagservice_web/templates/layout/live.html.heex @@ -1,3 +1,19 @@ +<%!-- + Copyright The OpenTelemetry Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--%> +

    Listing Feature flags

diff --git a/src/featureflagservice/lib/featureflagservice_web/views/error_helpers.ex b/src/featureflagservice/lib/featureflagservice_web/views/error_helpers.ex index d1abab6bef..952d4d05df 100644 --- a/src/featureflagservice/lib/featureflagservice_web/views/error_helpers.ex +++ b/src/featureflagservice/lib/featureflagservice_web/views/error_helpers.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. diff --git a/src/featureflagservice/lib/featureflagservice_web/views/error_view.ex b/src/featureflagservice/lib/featureflagservice_web/views/error_view.ex index d2b91d6a9d..b9eaa0ce7c 100644 --- a/src/featureflagservice/lib/featureflagservice_web/views/error_view.ex +++ b/src/featureflagservice/lib/featureflagservice_web/views/error_view.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb.ErrorView do use FeatureflagserviceWeb, :view diff --git a/src/featureflagservice/lib/featureflagservice_web/views/feature_flag_view.ex b/src/featureflagservice/lib/featureflagservice_web/views/feature_flag_view.ex index 16232e421c..b59623f11b 100644 --- a/src/featureflagservice/lib/featureflagservice_web/views/feature_flag_view.ex +++ b/src/featureflagservice/lib/featureflagservice_web/views/feature_flag_view.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb.FeatureFlagView do use FeatureflagserviceWeb, :view end diff --git a/src/featureflagservice/lib/featureflagservice_web/views/layout_view.ex b/src/featureflagservice/lib/featureflagservice_web/views/layout_view.ex index 9a38cf5c73..471c34a09b 100644 --- a/src/featureflagservice/lib/featureflagservice_web/views/layout_view.ex +++ b/src/featureflagservice/lib/featureflagservice_web/views/layout_view.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb.LayoutView do use FeatureflagserviceWeb, :view end diff --git a/src/featureflagservice/lib/featureflagservice_web/views/page_view.ex b/src/featureflagservice/lib/featureflagservice_web/views/page_view.ex index b2aac1f929..9882aad6f8 100644 --- a/src/featureflagservice/lib/featureflagservice_web/views/page_view.ex +++ b/src/featureflagservice/lib/featureflagservice_web/views/page_view.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb.PageView do use FeatureflagserviceWeb, :view end diff --git a/src/featureflagservice/mix.exs b/src/featureflagservice/mix.exs index 21b0bf8b12..4a69073b09 100644 --- a/src/featureflagservice/mix.exs +++ b/src/featureflagservice/mix.exs @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule Featureflagservice.MixProject do use Mix.Project diff --git a/src/featureflagservice/priv/repo/migrations/20220524172636_create_featureflags.exs b/src/featureflagservice/priv/repo/migrations/20220524172636_create_featureflags.exs index 4961199376..5e9004deb5 100644 --- a/src/featureflagservice/priv/repo/migrations/20220524172636_create_featureflags.exs +++ b/src/featureflagservice/priv/repo/migrations/20220524172636_create_featureflags.exs @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule Featureflagservice.Repo.Migrations.CreateFeatureflags do use Ecto.Migration diff --git a/src/featureflagservice/priv/repo/seeds.exs b/src/featureflagservice/priv/repo/seeds.exs index 6fb1043eae..fea9b204ca 100644 --- a/src/featureflagservice/priv/repo/seeds.exs +++ b/src/featureflagservice/priv/repo/seeds.exs @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs diff --git a/src/featureflagservice/rebar.config b/src/featureflagservice/rebar.config index c25af3e5e9..46ea726a93 100644 --- a/src/featureflagservice/rebar.config +++ b/src/featureflagservice/rebar.config @@ -1,3 +1,17 @@ +% Copyright The OpenTelemetry Authors +% +% Licensed under the Apache License, Version 2.0 (the "License"); +% you may not use this file except in compliance with the License. +% You may obtain a copy of the License at +% +% http://www.apache.org/licenses/LICENSE-2.0 +% +% Unless required by applicable law or agreed to in writing, software +% distributed under the License is distributed on an "AS IS" BASIS, +% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +% See the License for the specific language governing permissions and +% limitations under the License. + {alias, [ {grpc_regen, [compile, {grpc, gen}, compile]} ]}. diff --git a/src/featureflagservice/rel/overlays/bin/migrate b/src/featureflagservice/rel/overlays/bin/migrate index 4ca42f61a9..b98a0c110f 100755 --- a/src/featureflagservice/rel/overlays/bin/migrate +++ b/src/featureflagservice/rel/overlays/bin/migrate @@ -1,3 +1,17 @@ #!/bin/sh +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + cd -P -- "$(dirname -- "$0")" exec ./featureflagservice eval Featureflagservice.Release.migrate diff --git a/src/featureflagservice/rel/overlays/bin/migrate.bat b/src/featureflagservice/rel/overlays/bin/migrate.bat index d73b55bc92..ca244b4038 100755 --- a/src/featureflagservice/rel/overlays/bin/migrate.bat +++ b/src/featureflagservice/rel/overlays/bin/migrate.bat @@ -1 +1,15 @@ +:: Copyright The OpenTelemetry Authors +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. + call "%~dp0\featureflagservice" eval Featureflagservice.Release.migrate diff --git a/src/featureflagservice/rel/overlays/bin/server b/src/featureflagservice/rel/overlays/bin/server index b4a5b70cf0..71e1da3159 100755 --- a/src/featureflagservice/rel/overlays/bin/server +++ b/src/featureflagservice/rel/overlays/bin/server @@ -1,4 +1,18 @@ #!/bin/sh +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + cd -P -- "$(dirname -- "$0")" ./featureflagservice eval Featureflagservice.Release.migrate || { echo "Database setup or migrations failed."; exit 1; } diff --git a/src/featureflagservice/rel/overlays/bin/server.bat b/src/featureflagservice/rel/overlays/bin/server.bat index 035f25390f..e640b27866 100755 --- a/src/featureflagservice/rel/overlays/bin/server.bat +++ b/src/featureflagservice/rel/overlays/bin/server.bat @@ -1,2 +1,16 @@ +:: Copyright The OpenTelemetry Authors +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. + set PHX_SERVER=true call "%~dp0\featureflagservice" start diff --git a/src/featureflagservice/src/featureflagservice.app.src b/src/featureflagservice/src/featureflagservice.app.src index 7174a8d876..4cda7ee446 100644 --- a/src/featureflagservice/src/featureflagservice.app.src +++ b/src/featureflagservice/src/featureflagservice.app.src @@ -1,3 +1,17 @@ +% Copyright The OpenTelemetry Authors +% +% Licensed under the Apache License, Version 2.0 (the "License"); +% you may not use this file except in compliance with the License. +% You may obtain a copy of the License at +% +% http://www.apache.org/licenses/LICENSE-2.0 +% +% Unless required by applicable law or agreed to in writing, software +% distributed under the License is distributed on an "AS IS" BASIS, +% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +% See the License for the specific language governing permissions and +% limitations under the License. + {application, featureflagservice, [{description, "this is here just so rebar3 will build the necessary grpc code"}, {vsn, "notused"}, diff --git a/src/featureflagservice/test/featureflagservice/feature_flags_test.exs b/src/featureflagservice/test/featureflagservice/feature_flags_test.exs index fadd202f44..2ca9866217 100644 --- a/src/featureflagservice/test/featureflagservice/feature_flags_test.exs +++ b/src/featureflagservice/test/featureflagservice/feature_flags_test.exs @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule Featureflagservice.FeatureFlagsTest do use Featureflagservice.DataCase diff --git a/src/featureflagservice/test/featureflagservice_web/controllers/feature_flag_controller_test.exs b/src/featureflagservice/test/featureflagservice_web/controllers/feature_flag_controller_test.exs index faecc95c05..fba9067d07 100644 --- a/src/featureflagservice/test/featureflagservice_web/controllers/feature_flag_controller_test.exs +++ b/src/featureflagservice/test/featureflagservice_web/controllers/feature_flag_controller_test.exs @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb.FeatureFlagControllerTest do use FeatureflagserviceWeb.ConnCase diff --git a/src/featureflagservice/test/featureflagservice_web/controllers/page_controller_test.exs b/src/featureflagservice/test/featureflagservice_web/controllers/page_controller_test.exs index bb0f20b314..ad6d4d2da0 100644 --- a/src/featureflagservice/test/featureflagservice_web/controllers/page_controller_test.exs +++ b/src/featureflagservice/test/featureflagservice_web/controllers/page_controller_test.exs @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb.PageControllerTest do use FeatureflagserviceWeb.ConnCase diff --git a/src/featureflagservice/test/featureflagservice_web/views/error_view_test.exs b/src/featureflagservice/test/featureflagservice_web/views/error_view_test.exs index c0d4ce01a8..0e2af72759 100644 --- a/src/featureflagservice/test/featureflagservice_web/views/error_view_test.exs +++ b/src/featureflagservice/test/featureflagservice_web/views/error_view_test.exs @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb.ErrorViewTest do use FeatureflagserviceWeb.ConnCase, async: true diff --git a/src/featureflagservice/test/featureflagservice_web/views/layout_view_test.exs b/src/featureflagservice/test/featureflagservice_web/views/layout_view_test.exs index e4055bc08c..18f0566080 100644 --- a/src/featureflagservice/test/featureflagservice_web/views/layout_view_test.exs +++ b/src/featureflagservice/test/featureflagservice_web/views/layout_view_test.exs @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb.LayoutViewTest do use FeatureflagserviceWeb.ConnCase, async: true diff --git a/src/featureflagservice/test/featureflagservice_web/views/page_view_test.exs b/src/featureflagservice/test/featureflagservice_web/views/page_view_test.exs index 2b187a7763..013ff99a97 100644 --- a/src/featureflagservice/test/featureflagservice_web/views/page_view_test.exs +++ b/src/featureflagservice/test/featureflagservice_web/views/page_view_test.exs @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb.PageViewTest do use FeatureflagserviceWeb.ConnCase, async: true end diff --git a/src/featureflagservice/test/support/conn_case.ex b/src/featureflagservice/test/support/conn_case.ex index 4d0639de86..68816ae842 100644 --- a/src/featureflagservice/test/support/conn_case.ex +++ b/src/featureflagservice/test/support/conn_case.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule FeatureflagserviceWeb.ConnCase do @moduledoc """ This module defines the test case to be used by diff --git a/src/featureflagservice/test/support/data_case.ex b/src/featureflagservice/test/support/data_case.ex index 71b7e239ee..0353e8dbba 100644 --- a/src/featureflagservice/test/support/data_case.ex +++ b/src/featureflagservice/test/support/data_case.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule Featureflagservice.DataCase do @moduledoc """ This module defines the setup for tests requiring diff --git a/src/featureflagservice/test/support/fixtures/feature_flags_fixtures.ex b/src/featureflagservice/test/support/fixtures/feature_flags_fixtures.ex index fe5728a59e..9d7c24a6d3 100644 --- a/src/featureflagservice/test/support/fixtures/feature_flags_fixtures.ex +++ b/src/featureflagservice/test/support/fixtures/feature_flags_fixtures.ex @@ -1,3 +1,17 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defmodule Featureflagservice.FeatureFlagsFixtures do @moduledoc """ This module defines test helpers for creating diff --git a/src/featureflagservice/test/test_helper.exs b/src/featureflagservice/test/test_helper.exs index 3dacb23a39..80becf7dbc 100644 --- a/src/featureflagservice/test/test_helper.exs +++ b/src/featureflagservice/test/test_helper.exs @@ -1,2 +1,16 @@ +# Copyright The OpenTelemetry Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Featureflagservice.Repo, :manual)