Skip to content
Snippets Groups Projects
Commit fec39902 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge remote-tracking branch 'origin/development' into...

Merge remote-tracking branch 'origin/development' into 254-min-321-form-for-reporting-errors-in-minerva
parents addd8360 79be1a4f
No related branches found
No related tags found
2 merge requests!223reset the pin numbers before search results are fetch (so the results will be...,!199Resolve "[MIN-321] form for reporting errors in minerva"
Pipeline #91821 passed
......@@ -23,6 +23,7 @@ import {
TypedStartListening,
configureStore,
} from '@reduxjs/toolkit';
import commentReducer from '@/redux/comment/comment.slice';
import compartmentPathwaysReducer from './compartmentPathways/compartmentPathways.slice';
import entityNumberReducer from './entityNumber/entityNumber.slice';
import exportReducer from './export/export.slice';
......@@ -40,6 +41,7 @@ export const reducers = {
drugs: drugsReducer,
chemicals: chemicalsReducer,
bioEntity: bioEntityReducer,
comment: commentReducer,
drawer: drawerReducer,
modal: modalReducer,
map: mapReducer,
......
import { Comment } from './models';
import { PinType } from './pin';
export interface CommentWithPinType extends Comment {
pinType: PinType;
}
......@@ -61,6 +61,7 @@ import { targetSchema } from '@/models/targetSchema';
import { targetSearchNameResult } from '@/models/targetSearchNameResult';
import { userPrivilegeSchema } from '@/models/userPrivilegesSchema';
import { z } from 'zod';
import { commentSchema } from '@/models/commentSchema';
import { userSchema } from '@/models/userSchema';
import { javaStacktraceSchema } from '@/models/javaStacktraceSchema';
......@@ -122,3 +123,4 @@ export type MarkerLine = z.infer<typeof markerLineSchema>;
export type MarkerWithPosition = z.infer<typeof markerWithPositionSchema>;
export type Marker = z.infer<typeof markerSchema>;
export type JavaStacktrace = z.infer<typeof javaStacktraceSchema>;
export type Comment = z.infer<typeof commentSchema>;
export type PinType = 'chemicals' | 'drugs' | 'bioEntity';
export type PinType = 'chemicals' | 'drugs' | 'bioEntity' | 'comment';
......@@ -8,7 +8,7 @@ export const validateDataUsingZodSchema: IsApiResponseValid = (data, schema: Zod
if (validationResults.success === false) {
// TODO - probably need to rething way of handling parsing errors, for now let's leave it to console.log
// eslint-disable-next-line no-console
console.error('Error on parsing data', validationResults.error);
console.error('Error on parsing data', validationResults.error.message);
}
return validationResults.success;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment