From c73e098b06eeff9ae35a285a83e2e182f56e0f09 Mon Sep 17 00:00:00 2001 From: Natalie Russell Date: Thu, 11 Jan 2024 19:15:42 +0000 Subject: [PATCH 1/3] Adding postman example configs for GCP --- .../GCPPrivacySandbox.postman_collection.json | 92 +++++++++++++++++++ .../GCP_workspace.postman_globals.json | 33 +++++++ 2 files changed, 125 insertions(+) create mode 100644 tools/postman_configurations/GCPPrivacySandbox.postman_collection.json create mode 100644 tools/postman_configurations/GCP_workspace.postman_globals.json diff --git a/tools/postman_configurations/GCPPrivacySandbox.postman_collection.json b/tools/postman_configurations/GCPPrivacySandbox.postman_collection.json new file mode 100644 index 00000000..48ee3bd0 --- /dev/null +++ b/tools/postman_configurations/GCPPrivacySandbox.postman_collection.json @@ -0,0 +1,92 @@ +{ + "info": { + "_postman_id": "57a11868-f3c8-4ccc-b43a-af43e038700f", + "name": "GCP Privacy Sandbox", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "32120047" + }, + "item": [ + { + "name": "createJob", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"job_request_id\": \"\",\n \"input_data_blob_prefix\": \"/.avro\",\n \"input_data_bucket_name\": \"\",\n \"output_data_blob_prefix\": \"/\",\n \"output_data_bucket_name\": \"\",\n \"job_parameters\": {\n \"output_domain_blob_prefix\": \"/.avro\",\n \"output_domain_bucket_name\": \"\",\n \"attribution_report_to\": \"\",\n \"report_error_threshold_percentage\": \"10\",\n \"debug_run\": \"true\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{environment}}-{{region}}-frontend-service-{{cloud-function-id}}-uc.a.run.app/v1alpha/createJob", + "protocol": "https", + "host": [ + "{{environment}}-{{region}}-frontend-service-{{cloud-function-id}}-uc", + "a", + "run", + "app" + ], + "path": [ + "v1alpha", + "createJob" + ] + } + }, + "response": [] + }, + { + "name": "getJob", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://{{environment}}-{{region}}-frontend-service-{{cloud-function-id}}-uc.a.run.app/v1alpha/getJob?job_request_id={{request-id}}", + "protocol": "https", + "host": [ + "{{environment}}-{{region}}-frontend-service-{{cloud-function-id}}-uc", + "a", + "run", + "app" + ], + "path": ["v1alpha", "getJob"], + "query": [ + { + "key": "job_request_id", + "value": "{{request-id}}" + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [""] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [""] + } + } + ] +} diff --git a/tools/postman_configurations/GCP_workspace.postman_globals.json b/tools/postman_configurations/GCP_workspace.postman_globals.json new file mode 100644 index 00000000..5b6c7553 --- /dev/null +++ b/tools/postman_configurations/GCP_workspace.postman_globals.json @@ -0,0 +1,33 @@ +{ + "id": "4a7cfc0f-9e23-41f2-8aa5-480e9f87737f", + "values": [ + { + "key": "region", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "environment", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "cloud-function-id", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "request-id", + "value": "", + "type": "default", + "enabled": true + } + ], + "name": "Globals", + "_postman_variable_scope": "globals", + "_postman_exported_at": "2024-01-08T20:00:52.445Z", + "_postman_exported_using": "Postman/10.21.11-240102-2003" +} From c8f47565b557471dfa24b26f7936b83820ab9318 Mon Sep 17 00:00:00 2001 From: Severin Ferrand <19885877+Seburan@users.noreply.github.com> Date: Fri, 19 Jan 2024 13:46:15 +0900 Subject: [PATCH 2/3] [repo] update release notes --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 630d7d86..0517e8d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## v1.2.1 (2024/1/19) + +### Enhancements + +- Tools : + - Adding Postman configs for Aggregation Service running on GCP +- CI/CD : + - Update pre-commit-config to upgrade revision of mirrors-prettier and markdownlint-cli2 + +### Bug Fixes + +NA + ## v1.2 (2023/12/6) ### Enhancements From f5e86b3068a36fb5fa8e0d01325134a97cfb8b4b Mon Sep 17 00:00:00 2001 From: Severin Ferrand <19885877+Seburan@users.noreply.github.com> Date: Fri, 19 Jan 2024 13:50:20 +0900 Subject: [PATCH 3/3] [cicd] upgrade pre-commit-config --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3e482884..294404ca 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ fail_fast: true repos: - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.1.0 + rev: v4.0.0-alpha.8 hooks: - id: prettier types_or: @@ -32,7 +32,7 @@ repos: - yaml - repo: https://github.com/DavidAnson/markdownlint-cli2 - rev: v0.10.0 + rev: v0.12.1 hooks: - id: markdownlint-cli2 name: lint markdown