Skip to content

Commit

Permalink
fix: use struct_values API new name attr_values
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Oct 24, 2024
1 parent 2387825 commit 81f25c8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/scripts/backend/struct-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ angular.module("korpApp").factory("structService", [
"$http",
"$q",
($http: IHttpService, $q: IQService): StructService => ({
// Memoize the function so that the backend /struct_values is called
// Memoize the function so that the backend /attr_values is called
// only once for each combination of corpora, attributes and options
getStructValues: _.memoize(
function (corpora, attributes, options = {}) {
Expand All @@ -61,7 +61,7 @@ angular.module("korpApp").factory("structService", [
if (split) params.split = _.last(attributes)

const conf = httpConfAddMethod({
url: settings["korp_backend_url"] + "/struct_values",
url: settings["korp_backend_url"] + "/attr_values",
method: "GET",
params,
headers: getAuthorizationHeader(),
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/components/extended/widgets/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const selectController = (autocomplete: boolean): IController => [
$scope.input = data.includes($scope.input) ? $scope.input : $scope.dataset[0][0]
}
},
() => console.log("struct_values error")
() => console.log("attr_values error")
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { html } from "@/util"
import { selectController, Widget } from "./common"

/**
* Autocomplete. Gets values from "struct_values"-command.
* Autocomplete. Gets values from "attr_values"-command.
* Use the following settings in the corpus:
* - escape: boolean, will be used by the escaper-directive
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { selectController, selectTemplate, Widget } from "./common"

/**
* Select-element. Gets values from "struct_values"-command.
* Select-element. Gets values from "attr_values"-command.
* Use the following settings in the corpus:
* - escape: boolean, will be used by the escaper-directive
*/
Expand Down

0 comments on commit 81f25c8

Please sign in to comment.