From 8483aafe691dca5f87155dad8f323cd25f24870c Mon Sep 17 00:00:00 2001 From: Andrew Player Date: Fri, 19 Jul 2024 11:29:47 -0500 Subject: [PATCH 01/12] add actions --- .github/workflows/changelog.yml | 16 ++++++++++++++++ .github/workflows/release.yml | 14 ++++++++++++++ .github/workflows/tag-version.yml | 12 ++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 .github/workflows/changelog.yml create mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/tag-version.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..fd29650 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,16 @@ +name: Changelog updated? + +on: + pull_request: + types: + - opened + - labeled + - unlabeled + - synchronize + branches: + - main + - develop + +jobs: + call-changelog-check-workflow: + uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.11.2 \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..4044862 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,14 @@ +name: Write release and finish + +on: + push: + tags: + - 'v*' + +jobs: + call-release-workflow: + uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.11.2 + with: + release_prefix: HyP3 GAMMA + secrets: + USER_TOKEN: ${{ secrets.TOOLS_BOT_PAK }} \ No newline at end of file diff --git a/.github/workflows/tag-version.yml b/.github/workflows/tag-version.yml new file mode 100644 index 0000000..0c4f735 --- /dev/null +++ b/.github/workflows/tag-version.yml @@ -0,0 +1,12 @@ +name: Tag version + +on: + push: + branches: + - main + +jobs: + call-bump-version-workflow: + uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.11.2 + secrets: + USER_TOKEN: ${{ secrets.TOOLS_BOT_PAK }} \ No newline at end of file From 3d8e8b37a897f3129e1e9ddcc0464c3d879ecbee Mon Sep 17 00:00:00 2001 From: Andrew Player Date: Fri, 19 Jul 2024 11:30:46 -0500 Subject: [PATCH 02/12] add code of conduct --- CODE_OF_CONDUCT.md | 129 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..aabe8cd --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,129 @@ + +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, religion, or sexual identity +and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +* Focusing on what is best not just for us as individuals, but for the + overall community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or + advances of any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email + address, without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement by emailing the +ASF APD/Tools team at [UAF-asf-apd@alaska.edu](mailto:UAF-asf-apd@alaska.edu). +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series +of actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or +permanent ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within +the community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.0, available at +https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. + +Community Impact Guidelines were inspired by [Mozilla's code of conduct +enforcement ladder](https://github.com/mozilla/diversity). + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see the FAQ at +https://www.contributor-covenant.org/faq. Translations are available at +https://www.contributor-covenant.org/translations. From d3718afd06aa4d0c5a5ad1bf45f746eec148f58c Mon Sep 17 00:00:00 2001 From: Andrew Player Date: Fri, 19 Jul 2024 11:30:55 -0500 Subject: [PATCH 03/12] add README --- README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..895c6cb --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Sentinel-1 Orbits + +Lambda Function and API for the retrieval of Sentinel-1 orbits, from Copernicus, for storage in AWS S3. \ No newline at end of file From 8c23dc202eab4037e1c6acf73055ebae3ce39aa6 Mon Sep 17 00:00:00 2001 From: Andrew Player Date: Fri, 19 Jul 2024 11:31:03 -0500 Subject: [PATCH 04/12] update license for ASF --- LICENSE | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/LICENSE b/LICENSE index 95851b1..888bb35 100644 --- a/LICENSE +++ b/LICENSE @@ -1,20 +1,21 @@ BSD 3-Clause License -Copyright (c) 2023, Andrew Johnston +Copyright (c) 2021, Alaska Satellite Facility +All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. -3. Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE From d816ab9fd65bcfc44d2d87b12f2bfb94d6ab6873 Mon Sep 17 00:00:00 2001 From: Andrew Player Date: Fri, 19 Jul 2024 11:31:19 -0500 Subject: [PATCH 05/12] add codeowners for PRs --- .github/CODEOWNERS | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..600eded --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +# These owners will be requested for review when someone opens a pull request. +* @ASFHyP3/plugins \ No newline at end of file From 124c9d5a152979cec6b8df34434bde0845fcb297 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 19 Jul 2024 16:33:04 +0000 Subject: [PATCH 06/12] Bump boto3 from 1.34.144 to 1.34.145 Bumps [boto3](https://github.com/boto/boto3) from 1.34.144 to 1.34.145. - [Release notes](https://github.com/boto/boto3/releases) - [Commits](https://github.com/boto/boto3/compare/1.34.144...1.34.145) --- updated-dependencies: - dependency-name: boto3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-api.txt | 2 +- requirements-fetcher.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements-api.txt b/requirements-api.txt index a3cf413..c350e07 100644 --- a/requirements-api.txt +++ b/requirements-api.txt @@ -1,4 +1,4 @@ -boto3==1.34.144 +boto3==1.34.145 cachetools==5.4.0 connexion[swagger-ui]==3.1.0 mangum==0.17.0 diff --git a/requirements-fetcher.txt b/requirements-fetcher.txt index 89a1824..437b6b2 100644 --- a/requirements-fetcher.txt +++ b/requirements-fetcher.txt @@ -1,2 +1,2 @@ -boto3==1.34.144 +boto3==1.34.145 requests==2.32.3 From cfdf918054fcd0803b88997143ce137fa1b36228 Mon Sep 17 00:00:00 2001 From: Andrew Player Date: Fri, 19 Jul 2024 12:24:26 -0500 Subject: [PATCH 07/12] Update .github/workflows/release.yml Co-authored-by: Andrew Johnston --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4044862..54e8d91 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,6 @@ jobs: call-release-workflow: uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.11.2 with: - release_prefix: HyP3 GAMMA + release_prefix: Sentinel-1 Obrits secrets: USER_TOKEN: ${{ secrets.TOOLS_BOT_PAK }} \ No newline at end of file From 43ccdced82b333b56c02d36c56f57902bee22145 Mon Sep 17 00:00:00 2001 From: Andrew Player Date: Fri, 19 Jul 2024 12:24:46 -0500 Subject: [PATCH 08/12] Update .github/workflows/release.yml Co-authored-by: Andrew Johnston --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54e8d91..30ac58c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,4 +11,4 @@ jobs: with: release_prefix: Sentinel-1 Obrits secrets: - USER_TOKEN: ${{ secrets.TOOLS_BOT_PAK }} \ No newline at end of file + USER_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 441651d44e565f5b65719f96f1f6350851d516cb Mon Sep 17 00:00:00 2001 From: Andrew Player Date: Fri, 19 Jul 2024 12:24:54 -0500 Subject: [PATCH 09/12] Update .github/workflows/tag-version.yml Co-authored-by: Andrew Johnston --- .github/workflows/tag-version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tag-version.yml b/.github/workflows/tag-version.yml index 0c4f735..52d4a98 100644 --- a/.github/workflows/tag-version.yml +++ b/.github/workflows/tag-version.yml @@ -9,4 +9,4 @@ jobs: call-bump-version-workflow: uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.11.2 secrets: - USER_TOKEN: ${{ secrets.TOOLS_BOT_PAK }} \ No newline at end of file + USER_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 8efc58e32c42ed344be345cb0f74b99e97c7d1f4 Mon Sep 17 00:00:00 2001 From: Andrew Player Date: Fri, 19 Jul 2024 12:25:01 -0500 Subject: [PATCH 10/12] Update .github/workflows/release.yml Co-authored-by: Andrew Johnston --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 30ac58c..fd79d57 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,6 @@ jobs: call-release-workflow: uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.11.2 with: - release_prefix: Sentinel-1 Obrits + release_prefix: Sentinel-1 Orbits secrets: USER_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 2296607576cdc92fe91e57c3fd81d895040fc143 Mon Sep 17 00:00:00 2001 From: Andrew Player Date: Fri, 19 Jul 2024 12:27:13 -0500 Subject: [PATCH 11/12] Update LICENSE Co-authored-by: Andrew Johnston --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 888bb35..ec29375 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ BSD 3-Clause License -Copyright (c) 2021, Alaska Satellite Facility +Copyright (c) 2024, Alaska Satellite Facility All rights reserved. Redistribution and use in source and binary forms, with or without From 1a60e8c2479714eac2d6856259461689319d4e25 Mon Sep 17 00:00:00 2001 From: Andrew Johnston Date: Fri, 19 Jul 2024 09:36:49 -0800 Subject: [PATCH 12/12] add changelog --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..c096c9d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,12 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/) +and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [0.0.1] + +### Added +* Initial release of fetcher and api applications