From 0374182b6abc0b2cb01c6c78b4ae2a01ef721b8c Mon Sep 17 00:00:00 2001 From: Paul Schreiber Date: Thu, 1 Feb 2024 12:37:54 -0500 Subject: [PATCH] docs: add copyright notices + fix spacing (#1133) * docs: add copyright notices + fix spacing * style: reformat api.py --- terraso_backend/apps/audit_logs/admin.py | 15 +++++++++++++++ terraso_backend/apps/audit_logs/api.py | 15 +++++++++++++++ terraso_backend/apps/audit_logs/apps.py | 15 +++++++++++++++ terraso_backend/apps/audit_logs/models.py | 15 +++++++++++++++ terraso_backend/apps/audit_logs/services.py | 15 +++++++++++++++ terraso_backend/apps/auth/constants.py | 15 +++++++++++++++ ...efaultgroup_alter_group_deleted_at_and_more.py | 1 + ...pedefaultgroup_group_enroll_method_and_more.py | 15 +++++++++++++++ .../apps/core/migrations/0046_shared_resource.py | 1 - terraso_backend/apps/graphql/schema/audit_logs.py | 15 +++++++++++++++ .../project_management/migrations/0001_initial.py | 15 +++++++++++++++ .../0001_squashed_0002_project_and_more.py | 2 -- .../migrations/0002_project_and_more.py | 1 - ...management_site_unique_active_slug_and_more.py | 15 +++++++++++++++ ...007_remove_project_settings_site_created_by.py | 4 +++- .../migrations/0008_alter_site_project.py | 4 +++- .../migrations/0009_archive_projects.py | 4 +++- ..._remove_site_created_by_project_description.py | 15 +++++++++++++++ ...0014_site_privacy_alter_project_description.py | 15 +++++++++++++++ ...emove_project_group_project_membership_list.py | 15 +++++++++++++++ .../migrations/0016_auto_20230915_1527.py | 15 +++++++++++++++ .../migrations/0017_auto_20230915_1527.py | 15 +++++++++++++++ .../0019_project_seen_by_site_seen_by.py | 15 +++++++++++++++ .../0021_project_site_instructions_sitenote.py | 15 +++++++++++++++ .../migrations/0022_alter_sitenote_options.py | 15 +++++++++++++++ .../migrations/0023_alter_sitenote_author.py | 15 +++++++++++++++ .../apps/project_management/models/__init__.py | 15 +++++++++++++++ .../migrations/0011_visualizationconfig_owner.py | 1 - .../shared_data/visualization_tileset_tasks.py | 15 +++++++++++++++ terraso_backend/apps/soil_id/graphql/soil_data.py | 15 +++++++++++++++ .../apps/soil_id/migrations/0001_initial.py | 1 - ...002_depthdependentsoildata_bedrock_and_more.py | 1 - ...ter_depthdependentsoildata_options_and_more.py | 15 +++++++++++++++ .../migrations/0004_soildata_depth_intervals.py | 15 +++++++++++++++ ...a_flooding_select_soildata_grazing_and_more.py | 15 +++++++++++++++ ...0007_rename_grazing_soildata_grazing_select.py | 15 +++++++++++++++ .../0008_soildata_depth_interval_preset.py | 1 + terraso_backend/tests/audit_logs/test_services.py | 15 +++++++++++++++ terraso_backend/tests/auth/test_oauth.py | 15 +++++++++++++++ terraso_backend/tests/auth/test_token_exchange.py | 15 +++++++++++++++ .../tests/collaboration/test_signals.py | 15 +++++++++++++++ .../tests/graphql/mutations/test_soil_data.py | 15 +++++++++++++++ terraso_backend/tests/graphql/test_audit_log.py | 15 +++++++++++++++ terraso_backend/tests/story_map/test_views.py | 15 +++++++++++++++ 44 files changed, 506 insertions(+), 10 deletions(-) diff --git a/terraso_backend/apps/audit_logs/admin.py b/terraso_backend/apps/audit_logs/admin.py index 00ee3a320..b4ced0b52 100644 --- a/terraso_backend/apps/audit_logs/admin.py +++ b/terraso_backend/apps/audit_logs/admin.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + from django.contrib import admin from .models import Log diff --git a/terraso_backend/apps/audit_logs/api.py b/terraso_backend/apps/audit_logs/api.py index 71f4b673f..a46deb485 100644 --- a/terraso_backend/apps/audit_logs/api.py +++ b/terraso_backend/apps/audit_logs/api.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + from datetime import datetime from typing import Dict, Literal, Protocol diff --git a/terraso_backend/apps/audit_logs/apps.py b/terraso_backend/apps/audit_logs/apps.py index 7556ca6a6..7d62a50e7 100644 --- a/terraso_backend/apps/audit_logs/apps.py +++ b/terraso_backend/apps/audit_logs/apps.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + from django.apps import AppConfig diff --git a/terraso_backend/apps/audit_logs/models.py b/terraso_backend/apps/audit_logs/models.py index eb05891f7..44e0a80a4 100644 --- a/terraso_backend/apps/audit_logs/models.py +++ b/terraso_backend/apps/audit_logs/models.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + from enum import Enum from typing import Optional diff --git a/terraso_backend/apps/audit_logs/services.py b/terraso_backend/apps/audit_logs/services.py index 7ae6b478a..2a693c2f2 100644 --- a/terraso_backend/apps/audit_logs/services.py +++ b/terraso_backend/apps/audit_logs/services.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + import typing from datetime import datetime from enum import Enum diff --git a/terraso_backend/apps/auth/constants.py b/terraso_backend/apps/auth/constants.py index f32e1229e..398a92644 100644 --- a/terraso_backend/apps/auth/constants.py +++ b/terraso_backend/apps/auth/constants.py @@ -1,2 +1,17 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + OAUTH_COOKIE_NAME = "oauth" OAUTH_COOKIE_MAX_AGE_SECONDS = 300 # 5 minutes diff --git a/terraso_backend/apps/core/migrations/0041_landscapedefaultgroup_alter_group_deleted_at_and_more.py b/terraso_backend/apps/core/migrations/0041_landscapedefaultgroup_alter_group_deleted_at_and_more.py index 4aece8e55..3564c1e8e 100644 --- a/terraso_backend/apps/core/migrations/0041_landscapedefaultgroup_alter_group_deleted_at_and_more.py +++ b/terraso_backend/apps/core/migrations/0041_landscapedefaultgroup_alter_group_deleted_at_and_more.py @@ -14,6 +14,7 @@ # along with this program. If not, see https://www.gnu.org/licenses/. # Generated by Django 4.2 on 2023-04-24 14:22 + from django.db import migrations, models diff --git a/terraso_backend/apps/core/migrations/0042_landscapedefaultgroup_group_enroll_method_and_more.py b/terraso_backend/apps/core/migrations/0042_landscapedefaultgroup_group_enroll_method_and_more.py index a730d3b75..25aab4f49 100644 --- a/terraso_backend/apps/core/migrations/0042_landscapedefaultgroup_group_enroll_method_and_more.py +++ b/terraso_backend/apps/core/migrations/0042_landscapedefaultgroup_group_enroll_method_and_more.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.2 on 2023-05-04 18:43 from django.db import migrations, models diff --git a/terraso_backend/apps/core/migrations/0046_shared_resource.py b/terraso_backend/apps/core/migrations/0046_shared_resource.py index ac5eb6161..239cb9b82 100644 --- a/terraso_backend/apps/core/migrations/0046_shared_resource.py +++ b/terraso_backend/apps/core/migrations/0046_shared_resource.py @@ -13,7 +13,6 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see https://www.gnu.org/licenses/. - # Generated by Django 4.2.6 on 2023-10-13 22:10 import uuid diff --git a/terraso_backend/apps/graphql/schema/audit_logs.py b/terraso_backend/apps/graphql/schema/audit_logs.py index a4461ed22..e3026f025 100644 --- a/terraso_backend/apps/graphql/schema/audit_logs.py +++ b/terraso_backend/apps/graphql/schema/audit_logs.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + import graphene from django_filters import FilterSet, OrderingFilter from graphene import relay diff --git a/terraso_backend/apps/project_management/migrations/0001_initial.py b/terraso_backend/apps/project_management/migrations/0001_initial.py index 12108c979..c6177d51a 100644 --- a/terraso_backend/apps/project_management/migrations/0001_initial.py +++ b/terraso_backend/apps/project_management/migrations/0001_initial.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.1.7 on 2023-03-29 21:19 import uuid diff --git a/terraso_backend/apps/project_management/migrations/0001_squashed_0002_project_and_more.py b/terraso_backend/apps/project_management/migrations/0001_squashed_0002_project_and_more.py index de7fb5ecd..1d9af14fe 100644 --- a/terraso_backend/apps/project_management/migrations/0001_squashed_0002_project_and_more.py +++ b/terraso_backend/apps/project_management/migrations/0001_squashed_0002_project_and_more.py @@ -13,10 +13,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see https://www.gnu.org/licenses/. - # Generated by Django 4.2 on 2023-04-24 14:28 - import uuid import django.db.models.deletion diff --git a/terraso_backend/apps/project_management/migrations/0002_project_and_more.py b/terraso_backend/apps/project_management/migrations/0002_project_and_more.py index f89cb7f23..ebd1c24d7 100644 --- a/terraso_backend/apps/project_management/migrations/0002_project_and_more.py +++ b/terraso_backend/apps/project_management/migrations/0002_project_and_more.py @@ -13,7 +13,6 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see https://www.gnu.org/licenses/. - # Generated by Django 4.2 on 2023-04-24 14:22 import uuid diff --git a/terraso_backend/apps/project_management/migrations/0003_remove_site_project_management_site_unique_active_slug_and_more.py b/terraso_backend/apps/project_management/migrations/0003_remove_site_project_management_site_unique_active_slug_and_more.py index 9bff62737..562750ba5 100644 --- a/terraso_backend/apps/project_management/migrations/0003_remove_site_project_management_site_unique_active_slug_and_more.py +++ b/terraso_backend/apps/project_management/migrations/0003_remove_site_project_management_site_unique_active_slug_and_more.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.2 on 2023-04-26 20:52 import django.db.models.deletion diff --git a/terraso_backend/apps/project_management/migrations/0007_remove_project_settings_site_created_by.py b/terraso_backend/apps/project_management/migrations/0007_remove_project_settings_site_created_by.py index 93e826fa7..1683d2c80 100644 --- a/terraso_backend/apps/project_management/migrations/0007_remove_project_settings_site_created_by.py +++ b/terraso_backend/apps/project_management/migrations/0007_remove_project_settings_site_created_by.py @@ -1,4 +1,3 @@ -# Generated by Django 4.2.2 on 2023-06-06 07:33 # Copyright © 2023 Technology Matters # # This program is free software: you can redistribute it and/or modify @@ -13,6 +12,9 @@ # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see https://www.gnu.org/licenses/. + +# Generated by Django 4.2.2 on 2023-06-06 07:33 + import django.db.models.deletion from django.conf import settings from django.db import migrations, models diff --git a/terraso_backend/apps/project_management/migrations/0008_alter_site_project.py b/terraso_backend/apps/project_management/migrations/0008_alter_site_project.py index 8ce62844a..15ff9f470 100644 --- a/terraso_backend/apps/project_management/migrations/0008_alter_site_project.py +++ b/terraso_backend/apps/project_management/migrations/0008_alter_site_project.py @@ -1,4 +1,3 @@ -# Generated by Django 4.2.1 on 2023-05-26 19:40 # Copyright © 2023 Technology Matters # # This program is free software: you can redistribute it and/or modify @@ -13,6 +12,9 @@ # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see https://www.gnu.org/licenses/. + +# Generated by Django 4.2.1 on 2023-05-26 19:40 + import django.db.models.deletion from django.db import migrations, models diff --git a/terraso_backend/apps/project_management/migrations/0009_archive_projects.py b/terraso_backend/apps/project_management/migrations/0009_archive_projects.py index e8f8ed44e..d73f56dc4 100644 --- a/terraso_backend/apps/project_management/migrations/0009_archive_projects.py +++ b/terraso_backend/apps/project_management/migrations/0009_archive_projects.py @@ -1,4 +1,3 @@ -# Generated by Django 4.2.1 on 2023-05-26 19:40 # Copyright © 2023 Technology Matters # # This program is free software: you can redistribute it and/or modify @@ -13,6 +12,9 @@ # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see https://www.gnu.org/licenses/. + +# Generated by Django 4.2.1 on 2023-05-26 19:40 + import django.db.models.deletion from django.db import migrations, models diff --git a/terraso_backend/apps/project_management/migrations/0013_remove_site_created_by_project_description.py b/terraso_backend/apps/project_management/migrations/0013_remove_site_created_by_project_description.py index b3f36faf1..8e97f7a6e 100644 --- a/terraso_backend/apps/project_management/migrations/0013_remove_site_created_by_project_description.py +++ b/terraso_backend/apps/project_management/migrations/0013_remove_site_created_by_project_description.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.2.3 on 2023-07-11 22:26 from django.db import migrations, models diff --git a/terraso_backend/apps/project_management/migrations/0014_site_privacy_alter_project_description.py b/terraso_backend/apps/project_management/migrations/0014_site_privacy_alter_project_description.py index 7a5fa4ec1..4785096e8 100644 --- a/terraso_backend/apps/project_management/migrations/0014_site_privacy_alter_project_description.py +++ b/terraso_backend/apps/project_management/migrations/0014_site_privacy_alter_project_description.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.2.3 on 2023-07-21 23:54 from django.db import migrations, models diff --git a/terraso_backend/apps/project_management/migrations/0015_remove_project_group_project_membership_list.py b/terraso_backend/apps/project_management/migrations/0015_remove_project_group_project_membership_list.py index b3277acae..0a6bfe587 100644 --- a/terraso_backend/apps/project_management/migrations/0015_remove_project_group_project_membership_list.py +++ b/terraso_backend/apps/project_management/migrations/0015_remove_project_group_project_membership_list.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.2.5 on 2023-09-15 15:24 import django.db.models.deletion diff --git a/terraso_backend/apps/project_management/migrations/0016_auto_20230915_1527.py b/terraso_backend/apps/project_management/migrations/0016_auto_20230915_1527.py index 8866910ee..052b90dab 100644 --- a/terraso_backend/apps/project_management/migrations/0016_auto_20230915_1527.py +++ b/terraso_backend/apps/project_management/migrations/0016_auto_20230915_1527.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.2.5 on 2023-09-15 15:27 from django.db import migrations diff --git a/terraso_backend/apps/project_management/migrations/0017_auto_20230915_1527.py b/terraso_backend/apps/project_management/migrations/0017_auto_20230915_1527.py index d00adffd1..3e0cf2dcc 100644 --- a/terraso_backend/apps/project_management/migrations/0017_auto_20230915_1527.py +++ b/terraso_backend/apps/project_management/migrations/0017_auto_20230915_1527.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.2.5 on 2023-09-15 15:27 import django.db.models.deletion diff --git a/terraso_backend/apps/project_management/migrations/0019_project_seen_by_site_seen_by.py b/terraso_backend/apps/project_management/migrations/0019_project_seen_by_site_seen_by.py index bbd9d837b..d6a62cbfb 100644 --- a/terraso_backend/apps/project_management/migrations/0019_project_seen_by_site_seen_by.py +++ b/terraso_backend/apps/project_management/migrations/0019_project_seen_by_site_seen_by.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.2.5 on 2023-09-14 23:47 from django.conf import settings diff --git a/terraso_backend/apps/project_management/migrations/0021_project_site_instructions_sitenote.py b/terraso_backend/apps/project_management/migrations/0021_project_site_instructions_sitenote.py index e5900dae0..e33f214db 100644 --- a/terraso_backend/apps/project_management/migrations/0021_project_site_instructions_sitenote.py +++ b/terraso_backend/apps/project_management/migrations/0021_project_site_instructions_sitenote.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.2.6 on 2023-10-27 22:02 import django.db.models.deletion diff --git a/terraso_backend/apps/project_management/migrations/0022_alter_sitenote_options.py b/terraso_backend/apps/project_management/migrations/0022_alter_sitenote_options.py index dad8190e0..8e2aea22c 100644 --- a/terraso_backend/apps/project_management/migrations/0022_alter_sitenote_options.py +++ b/terraso_backend/apps/project_management/migrations/0022_alter_sitenote_options.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.2.6 on 2023-10-30 16:32 from django.db import migrations diff --git a/terraso_backend/apps/project_management/migrations/0023_alter_sitenote_author.py b/terraso_backend/apps/project_management/migrations/0023_alter_sitenote_author.py index 34d3a9a29..a0325770f 100644 --- a/terraso_backend/apps/project_management/migrations/0023_alter_sitenote_author.py +++ b/terraso_backend/apps/project_management/migrations/0023_alter_sitenote_author.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.2.6 on 2023-10-30 16:36 import django.db.models.deletion diff --git a/terraso_backend/apps/project_management/models/__init__.py b/terraso_backend/apps/project_management/models/__init__.py index 4f344d154..fb8391535 100644 --- a/terraso_backend/apps/project_management/models/__init__.py +++ b/terraso_backend/apps/project_management/models/__init__.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + from .projects import Project, ProjectMembership, ProjectMembershipList, ProjectSettings from .site_notes import SiteNote from .sites import Site diff --git a/terraso_backend/apps/shared_data/migrations/0011_visualizationconfig_owner.py b/terraso_backend/apps/shared_data/migrations/0011_visualizationconfig_owner.py index 73d6b57fe..80f382b84 100644 --- a/terraso_backend/apps/shared_data/migrations/0011_visualizationconfig_owner.py +++ b/terraso_backend/apps/shared_data/migrations/0011_visualizationconfig_owner.py @@ -13,7 +13,6 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see https://www.gnu.org/licenses/. - # Generated by Django 4.2.6 on 2023-10-13 22:10 import django.db.models.deletion diff --git a/terraso_backend/apps/shared_data/visualization_tileset_tasks.py b/terraso_backend/apps/shared_data/visualization_tileset_tasks.py index b5bba752f..5239b8f65 100644 --- a/terraso_backend/apps/shared_data/visualization_tileset_tasks.py +++ b/terraso_backend/apps/shared_data/visualization_tileset_tasks.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + import csv import json import threading diff --git a/terraso_backend/apps/soil_id/graphql/soil_data.py b/terraso_backend/apps/soil_id/graphql/soil_data.py index 901cae297..b0785bc09 100644 --- a/terraso_backend/apps/soil_id/graphql/soil_data.py +++ b/terraso_backend/apps/soil_id/graphql/soil_data.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + import graphene from django.db import transaction from graphene_django import DjangoObjectType diff --git a/terraso_backend/apps/soil_id/migrations/0001_initial.py b/terraso_backend/apps/soil_id/migrations/0001_initial.py index 345740de8..aa92a204f 100644 --- a/terraso_backend/apps/soil_id/migrations/0001_initial.py +++ b/terraso_backend/apps/soil_id/migrations/0001_initial.py @@ -13,7 +13,6 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see https://www.gnu.org/licenses/. - import uuid import django.db.models.deletion diff --git a/terraso_backend/apps/soil_id/migrations/0002_depthdependentsoildata_bedrock_and_more.py b/terraso_backend/apps/soil_id/migrations/0002_depthdependentsoildata_bedrock_and_more.py index ed3c2a0eb..58467e4be 100644 --- a/terraso_backend/apps/soil_id/migrations/0002_depthdependentsoildata_bedrock_and_more.py +++ b/terraso_backend/apps/soil_id/migrations/0002_depthdependentsoildata_bedrock_and_more.py @@ -13,7 +13,6 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see https://www.gnu.org/licenses/. - import django.core.validators from django.db import migrations, models diff --git a/terraso_backend/apps/soil_id/migrations/0003_alter_depthdependentsoildata_options_and_more.py b/terraso_backend/apps/soil_id/migrations/0003_alter_depthdependentsoildata_options_and_more.py index b677a77d3..26da98af1 100644 --- a/terraso_backend/apps/soil_id/migrations/0003_alter_depthdependentsoildata_options_and_more.py +++ b/terraso_backend/apps/soil_id/migrations/0003_alter_depthdependentsoildata_options_and_more.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.2.5 on 2023-09-07 23:31 import django.core.validators diff --git a/terraso_backend/apps/soil_id/migrations/0004_soildata_depth_intervals.py b/terraso_backend/apps/soil_id/migrations/0004_soildata_depth_intervals.py index ae624fc12..7e341608b 100644 --- a/terraso_backend/apps/soil_id/migrations/0004_soildata_depth_intervals.py +++ b/terraso_backend/apps/soil_id/migrations/0004_soildata_depth_intervals.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.2.5 on 2023-09-21 15:54 from django.db import migrations, models diff --git a/terraso_backend/apps/soil_id/migrations/0006_soildata_flooding_select_soildata_grazing_and_more.py b/terraso_backend/apps/soil_id/migrations/0006_soildata_flooding_select_soildata_grazing_and_more.py index f13f404fa..482f2df87 100644 --- a/terraso_backend/apps/soil_id/migrations/0006_soildata_flooding_select_soildata_grazing_and_more.py +++ b/terraso_backend/apps/soil_id/migrations/0006_soildata_flooding_select_soildata_grazing_and_more.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.2.6 on 2023-10-16 21:05 from django.db import migrations, models diff --git a/terraso_backend/apps/soil_id/migrations/0007_rename_grazing_soildata_grazing_select.py b/terraso_backend/apps/soil_id/migrations/0007_rename_grazing_soildata_grazing_select.py index 4fd865318..ac1d9501e 100644 --- a/terraso_backend/apps/soil_id/migrations/0007_rename_grazing_soildata_grazing_select.py +++ b/terraso_backend/apps/soil_id/migrations/0007_rename_grazing_soildata_grazing_select.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.2.6 on 2023-10-16 23:01 from django.db import migrations diff --git a/terraso_backend/apps/soil_id/migrations/0008_soildata_depth_interval_preset.py b/terraso_backend/apps/soil_id/migrations/0008_soildata_depth_interval_preset.py index 9bd20c12f..fe803e32f 100644 --- a/terraso_backend/apps/soil_id/migrations/0008_soildata_depth_interval_preset.py +++ b/terraso_backend/apps/soil_id/migrations/0008_soildata_depth_interval_preset.py @@ -12,6 +12,7 @@ # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see https://www.gnu.org/licenses/. + # Generated by Django 4.2.7 on 2023-12-04 15:18 from django.db import migrations, models diff --git a/terraso_backend/tests/audit_logs/test_services.py b/terraso_backend/tests/audit_logs/test_services.py index 7c565ac7d..b36f495f6 100644 --- a/terraso_backend/tests/audit_logs/test_services.py +++ b/terraso_backend/tests/audit_logs/test_services.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + import datetime from django.test import TestCase diff --git a/terraso_backend/tests/auth/test_oauth.py b/terraso_backend/tests/auth/test_oauth.py index 9b5109912..ca2031571 100644 --- a/terraso_backend/tests/auth/test_oauth.py +++ b/terraso_backend/tests/auth/test_oauth.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + from urllib.parse import parse_qs, urlparse import pytest diff --git a/terraso_backend/tests/auth/test_token_exchange.py b/terraso_backend/tests/auth/test_token_exchange.py index 1cb6c39d0..4e966e412 100644 --- a/terraso_backend/tests/auth/test_token_exchange.py +++ b/terraso_backend/tests/auth/test_token_exchange.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + import base64 import math from datetime import datetime, timedelta diff --git a/terraso_backend/tests/collaboration/test_signals.py b/terraso_backend/tests/collaboration/test_signals.py index f189b248a..07305fc71 100644 --- a/terraso_backend/tests/collaboration/test_signals.py +++ b/terraso_backend/tests/collaboration/test_signals.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + import pytest from django.urls import reverse from httpx import Response diff --git a/terraso_backend/tests/graphql/mutations/test_soil_data.py b/terraso_backend/tests/graphql/mutations/test_soil_data.py index 2f844b934..76ca416bc 100644 --- a/terraso_backend/tests/graphql/mutations/test_soil_data.py +++ b/terraso_backend/tests/graphql/mutations/test_soil_data.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + import json import pytest diff --git a/terraso_backend/tests/graphql/test_audit_log.py b/terraso_backend/tests/graphql/test_audit_log.py index a1c868077..0b6d60517 100644 --- a/terraso_backend/tests/graphql/test_audit_log.py +++ b/terraso_backend/tests/graphql/test_audit_log.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + import pytest from apps.audit_logs import api, services diff --git a/terraso_backend/tests/story_map/test_views.py b/terraso_backend/tests/story_map/test_views.py index 35fb1a8b2..8f7f43533 100644 --- a/terraso_backend/tests/story_map/test_views.py +++ b/terraso_backend/tests/story_map/test_views.py @@ -1,3 +1,18 @@ +# Copyright © 2023 Technology Matters +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see https://www.gnu.org/licenses/. + import json from unittest import mock from unittest.mock import patch