Skip to content
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

Merged
merged 13 commits into from
Jul 23, 2024
Merged

Feat add filter apis #125

merged 13 commits into from
Jul 23, 2024

Conversation

h1ppox99
Copy link
Collaborator

*** add filter Apis *** + reorganised conf files for tests and other minor things

@h1ppox99 h1ppox99 requested a review from guimard July 19, 2024 07:29
.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

Suspicious comment
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

Suspicious comment
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

Suspicious comment
@h1ppox99
Copy link
Collaborator Author

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

Suspicious comment
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

Suspicious comment
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

Suspicious comment
@h1ppox99 h1ppox99 marked this pull request as draft July 19, 2024 11:57
@guimard
Copy link
Member

guimard commented Jul 22, 2024

Conflicts to be resolved

@h1ppox99 h1ppox99 marked this pull request as ready for review July 23, 2024 11:32
@h1ppox99 h1ppox99 changed the title Feat add profiles Feat add filter apis Jul 23, 2024
@h1ppox99
Copy link
Collaborator Author

This branch is ready for review @guimard

@guimard guimard merged commit 8544155 into full-id-service Jul 23, 2024
8 checks passed
@h1ppox99 h1ppox99 deleted the feat-add-profiles branch July 23, 2024 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants