diff --git a/api/src/paths/taxonomy/taxon/index.ts b/api/src/paths/taxonomy/taxon/index.ts index 8345f7ee..590927f9 100644 --- a/api/src/paths/taxonomy/taxon/index.ts +++ b/api/src/paths/taxonomy/taxon/index.ts @@ -9,7 +9,7 @@ export const GET: Operation = [findTaxonBySearchTerms()]; GET.apiDoc = { description: 'Find taxon records by search criteria.', - tags: ['taxon_id'], + tags: ['taxonomy'], security: [ { Bearer: [] diff --git a/api/src/paths/taxonomy/taxon/tsn/index.ts b/api/src/paths/taxonomy/taxon/tsn/index.ts index 8f21b6fd..ca366067 100644 --- a/api/src/paths/taxonomy/taxon/tsn/index.ts +++ b/api/src/paths/taxonomy/taxon/tsn/index.ts @@ -10,7 +10,7 @@ export const GET: Operation = [getTaxonByTSN()]; GET.apiDoc = { description: 'Get taxon records by TSN ids.', - tags: ['taxon_id'], + tags: ['taxonomy'], security: [ { Bearer: [] diff --git a/api/src/repositories/search-index-repository.test.ts b/api/src/repositories/search-index-repository.test.ts index adeb4268..0bef523a 100644 --- a/api/src/repositories/search-index-repository.test.ts +++ b/api/src/repositories/search-index-repository.test.ts @@ -187,7 +187,7 @@ describe('SearchIndexRepository', () => { feature_property_type_name: 'number', feature_property_id: 3, feature_property_type_id: 2, - name: 'taxon_id', + name: 'taxonomy', display_name: 'Taxonomy Id', description: 'The taxonomy Id associated to the record', parent_feature_property_id: null, @@ -392,7 +392,7 @@ describe('SearchIndexRepository', () => { feature_property_type_name: 'number', feature_property_id: 3, feature_property_type_id: 2, - name: 'taxon_id', + name: 'taxonomy', display_name: 'Taxonomy Id', description: 'The taxonomy Id associated to the record', parent_feature_property_id: null, diff --git a/api/src/services/itis-service.ts b/api/src/services/itis-service.ts index 82cffe33..5378fdf2 100644 --- a/api/src/services/itis-service.ts +++ b/api/src/services/itis-service.ts @@ -89,7 +89,7 @@ export class ItisService { * Returns the parent hierarchy for multiple TSNs * * @param {number[]} tsnIds - * @return {*} {Promise} + * @return {*} {Promise} * @memberof ItisService */ async getHierarchyForTSNs(tsnIds: number[]): Promise { @@ -110,6 +110,7 @@ export class ItisService { * Cleans up the ITIS search response data * * @param {ItisSolrSearchResponse[]} data + * @return {*} {Promise} * @memberof ItisService */ _sanitizeItisData = (data: ItisSolrSearchResponse[]): TaxonSearchResult[] => { @@ -187,7 +188,7 @@ export class ItisService { } /** - * Get the ITIS SOLR search-by-tsn URL with hierarchy + * Get the ITIS SOLR search-by-tsn URL for hierarchy information * * @param {number[]} tsnIds * @return {*} {Promise} diff --git a/database/src/seeds/02_population_feature_tables.ts b/database/src/seeds/02_populate_feature_tables.ts similarity index 100% rename from database/src/seeds/02_population_feature_tables.ts rename to database/src/seeds/02_populate_feature_tables.ts