Skip to content

Commit

Permalink
chore: bump version to v0.19.1
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rocheleau committed Jul 16, 2024
1 parent 183ac41 commit 5615708
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bento_public",
"version": "0.19.0",
"version": "0.19.1",
"description": "A publicly accessible portal for clinical datasets, where users are able to see high-level statistics of the data available through predefined variables of interest and search the data using limited variables at a time. This portal allows users to gain a generic understanding of the data available (secure and firewalled) without the need to access it directly. Initially, this portal facilitates the search in English language only, but the French language will be added at a later time.",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/js/components/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const RoutedSearch: React.FC = () => {

// TODO: allow disabling max query parameters for authenticated and authorized users when Katsu has AuthZ
// const maxQueryParametersRequired = useAppSelector((state) => state.config.maxQueryParametersRequired);
// const allowedQueyParamsCount = maxQueryParametersRequired ? maxQueryParameters : queryParamCount;
// const allowedQueryParamsCount = maxQueryParametersRequired ? maxQueryParameters : queryParamCount;

const searchFields = useMemo(
() => searchSections.flatMap(({ fields }) => fields.map((field) => ({ id: field.id, options: field.options }))),
Expand All @@ -49,7 +49,7 @@ const RoutedSearch: React.FC = () => {

const queryParamArray = Array.from(query.entries()).map(([key, value]) => ({ key, value }));

// TODO: to disable max query parameters, slice with allowedQueyParamsCount instead
// TODO: to disable max query parameters, slice with allowedQueryParamsCount instead
const validQueryParamArray = queryParamArray
.filter(({ key, value }) => validateQueryParam(key, value))
.slice(0, maxQueryParameters);
Expand Down
6 changes: 3 additions & 3 deletions src/js/features/config/config.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { printAPIError } from '@/utils/error.util';
import { ServiceInfoStore, ServicesResponse } from '@/types/services';
import { RootState } from '@/store';
import { PUBLIC_URL } from '@/config';
import { DiscoveryRule } from '@/types/configResponse';
import { DiscoveryRules } from '@/types/configResponse';

export const makeGetConfigRequest = createAsyncThunk<DiscoveryRule, void, { rejectValue: string }>(
export const makeGetConfigRequest = createAsyncThunk<DiscoveryRules, void, { rejectValue: string }>(
'config/getConfigData',
(_, { rejectWithValue }) =>
// TODO: should be project/dataset scoped with url params
Expand Down Expand Up @@ -58,7 +58,7 @@ const configStore = createSlice({
builder.addCase(makeGetConfigRequest.pending, (state) => {
state.isFetchingConfig = true;
});
builder.addCase(makeGetConfigRequest.fulfilled, (state, { payload }: PayloadAction<DiscoveryRule>) => {
builder.addCase(makeGetConfigRequest.fulfilled, (state, { payload }: PayloadAction<DiscoveryRules>) => {
state.maxQueryParameters = payload.max_query_parameters;
state.isFetchingConfig = false;
});
Expand Down
2 changes: 1 addition & 1 deletion src/js/types/configResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export interface KatsuPublicOverviewResponse {
layout: [];
}

export interface DiscoveryRule {
export interface DiscoveryRules {
max_query_parameters: number;
count_threshold: number;
}

0 comments on commit 5615708

Please sign in to comment.