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

Synchronize getEmployeeAvailableEarlier between the server and client #44

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

ozonophore
Copy link
Collaborator

#43

@ozonophore ozonophore added the bug Something isn't working label Oct 31, 2023
@ozonophore ozonophore temporarily deployed to Prod October 31, 2023 14:34 — with GitHub Actions Inactive
@@ -36,7 +36,7 @@ interface EmployeeServiceClient {

@Throws(NotFoundException::class)
@RequestLine("GET employees/available-earlier?employees={employees}", collectionFormat = CollectionFormat.CSV)
fun getEmployeeAvailableEarlier(@Param("employees") @QueryMap employees: List<String>): Employee
fun getEmployeeAvailableEarlier(@Param("employees") employees: Set<String>): Employee
Copy link
Collaborator

Choose a reason for hiding this comment

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

контрак поменяется в отношениях клиент/сервер: Тут не зря collectionFormat.CSV еще проставлен (нельзя просто взять и убрать @QueryMap)

@@ -45,7 +45,7 @@ class ClassicEmployeeServiceClient(

override fun getEmployee(employee: String): Employee = client.getEmployee(employee)

override fun getEmployeeAvailableEarlier(employees: List<String>): Employee =
override fun getEmployeeAvailableEarlier(employees: Set<String>): Employee =
Copy link
Collaborator

Choose a reason for hiding this comment

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

А ради чего мы коллекции меняем?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

На сервере Set. Должно быть синхронно

@aryabokon aryabokon requested review from MrSoftwareEngineer and removed request for MrSoftwareEngineer November 2, 2023 11:38
@ozonophore ozonophore merged commit 3800810 into main Nov 2, 2023
3 checks passed
@ozonophore ozonophore deleted the sync_method branch November 2, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging this pull request may close these issues.

Synchronize getEmployeeAvailableEarlier between the server and client sides.
3 participants