-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fourth frontend features and some backend fixes #74
Conversation
client: | ||
ssl: | ||
key-store-type: PKCS12 | ||
key-store: classpath:keystore/itmo-dating-backend.p12 | ||
key-store-password: ${KEY_STORE_PASSWORD} | ||
protocol: TLSv1.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Хммм, а может быть это даже можно в какой-то общий для всех модуль унести, потому что я для работы WebClient
сам велосипедно SSLContext
собираю. Может быть, эта штука сделает так, чтобы оно работало само.
@@ -14,5 +14,6 @@ class MatchmakerSecuredPaths : SpringSecuredPaths { | |||
Path("/api/**"), | |||
Not(Path("/api/people/{person_id}", HttpMethod.PUT)), | |||
Not(Path("/api/monitoring/healthcheck", HttpMethod.GET)), | |||
Not(Path("/api/suggestions", HttpMethod.OPTIONS)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут, наверное, нужно сделать какой-нибудь wildcard и все OPTIONS
разрешить возмоооожно.
console.error('Error getting locations: ', error) | ||
//TODO remove after integration with backend | ||
setLocations([ | ||
{ | ||
id: 1, | ||
name: 'ITMO University, Kronverkskiy Avenue', | ||
coordinates: { | ||
latitude: 59.957478, | ||
longitude: 30.308014, | ||
}, | ||
}, | ||
]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это уже можно убрать?
console.error('Error getting faculties: ', error) | ||
//TODO remove after integration with backend | ||
setFaculties([{ id: 1, longName: 'piict' }]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это уже можно убрать?
axios | ||
.get(url, config) | ||
.then((response) => { | ||
console.log(response.data) | ||
setPersonIdArray(response.data) | ||
}) | ||
.catch((error) => { | ||
console.error('Error getting suggestions: ', error) | ||
setPersonIdArray([]) | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Эх, заведу отдельный тикет на использование сгенерированного из OpenAPI клиента для фронта.
headers: { | ||
'Content-Type': 'application/json', | ||
Authorization: basicAuth, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
БТВ, дублирование вот этого фрагмента повсюду.
icon: { | ||
id: 123, | ||
small: 'https://avatars.githubusercontent.com/u/93886405', | ||
medium: 'https://avatars.githubusercontent.com/u/93886405', | ||
large: 'https://avatars.githubusercontent.com/u/93886405', | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Думаю, в будущей апишке не будет small
, medium
, large
. Будет только large сперва.
No description provided.