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

Fourth frontend features and some backend fixes #74

Merged
merged 8 commits into from
Jan 15, 2025

Conversation

Kimiega
Copy link
Member

@Kimiega Kimiega commented Jan 14, 2025

No description provided.

@Kimiega Kimiega merged commit fe213b8 into main Jan 15, 2025
2 checks passed
@Kimiega Kimiega deleted the fourth-frontend-features branch January 15, 2025 02:47
Comment on lines +102 to +107
client:
ssl:
key-store-type: PKCS12
key-store: classpath:keystore/itmo-dating-backend.p12
key-store-password: ${KEY_STORE_PASSWORD}
protocol: TLSv1.3
Copy link
Contributor

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)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут, наверное, нужно сделать какой-нибудь wildcard и все OPTIONS разрешить возмоооожно.

Comment on lines +19 to +30
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,
},
},
])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это уже можно убрать?

Comment on lines +19 to +21
console.error('Error getting faculties: ', error)
//TODO remove after integration with backend
setFaculties([{ id: 1, longName: 'piict' }])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это уже можно убрать?

Comment on lines +18 to +27
axios
.get(url, config)
.then((response) => {
console.log(response.data)
setPersonIdArray(response.data)
})
.catch((error) => {
console.error('Error getting suggestions: ', error)
setPersonIdArray([])
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Эх, заведу отдельный тикет на использование сгенерированного из OpenAPI клиента для фронта.

Comment on lines +13 to +16
headers: {
'Content-Type': 'application/json',
Authorization: basicAuth,
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

БТВ, дублирование вот этого фрагмента повсюду.

Comment on lines +205 to +210
icon: {
id: 123,
small: 'https://avatars.githubusercontent.com/u/93886405',
medium: 'https://avatars.githubusercontent.com/u/93886405',
large: 'https://avatars.githubusercontent.com/u/93886405',
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Думаю, в будущей апишке не будет small, medium, large. Будет только large сперва.

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