Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Update workflows (#3428)
Openverse (Bot)ca82f843d5e8
diff --git a/.github/workflows/pr_label_check.yml b/.github/workflows/pr_label_check.ymlindex cf6199d17..7a32efa41 100644--- a/.github/workflows/pr_label_check.yml+++ b/.github/workflows/pr_label_check.yml@@ -42,7 +42,7 @@ jobs:- get_label_groupssteps:- name: Check aspect label- uses: docker://agilepathway/pull-request-label-checker:v1.6.3+ uses: docker://agilepathway/pull-request-label-checker:v1.6.11with:one_of: ${{ needs.get_label_groups.outputs.aspect }}repo_token: ${{ secrets.GITHUB_TOKEN }}@@ -55,7 +55,7 @@ jobs:- get_label_groupssteps:- name: Check goal label- uses: docker://agilepathway/pull-request-label-checker:v1.6.3+ uses: docker://agilepathway/pull-request-label-checker:v1.6.11with:one_of: ${{ needs.get_label_groups.outputs.goal }}repo_token: ${{ secrets.GITHUB_TOKEN }}@@ -68,7 +68,7 @@ jobs:- get_label_groupssteps:- name: Check priority label- uses: docker://agilepathway/pull-request-label-checker:v1.6.3+ uses: docker://agilepathway/pull-request-label-checker:v1.6.11with:one_of: ${{ needs.get_label_groups.outputs.priority }}repo_token: ${{ secrets.GITHUB_TOKEN }}@@ -81,7 +81,7 @@ jobs:- get_label_groupssteps:- name: Check stack label- uses: docker://agilepathway/pull-request-label-checker:v1.6.3+ uses: docker://agilepathway/pull-request-label-checker:v1.6.11with:any_of: ${{ needs.get_label_groups.outputs.stack }}repo_token: ${{ secrets.GITHUB_TOKEN }}diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.ymlindex 25522493e..bd98989f6 100644--- a/.github/workflows/renovate.yml+++ b/.github/workflows/renovate.yml@@ -15,7 +15,7 @@ on:# Run every 30 minutes:- cron: "0,30 * * * *"-# Adding these as env variables makes it easy to re-use them in different steps and in bash.+# Adding these as env variables makes it easy to reuse them in different steps and in bash.env:cache_archive: renovate_cache.tar.gz# This is the dir renovate provides -- if we set our own directory via cacheDir, we can run into permissions issues.@@ -61,7 +61,7 @@ jobs:sudo chown -R runneradmin:root /tmp/renovate/ls -R "$cache_dir"- - uses: renovatebot/[email protected]+ - uses: renovatebot/[email protected]with:configurationFile: .github/renovate.jsontoken: ${{ secrets.ACCESS_TOKEN }}diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 72f6b7edc..77469c090 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -13,7 +13,7 @@ repos:pass_filenames: false- repo: https://github.com/pre-commit/pre-commit-hooks- rev: v4.4.0+ rev: v4.5.0hooks:- id: trailing-whitespaceargs: [--markdown-linebreak-ext=md]@@ -47,21 +47,21 @@ repos:- --lines-after-imports=2- repo: https://github.com/asottile/pyupgrade- rev: v3.3.1+ rev: v3.15.0hooks:- id: pyupgradeargs:- --py310-plus- repo: https://github.com/charliermarsh/ruff-pre-commit- rev: "v0.0.261"+ rev: "v0.1.7"hooks:- id: ruffargs:- --fix- repo: https://github.com/ambv/black- rev: 23.3.0+ rev: 23.11.0hooks:- id: blackargs:@@ -85,7 +85,7 @@ repos:# Use the `.prettierignore` and `.prettier.config.js` files to configure project-specific requirements.- repo: https://github.com/pre-commit/mirrors-prettier- rev: v2.6.0+ rev: v2.7.1hooks:- id: prettieradditional_dependencies:@@ -104,12 +104,12 @@ repos:- id: shfmt-docker- repo: https://github.com/rhysd/actionlint- rev: v1.6.24+ rev: v1.6.26hooks:- id: actionlint-docker- repo: https://github.com/codespell-project/codespell- rev: v2.2.5+ rev: v2.2.6hooks:- id: codespellargs: [@@ -173,7 +173,7 @@ repos:pass_filenames: false- repo: https://github.com/renovatebot/pre-commit-hooks- rev: 37.43.1+ rev: 37.89.2hooks:- id: renovate-config-validatorargs:diff --git a/api/api/controllers/search_controller.py b/api/api/controllers/search_controller.pyindex cf5f76a04..ac18488d0 100644--- a/api/api/controllers/search_controller.py+++ b/api/api/controllers/search_controller.py@@ -567,7 +567,7 @@ def get_sources(index):cache_fetch_failed = Truesources = Nonelog.warning("Source cache fetch failed due to corruption")- if type(sources) == list or cache_fetch_failed:+ if isinstance(sources, list) or cache_fetch_failed:# Invalidate old provider format.cache.delete(key=source_cache_name)if not sources or sources:diff --git a/api/test/unit/controllers/test_search_controller.py b/api/test/unit/controllers/test_search_controller.pyindex 6d87311c6..e939e521e 100644--- a/api/test/unit/controllers/test_search_controller.py+++ b/api/test/unit/controllers/test_search_controller.py@@ -63,7 +63,7 @@ def cache_setter():(0, 100, 10, 1, (0, 0)),# Evenly divisible number of pages(25, 5, 5, 1, (25, 5)),- # An edge case that previously did not behave as expected with evenly divisble numbers of pages+ # An edge case that previously did not behave as expected with evenly divisible numbers of pages(20, 5, 5, 1, (20, 4)),# Unevenly divisible number of pages(21, 5, 5, 1, (21, 5)),diff --git a/catalog/dags/common/licenses/licenses.py b/catalog/dags/common/licenses/licenses.pyindex 815e45809..a939de24d 100644--- a/catalog/dags/common/licenses/licenses.py+++ b/catalog/dags/common/licenses/licenses.py@@ -184,7 +184,7 @@ def _get_valid_cc_url(license_url) -> str | None:rewritten URL. Otherwise, we return None."""logger.debug(f"Checking license URL {license_url}")- if type(license_url) != str:+ if not isinstance(license_url, str):logger.debug(f"License URL is not a string. Type is {type(license_url)}")returndiff --git a/catalog/dags/common/storage/columns.py b/catalog/dags/common/storage/columns.pyindex 5c096ba4f..21e094b60 100644--- a/catalog/dags/common/storage/columns.py+++ b/catalog/dags/common/storage/columns.py@@ -172,7 +172,7 @@ class Column(ABC):)def __enforce_char_limit(self, string, limit, truncate=True):- if not type(string) == str:+ if not isinstance(string, str):logger.debug(f"Cannot limit characters on non-string type {type(string)}."f"Input was {string}."diff --git a/catalog/dags/common/storage/media.py b/catalog/dags/common/storage/media.pyindex deb694b27..2262141a4 100644--- a/catalog/dags/common/storage/media.py+++ b/catalog/dags/common/storage/media.py@@ -249,7 +249,7 @@ class MediaStore(metaclass=abc.ABCMeta)::param tag: the tag to be verified against the blacklist:return: true if tag is blacklisted, else returns false"""- if type(tag) == dict: # check if the tag is already enriched+ if isinstance(tag, dict): # check if the tag is already enrichedtag = tag.get("name")if tag in TAG_BLACKLIST:return True@@ -261,7 +261,7 @@ class MediaStore(metaclass=abc.ABCMeta):@staticmethoddef _enrich_meta_data(meta_data, license_url, raw_license_url) -> dict:"""Ensure that meta_data is a dict and contains both license URLs."""- if type(meta_data) != dict:+ if not isinstance(meta_data, dict):logger.debug(f"`meta_data` is not a dictionary: {meta_data}")enriched_meta_data = {"license_url": license_url,@@ -285,7 +285,7 @@ class MediaStore(metaclass=abc.ABCMeta):A list of 'enriched' tags:{"name": "tag_name", "provider": self._PROVIDER}"""- if type(raw_tags) != list:+ if not isinstance(raw_tags, list):logger.debug("`tags` is not a list.")return Noneelse:@@ -296,7 +296,7 @@ class MediaStore(metaclass=abc.ABCMeta):]def _format_raw_tag(self, tag):- if type(tag) == dict and tag.get("name") and tag.get("provider"):+ if isinstance(tag, dict) and tag.get("name") and tag.get("provider"):logger.debug(f"Tag already enriched: {tag}")return tagelse:diff --git a/catalog/dags/common/urls.py b/catalog/dags/common/urls.pyindex b14990bb5..d8dd08f16 100644--- a/catalog/dags/common/urls.py+++ b/catalog/dags/common/urls.py@@ -39,7 +39,7 @@ def validate_url_string(url_string, strip_slash: bool = True):"""logger.debug(f"Validating_url {url_string}")- if not type(url_string) == str or not url_string:+ if not isinstance(url_string, str) or not url_string:returnif url_string and " " in url_string:diff --git a/catalog/dags/data_refresh/data_refresh_task_factory.py b/catalog/dags/data_refresh/data_refresh_task_factory.pyindex 67d0c36a1..adbfe5c54 100644--- a/catalog/dags/data_refresh/data_refresh_task_factory.py+++ b/catalog/dags/data_refresh/data_refresh_task_factory.py@@ -121,7 +121,7 @@ def create_data_refresh_task_group(# filtered index creation. However, it is safer to avoid the possibility# of the race condition altogether.# ``execution_date_fn`` is used to find the most recent run because- # the filtered index createion DAGs are unscheduled so we can't derive+ # the filtered index creation DAGs are unscheduled so we can't derive# anything from the execution date of the current data refresh DAG.create_filtered_index_dag_id = (f"create_filtered_{data_refresh.media_type}_index"diff --git a/catalog/dags/maintenance/rotate_db_snapshots.py b/catalog/dags/maintenance/rotate_db_snapshots.pyindex c1c332128..19fa84ba9 100644--- a/catalog/dags/maintenance/rotate_db_snapshots.py+++ b/catalog/dags/maintenance/rotate_db_snapshots.py@@ -6,7 +6,7 @@ this for us.It runs on Saturdays at 00:00 UTC in order to happen before the data refresh.-The DAG will automatically delete the oldest snapshots when more snaphots+The DAG will automatically delete the oldest snapshots when more snapshotsexist than it is configured to retain.Requires two variables:diff --git a/catalog/dags/providers/provider_api_scripts/finnish_museums.py b/catalog/dags/providers/provider_api_scripts/finnish_museums.pyindex 937cf6494..de842b37e 100644--- a/catalog/dags/providers/provider_api_scripts/finnish_museums.py+++ b/catalog/dags/providers/provider_api_scripts/finnish_museums.py@@ -164,7 +164,7 @@ class FinnishMuseumsDataIngester(TimeDelineatedProviderDataIngester):authors = []for author_type in ["primary", "secondary", "corporate"]:author = authors_raw.get(author_type)- if author is None or type(author) != dict:+ if not isinstance(author, dict):continueauthor = "; ".join(list(author.keys()))authors.append(author)diff --git a/catalog/dags/providers/provider_api_scripts/smithsonian.py b/catalog/dags/providers/provider_api_scripts/smithsonian.pyindex 0ec9e1635..fd14aefa9 100644--- a/catalog/dags/providers/provider_api_scripts/smithsonian.py+++ b/catalog/dags/providers/provider_api_scripts/smithsonian.py@@ -357,7 +357,7 @@ class SmithsonianDataIngester(ProviderDataIngester):[ifor i in self._check_type(freetext.get("name"), list)- if type(i) == dict+ if isinstance(i, dict)and (self._check_type(i.get("label"), str).lower() in self.creator_types)@@ -370,7 +370,7 @@ class SmithsonianDataIngester(ProviderDataIngester):indexed_structured_creator_generator = (i["content"]for i in self._check_type(indexed_structured.get("name"), list)- if type(i) == dict+ if isinstance(i, dict)and (self._check_type(i.get("type"), str).lower() == "personal_main")and (self._check_type(i.get("content"), str)))diff --git a/catalog/dags/providers/provider_api_scripts/smk.py b/catalog/dags/providers/provider_api_scripts/smk.pyindex fcdd50db1..63d0ff660 100644--- a/catalog/dags/providers/provider_api_scripts/smk.py+++ b/catalog/dags/providers/provider_api_scripts/smk.py@@ -89,13 +89,13 @@ class SmkDataIngester(ProviderDataIngester):if created_date := item.get("created"):meta_data["created_date"] = created_datecollection = item.get("collection")- if type(collection) == list:+ if isinstance(collection, list):meta_data["collection"] = ",".join(collection)techniques = item.get("techniques")- if type(techniques) == list:+ if isinstance(techniques, list):meta_data["techniques"] = ",".join(techniques)colors = item.get("colors")- if type(colors) == list:+ if isinstance(colors, list):meta_data["colors"] = ",".join(colors)return meta_datadiff --git a/catalog/tests/dags/common/storage/test_audio.py b/catalog/tests/dags/common/storage/test_audio.pyindex d91650ded..394e45afa 100644--- a/catalog/tests/dags/common/storage/test_audio.py+++ b/catalog/tests/dags/common/storage/test_audio.py@@ -51,7 +51,7 @@ def setup_env(monkeypatch):def test_AudioStore_includes_provider_in_output_file_string():audio_store = audio.AudioStore("test_provider")- assert type(audio_store.output_path) == str+ assert isinstance(audio_store.output_path, str)assert "test_provider" in audio_store.output_pathdiff --git a/catalog/tests/dags/common/storage/test_columns.py b/catalog/tests/dags/common/storage/test_columns.pyindex 5b0619572..59b1edec2 100644--- a/catalog/tests/dags/common/storage/test_columns.py+++ b/catalog/tests/dags/common/storage/test_columns.py@@ -77,7 +77,7 @@ def test_Column_sanitize_string_casts_to_strings():sc = SanitizeStringColumn()input_list = [1, False]for i in input_list:- assert type(sc._Column__sanitize_string(i)) == str+ assert isinstance(sc._Column__sanitize_string(i), str)def test_Column_sanitize_string_leaves_nonetype_unchanged():diff --git a/catalog/tests/dags/common/storage/test_media.py b/catalog/tests/dags/common/storage/test_media.pyindex 9cbba271e..e84332616 100644--- a/catalog/tests/dags/common/storage/test_media.py+++ b/catalog/tests/dags/common/storage/test_media.py@@ -96,19 +96,19 @@ def test_MediaStore_falls_back_to_tmp_output_dir_variable(def test_MediaStore_includes_provider_in_output_file_string():image_store = image.ImageStore("test_provider")- assert type(image_store.output_path) == str+ assert isinstance(image_store.output_path, str)assert "test_provider" in image_store.output_pathdef test_MediaStore_includes_media_type_in_output_file_string():image_store = image.ImageStore("test_provider")- assert type(image_store.output_path) == str+ assert isinstance(image_store.output_path, str)assert "image" in image_store.output_pathdef test_MediaStore_includes_tsvsuffix_if_provided():image_store = image.ImageStore("test_provider", tsv_suffix="foo")- assert type(image_store.output_path) == str+ assert isinstance(image_store.output_path, str)assert image_store.output_path.endswith("_foo.tsv")diff --git a/catalog/tests/dags/providers/provider_api_scripts/test_smithsonian.py b/catalog/tests/dags/providers/provider_api_scripts/test_smithsonian.pyindex 21187ae19..f80bc51f9 100644--- a/catalog/tests/dags/providers/provider_api_scripts/test_smithsonian.py+++ b/catalog/tests/dags/providers/provider_api_scripts/test_smithsonian.py@@ -215,7 +215,7 @@ def test_check_type_with_truthy_good_inputs(required_type, good_input):"required_type,good_indices,default",[(str, (0, 1), ""),- (int, (2, 3), 0),+ (int, (2, 3, 16), 0), # Boolean value is treated as an int(float, (4, 5), 0.0),(complex, (6, 7), 0j),(list, (8, 9), []),diff --git a/documentation/catalog/reference/DAGs.md b/documentation/catalog/reference/DAGs.mdindex 6e2bbe03c..bf4f550c8 100644--- a/documentation/catalog/reference/DAGs.md+++ b/documentation/catalog/reference/DAGs.md@@ -879,7 +879,7 @@ manage this for us.It runs on Saturdays at 00:00 UTC in order to happen before the data refresh.-The DAG will automatically delete the oldest snapshots when more snaphots exist+The DAG will automatically delete the oldest snapshots when more snapshots existthan it is configured to retain.Requires two variables:diff --git a/documentation/meta/monitoring/runbooks/unhealthy_ecs_hosts.md b/documentation/meta/monitoring/runbooks/unhealthy_ecs_hosts.mdindex c35fcf331..25859db5f 100644--- a/documentation/meta/monitoring/runbooks/unhealthy_ecs_hosts.md+++ b/documentation/meta/monitoring/runbooks/unhealthy_ecs_hosts.md@@ -15,7 +15,7 @@ Alarm links:```{note}This run book is shared between all unhealthy host count alarms _for ECS services_.-Our infrastructure is slightly different for non-ECS services so do not re-use this+Our infrastructure is slightly different for non-ECS services so do not reuse thisrun book for anything not deployed using ECS (though feel free to reference relevantparts of it).```diff --git a/documentation/packages/index.md b/documentation/packages/index.mdindex f6b404ff8..6c53f44c4 100644--- a/documentation/packages/index.md+++ b/documentation/packages/index.md@@ -62,7 +62,7 @@ package will be reflected in other packages that depend on it.````{note}If a package depends on another, you must add the depended package's buildroutine into the dependent package's build. For example, if the frontend-dependended on the `@openverse/license-parsing` package, we would need to+depended on the `@openverse/license-parsing` package, we would need toadd a watcher to build that package in the frontend's `dev` and `build` scripts.This can be facilitated using `npm-run-all`'s `run-p`. e.g.:diff --git a/documentation/projects/proposals/additional_search_views/20230719-implementation_plan_additional_search_views.md b/documentation/projects/proposals/additional_search_views/20230719-implementation_plan_additional_search_views.mdindex d14a33283..b0d2195fc 100644--- a/documentation/projects/proposals/additional_search_views/20230719-implementation_plan_additional_search_views.md+++ b/documentation/projects/proposals/additional_search_views/20230719-implementation_plan_additional_search_views.md@@ -215,9 +215,9 @@ The audio page should be updated to match the image page: the### 4. Nuxt store and API request changes-We can re-use the search store as is for these pages. Currently, the frontend-can perform searches by `source` parameter. If `searchBy` value is set, then the-`q` parameter is replaced with the `<searchBy>=<searchTerm>` query parameter.+We can reuse the search store as is for these pages. Currently, the frontend can+perform searches by `source` parameter. If `searchBy` value is set, then the `q`+parameter is replaced with the `<searchBy>=<searchTerm>` query parameter.For this project, we should add new values to the `searchBy` filter.diff --git a/documentation/projects/proposals/analytics/20221006-implementation_plan_frontend.md b/documentation/projects/proposals/analytics/20221006-implementation_plan_frontend.mdindex 43691530a..6ada29c16 100644--- a/documentation/projects/proposals/analytics/20221006-implementation_plan_frontend.md+++ b/documentation/projects/proposals/analytics/20221006-implementation_plan_frontend.md@@ -116,8 +116,8 @@ toggle analytics tracking:### Events-Below I've created a TypeScript type for all the proposed anlytics events, and a-simple function for sending events. For each event you'll see the payload+Below I've created a TypeScript type for all the proposed analytics events, and+a simple function for sending events. For each event you'll see the payloadalongside the default values which will be passed to _all_ events.```tsdiff --git a/documentation/projects/proposals/document_all_media_properties/20230307-project_proposal.md b/documentation/projects/proposals/document_all_media_properties/20230307-project_proposal.mdindex 10318a674..c165d1352 100644--- a/documentation/projects/proposals/document_all_media_properties/20230307-project_proposal.md+++ b/documentation/projects/proposals/document_all_media_properties/20230307-project_proposal.md@@ -46,13 +46,13 @@ The project will be considered successful when:process for automatically updating or encouraging the maintainers to update iton relevant code changes is created.-### Implementors+### Implementers@rwidom - creator of the[image table](https://docs.google.com/spreadsheets/d/1gaVsvFnsYby2iwzRm0Ta9IPhvNixCpQdHByGLo1r_pg/edit?usp=sharing)("image table ddl" tab)-@obulat - main implementor @openverse-team - reviewers+@obulat - main implementer @openverse-team - reviewers### Implementation detailsdiff --git a/documentation/projects/proposals/feature_flags/20220309-project_proposal.md b/documentation/projects/proposals/feature_flags/20220309-project_proposal.mdindex 04f3a6ca1..2bc716b10 100644--- a/documentation/projects/proposals/feature_flags/20220309-project_proposal.md+++ b/documentation/projects/proposals/feature_flags/20220309-project_proposal.md@@ -193,7 +193,7 @@ The component is shown if the flag is- enabled- switchable (with the user having chosen to enable it)-It internally intefaces with the utility to evaluate whether the component is+It internally interfaces with the utility to evaluate whether the component isrendered or not. Here is[some code](https://github.com/mblarsen/vue-browser-acl/blob/4e3bb90d2ba4fcc3edd30b27737f4531dc464329/index.js#L136-L163)that can be used to avoid rendering.diff --git a/documentation/projects/proposals/visual_regression_testing/20220217-implementation_plan.md b/documentation/projects/proposals/visual_regression_testing/20220217-implementation_plan.mdindex dedf585a0..34f9960d6 100644--- a/documentation/projects/proposals/visual_regression_testing/20220217-implementation_plan.md+++ b/documentation/projects/proposals/visual_regression_testing/20220217-implementation_plan.md@@ -281,7 +281,7 @@ This PR could then be merged directly into the parent PR after the snapshotchanges are reviewed.Additionally, subsequent pushes to the parent PR that include changes to the-snapshots would re-use the same branch name and just force push; there'd only+snapshots would reuse the same branch name and just force push; there'd onlyever be a single commit in the companion branch this way and we wouldn't have toworry about a muddied commit history. Ideally this will simplify theimplementation of the workflow rather than complicate it.diff --git a/frontend/src/components/VContentLink/meta/VContentLink.stories.mdx b/frontend/src/components/VContentLink/meta/VContentLink.stories.mdxindex c3c236d9e..6fa0fc089 100644--- a/frontend/src/components/VContentLink/meta/VContentLink.stories.mdx+++ b/frontend/src/components/VContentLink/meta/VContentLink.stories.mdx@@ -12,6 +12,7 @@ import VContentLink from "~/components/VContentLink/VContentLink.vue"export const contentLinkArgTypes = {mediaType: { options: ["audio", "image"], control: { type: "radio" } },+ searchTerm: { control: { type: "string" } },resultsCount: { control: { type: "number" } },isSelected: { control: { type: "boolean" } },layout: { options: ["stacked", "horizontal"], control: { type: "radio" } },@@ -33,7 +34,7 @@ export const VContentLinkHorizontalStory = (args) => ({},})-export const TwoVContentLinkStory = (agrs) => ({+export const TwoVContentLinkStory = (args) => ({template: `<div class="grid grid-cols-2 gap-4"><VContentLink@@ -41,6 +42,7 @@ export const TwoVContentLinkStory = (agrs) => ({:key="key":media-type="type.mediaType":results-count="type.resultsCount"+ search-term="cat"/></div>`,diff --git a/frontend/src/components/VTabs/VTabs.vue b/frontend/src/components/VTabs/VTabs.vueindex 6e8ab1a13..22439203b 100644--- a/frontend/src/components/VTabs/VTabs.vue+++ b/frontend/src/components/VTabs/VTabs.vue@@ -35,7 +35,7 @@ export default defineComponent({/*** Accessible name label to use for the tablist.*- * Re-use an existing element as a label by passing its `id` starting with `#`.+ * Reuse an existing element as a label by passing its `id` starting with `#`.* The tablist's `aria-labelledby` will be set to this element.** If there are no existing elements that can be used as a label, pass a translateddiff --git a/frontend/test/unit/specs/plugins/api-token.server.spec.ts b/frontend/test/unit/specs/plugins/api-token.server.spec.tsindex 2a0f281dd..c2f651f69 100644--- a/frontend/test/unit/specs/plugins/api-token.server.spec.ts+++ b/frontend/test/unit/specs/plugins/api-token.server.spec.ts@@ -155,7 +155,7 @@ describe("api-token.server plugin", () => {* to check the mutex and await on the fetching promise.** This relies on the behavior of the Node event loop where- * several async functions called synchronously in succession will exectue+ * several async functions called synchronously in succession will execute* up until the first blocking `await` and then return the promise. This allows* us to effectively get all three of the async api token plugin function* calls up to the first blocking await which will either be the the call todiff --git a/frontend/test/unit/test-utils/api-service-mock.ts b/frontend/test/unit/test-utils/api-service-mock.tsindex bd1d4fb39..d228fb2da 100644--- a/frontend/test/unit/test-utils/api-service-mock.ts+++ b/frontend/test/unit/test-utils/api-service-mock.ts@@ -37,7 +37,7 @@ const createApiService = apiService.createApiService as jest.Mock<* twice, the mock adapter is not re-applied and the second registered* response still works as expected.*- * With the particual way this mock creation function works,+ * With the particular way this mock creation function works,* even if `createApiService` is called several times during* the lifecycle of a particular test context, the same `apiService`* instance will be reused for each call. This is done to preservediff --git a/utilities/load_testing/README.md b/utilities/load_testing/README.mdindex ecf853bd6..b71add4d7 100644--- a/utilities/load_testing/README.md+++ b/utilities/load_testing/README.md@@ -4,7 +4,7 @@ This directory contains a collection of locust files for load testing theOpenverse application. Currently, only an API load test exists but in the futurewe can also create load tests for the frontend or any other service we stand up.These exist in this repository rather than one of the service specific ones for-this reason. We can re-use the base docker image we create for all our load+this reason. We can reuse the base docker image we create for all our loadtesting scripts.**Note:** Production is throttled, so these scripts cannot be used as a shortcut