From c804d23f44fb6f9d417acf586f6a7f940ac8279d Mon Sep 17 00:00:00 2001 From: tnghwk0661 Date: Mon, 29 Aug 2022 20:02:53 +0900 Subject: [PATCH 1/3] fix: typo in agrifood/azure-agrifood-farming --- .vscode/cspell.json | 11 +++++++++-- sdk/agrifood/azure-agrifood-farming/samples/README.md | 8 ++++---- .../samples/async/sample_attachments_async.py | 2 +- .../samples/async/sample_cascade_delete_async.py | 2 +- .../samples/sample_attachments.py | 2 +- .../samples/sample_cascade_delete.py | 2 +- ...{test_farm_heirarchy.py => test_farm_hierarchy.py} | 2 +- sdk/agrifood/azure-agrifood-farming/tests/testcase.py | 2 +- 8 files changed, 19 insertions(+), 12 deletions(-) rename sdk/agrifood/azure-agrifood-farming/tests/{test_farm_heirarchy.py => test_farm_hierarchy.py} (98%) diff --git a/.vscode/cspell.json b/.vscode/cspell.json index cc5464888fa2..f2f54cf22ee4 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -29,7 +29,6 @@ "sdk/anomalydetector/azure-ai-anomalydetector/**", "sdk/applicationinsights/azure-applicationinsights/**", "sdk/appconfiguration/azure-appconfiguration/**", - "sdk/agrifood/azure-agrifood-farming/**", "sdk/attestation/azure-security-attestation/**", "sdk/batch/azure-batch/**", "sdk/cognitivelanguage/azure-ai-language-questionanswering/**", @@ -379,7 +378,7 @@ "dont", "UMLS", "nach", - "año", + "año", "BRCPF", "abril", "zalgo", @@ -618,6 +617,14 @@ "words": [ "pysdkci" ] + }, + { + "filename": "sdk/agrifood/azure-agrifood-farming/**", + "words": [ + "NDVI", + "ndvi", + "Unhandleable" + ] } ], "allowCompoundWords": true diff --git a/sdk/agrifood/azure-agrifood-farming/samples/README.md b/sdk/agrifood/azure-agrifood-farming/samples/README.md index 2c22964d541a..ef1a106fed67 100644 --- a/sdk/agrifood/azure-agrifood-farming/samples/README.md +++ b/sdk/agrifood/azure-agrifood-farming/samples/README.md @@ -10,18 +10,18 @@ urlFragment: farmbeats-samples # Azure FarmBeats samples for Python client -The following sample programs demonstrate some common use case scenairos for the [FarmBeats Python client library][python_sdk]. +The following sample programs demonstrate some common use case scenarios for the [FarmBeats Python client library][python_sdk]. | Files | Description | | ------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [sample_hello_world.py][hello_world_sample] | This sample demonstrates the most basic operation that can be performed - creation of a Farmer. Use this to understand how to create the client object, how to authenticate it, and make sure your client is set up correctly to call into your FarmBeats endpoint. | | [sample_farm_hierarchy.py][farm_hierarchy_sample] | This sample demonstrates how to create a simple [farm hierarchy][farm_hierarchy_docs], comprising of Farmer, Farm, Field and Boundary. | -| [sample_farm_hierarchy_complete.py][farm_hierarchy_complete_sample] | This builds on the previous sample to add to the previous sample, and demonstrate the relationships between Crops, Crop Varities, Seasons and Seasonal Fields and the other farm hierarchy objects. | +| [sample_farm_hierarchy_complete.py][farm_hierarchy_complete_sample] | This builds on the previous sample to add to the previous sample, and demonstrate the relationships between Crops, Crop Varieties, Seasons and Seasonal Fields and the other farm hierarchy objects. | | [sample_satellite_download.py][satellite_download_sample] | This sample demonstrates FarmBeats' satellite integrations and how to ingest satellite imagery into the platform, and then download them onto a local directory. This demonstrates key concepts of how to create a job in FarmBeats, and how to poll on the completion of the job using the SDK. In the [corresponding async sample][satellite_download_async_sample] we demonstrate how to handle concurrent download of potentially hundreds of files by limiting the max concurrency using semaphores. | -| [sample_attachments.py][attachments_sample] | This sample demonstrates FarmBeats' capabaility of storing arbitrary files in context to the various farm hierarchy objects. We first attach some files onto a farmer and a farm, and then download all existing attachments for the farmer onto a local directory. | +| [sample_attachments.py][attachments_sample] | This sample demonstrates FarmBeats' capability of storing arbitrary files in context to the various farm hierarchy objects. We first attach some files onto a farmer and a farm, and then download all existing attachments for the farmer onto a local directory. | | [sample_cascade_delete.py][cascade_delete_sample] | This sample demonstrates the usage of cascade delete jobs to perform cleanup of farm hierarchy objects. A cascade delete job handles the recursive deletion of all dependent data for the given parent resource. Use this to clean up the sample resources that you create in the other samples. | -Additionally, for each sample, there are corresponding files in the [`samples/async`][async_samples] directory that demonstrate the same scenarios using the async FarmBeats client. Using the async approach will offer much better performance when parts of the code can be executed concurrentlly. This is especially important when downloading files, such as in the satellite data download sample, and in the attachments sample. +Additionally, for each sample, there are corresponding files in the [`samples/async`][async_samples] directory that demonstrate the same scenarios using the async FarmBeats client. Using the async approach will offer much better performance when parts of the code can be executed concurrently. This is especially important when downloading files, such as in the satellite data download sample, and in the attachments sample. ## Prerequisites diff --git a/sdk/agrifood/azure-agrifood-farming/samples/async/sample_attachments_async.py b/sdk/agrifood/azure-agrifood-farming/samples/async/sample_attachments_async.py index af9c6d82972e..369ca74cf9c3 100644 --- a/sdk/agrifood/azure-agrifood-farming/samples/async/sample_attachments_async.py +++ b/sdk/agrifood/azure-agrifood-farming/samples/async/sample_attachments_async.py @@ -5,7 +5,7 @@ FILE: sample_attachments_async.py DESCRIPTION: - This sample demonstrates FarmBeats' capabaility of storing arbitrary files + This sample demonstrates FarmBeats' capability of storing arbitrary files in context to the various farm hierarchy objects. We first attach some files onto a farmer and a farm, and then download all existing attachments for the farmer onto a local directory. diff --git a/sdk/agrifood/azure-agrifood-farming/samples/async/sample_cascade_delete_async.py b/sdk/agrifood/azure-agrifood-farming/samples/async/sample_cascade_delete_async.py index 039db5059d5e..bddb1990d162 100644 --- a/sdk/agrifood/azure-agrifood-farming/samples/async/sample_cascade_delete_async.py +++ b/sdk/agrifood/azure-agrifood-farming/samples/async/sample_cascade_delete_async.py @@ -6,7 +6,7 @@ DESCRIPTION: This sample demonstrates - - Getting a filterd list of farmers based on last modified timestamp + - Getting a filtered list of farmers based on last modified timestamp - Queuing a cascade delete job on a farmer, and polling for it to complete USAGE: diff --git a/sdk/agrifood/azure-agrifood-farming/samples/sample_attachments.py b/sdk/agrifood/azure-agrifood-farming/samples/sample_attachments.py index 8a61a2787cb4..c14cced3c771 100644 --- a/sdk/agrifood/azure-agrifood-farming/samples/sample_attachments.py +++ b/sdk/agrifood/azure-agrifood-farming/samples/sample_attachments.py @@ -5,7 +5,7 @@ FILE: sample_attachments.py DESCRIPTION: - This sample demonstrates FarmBeats' capabaility of storing arbitrary files + This sample demonstrates FarmBeats' capability of storing arbitrary files in context to the various farm hierarchy objects. We first attach some files onto a farmer and a farm, and then download all existing attachments for the farmer onto a local directory. diff --git a/sdk/agrifood/azure-agrifood-farming/samples/sample_cascade_delete.py b/sdk/agrifood/azure-agrifood-farming/samples/sample_cascade_delete.py index 43f5d763eab1..92b31368f2ba 100644 --- a/sdk/agrifood/azure-agrifood-farming/samples/sample_cascade_delete.py +++ b/sdk/agrifood/azure-agrifood-farming/samples/sample_cascade_delete.py @@ -6,7 +6,7 @@ DESCRIPTION: This sample demonstrates - - Getting a filterd list of farmers based on last modified timestamp + - Getting a filtered list of farmers based on last modified timestamp - Queuing a cascade delete job on a farmer, and polling for it to complete USAGE: diff --git a/sdk/agrifood/azure-agrifood-farming/tests/test_farm_heirarchy.py b/sdk/agrifood/azure-agrifood-farming/tests/test_farm_hierarchy.py similarity index 98% rename from sdk/agrifood/azure-agrifood-farming/tests/test_farm_heirarchy.py rename to sdk/agrifood/azure-agrifood-farming/tests/test_farm_hierarchy.py index ee0aa16912b9..e90eb6b06559 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/test_farm_heirarchy.py +++ b/sdk/agrifood/azure-agrifood-farming/tests/test_farm_hierarchy.py @@ -10,7 +10,7 @@ from testcase import FarmBeatsPowerShellPreparer, FarmBeatsTest -class FarmHeirarchyTestCase(FarmBeatsTest): +class FarmHierarchyTestCase(FarmBeatsTest): @FarmBeatsPowerShellPreparer() def test_farmer_operations(self, agrifood_endpoint): diff --git a/sdk/agrifood/azure-agrifood-farming/tests/testcase.py b/sdk/agrifood/azure-agrifood-farming/tests/testcase.py index f52f7354efee..704be1477433 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/testcase.py +++ b/sdk/agrifood/azure-agrifood-farming/tests/testcase.py @@ -58,7 +58,7 @@ def create_boundary(self, client, farmer_id, boundary_id): ) ) except Exception as e: - print("!!! Unhandlable error in boundary creation") + print("!!! Unhandleable error in boundary creation") print(e) print(dir(e)) print(e.response.body()) From e685a79e0fc3751b84c52237d1c67235962d2e1e Mon Sep 17 00:00:00 2001 From: tnghwk0661 Date: Tue, 30 Aug 2022 16:48:58 +0900 Subject: [PATCH 2/3] [agrifood/azure-agrifood-farming] modify cspell --- .vscode/cspell.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/cspell.json b/.vscode/cspell.json index f2f54cf22ee4..8b8b4c5ad075 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -378,7 +378,7 @@ "dont", "UMLS", "nach", - "año", + "año", "BRCPF", "abril", "zalgo", From ffb07adc7a57dd0e777f6297b860d839753a928e Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Tue, 6 Sep 2022 13:24:53 -0700 Subject: [PATCH 3/3] Update cspell.json --- .vscode/cspell.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 3e0169e3e49d..dafe73474a20 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -673,6 +673,7 @@ "NDVI", "ndvi", "Unhandleable" + ] }, { "filename": "sdk/mixedreality/azure-mixedreality-authentication/**",