-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat add filter apis #125
Feat add filter apis #125
Conversation
.insert('user_filters', { | ||
user_id: userId, | ||
filter_id: filterId, | ||
filter_json: JSON.stringify(filter) // TODO : clarify the type of the filter_json (bytea, string ???) |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
clientServer.logger, | ||
(obj) => { | ||
const filter = obj as Filter | ||
// TODO : verify if the user is allowed to make requests for this user id |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
send(res, 404, errMsg('notFound', 'Cannot retrieve filter')) | ||
return | ||
} | ||
const filter = JSON.parse(rows[0].filter_json as string) // TODO : clarify the type of the filter_json (bytea, string ???) |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
I made an error in the last pull request I merged myself. It is corrected in the last commit here (wrong callback call in validateParametersStrict). |
.insert('user_filters', { | ||
user_id: userId, | ||
filter_id: filterId, | ||
filter_json: JSON.stringify(filter) // TODO : clarify the type of the filter_json (bytea, string ???) |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
clientServer.logger, | ||
(obj) => { | ||
const filter = obj as Filter | ||
// TODO : verify if the user is allowed to make requests for this user id |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
send(res, 404, errMsg('notFound', 'Cannot retrieve filter')) | ||
return | ||
} | ||
const filter = JSON.parse(rows[0].filter_json as string) // TODO : clarify the type of the filter_json (bytea, string ???) |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Conflicts to be resolved |
…ew configurations
… size of index.test.ts)
425dec7
to
28402ff
Compare
This branch is ready for review @guimard |
*** add filter Apis *** + reorganised conf files for tests and other minor things