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

[UBS Address] User can choose districts on own #1161

Merged
merged 105 commits into from
Jul 6, 2023
Merged
Changes from 1 commit
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
a5a14f6
Added dto to work with data
ospodaryk Jun 30, 2023
24f6a49
Added methods to get Districts from City
ospodaryk Jun 30, 2023
971013b
Added necessary error messages
ospodaryk Jun 30, 2023
f0bf6cd
Added tests to all function
ospodaryk Jun 30, 2023
30a0cf8
Added endpoint to method
ospodaryk Jun 30, 2023
005356d
Fixed bug and Vulnerability
ospodaryk Jun 30, 2023
0747134
Fixed bug
ospodaryk Jun 30, 2023
a816303
Fixed bug
ospodaryk Jun 30, 2023
9ca8b3c
Fixed bug
ospodaryk Jun 30, 2023
e6c2120
return
ospodaryk Jun 30, 2023
dfd8d8a
fix
ospodaryk Jun 30, 2023
b801e86
Fixed bug and Vulnerability
ospodaryk Jun 30, 2023
4be23f5
Fixed Vulnerability
ospodaryk Jun 30, 2023
197f24a
Fixed bugs
ospodaryk Jun 30, 2023
cc5c053
Added javadoc to method
ospodaryk Jul 1, 2023
d6e9b47
Fixed tests to methods
ospodaryk Jul 1, 2023
2e56f52
Fixed controller
ospodaryk Jul 1, 2023
c460610
Added tests
ospodaryk Jul 1, 2023
be57bdc
Formatted
ospodaryk Jul 1, 2023
25d9c80
Removed code smell
ospodaryk Jul 1, 2023
9ad4b0e
Fixed bug
ospodaryk Jul 1, 2023
7ae9aef
Fixed code Smell
ospodaryk Jul 1, 2023
bfb53a1
Fixed code Smell and bugs
ospodaryk Jul 1, 2023
795d079
added ApiOperation and ApiResponses
ospodaryk Jul 3, 2023
695d6e6
Removed * from import
ospodaryk Jul 3, 2023
47b6f39
Added enum for location and Kyiv as constant
ospodaryk Jul 4, 2023
68e671b
Used constants instead of variables and magic numbers
ospodaryk Jul 4, 2023
a1e6d14
Removed unnecessary line
ospodaryk Jul 4, 2023
e6a6677
Added javadoc
ospodaryk Jul 4, 2023
55a3065
Provided the parametrized type
ospodaryk Jul 4, 2023
7f812dc
Fixed bug
ospodaryk Jul 4, 2023
3cee79b
Working some tests
ospodaryk Jul 4, 2023
7d76ec3
working 22/27 tests
ospodaryk Jul 4, 2023
b42522c
working 24/27 tests
ospodaryk Jul 4, 2023
1312f46
working 27/27 tests
ospodaryk Jul 4, 2023
7909c31
Added tests
ospodaryk Jul 4, 2023
f76ec49
delete unnecessary lines
ospodaryk Jul 4, 2023
d4d45d9
Adde new Error Message
ospodaryk Jul 4, 2023
9e706ee
fixed files
ospodaryk Jul 4, 2023
3ba3107
FIXED TESTS
ospodaryk Jul 4, 2023
ca738b6
Fixed tests
ospodaryk Jul 4, 2023
aec06e7
added test
ospodaryk Jul 4, 2023
f1b6c68
formatted
ospodaryk Jul 4, 2023
fbd4ec3
Merge branch 'dev' into bug-districts
ospodaryk Jul 4, 2023
f6220dc
fixed code smell
ospodaryk Jul 4, 2023
c60c703
Added tests to enum
ospodaryk Jul 4, 2023
ed67e0b
fixed code smell
ospodaryk Jul 4, 2023
9cd3339
fixed code smell
ospodaryk Jul 4, 2023
bf2e569
fixed code
ospodaryk Jul 4, 2023
7495c6d
fixed tests
ospodaryk Jul 4, 2023
113bbfa
fixed tests
ospodaryk Jul 4, 2023
afbda52
fixed tests
ospodaryk Jul 4, 2023
3d51041
formatted
ospodaryk Jul 4, 2023
41461b9
removed code smell
ospodaryk Jul 4, 2023
2746ec8
Covered all lines
ospodaryk Jul 4, 2023
d15d588
Fixed code
ospodaryk Jul 4, 2023
e605393
Fixed code
ospodaryk Jul 4, 2023
77fed80
Added test
ospodaryk Jul 4, 2023
9dfa1f6
Added test
ospodaryk Jul 4, 2023
1025b93
removed imports
ospodaryk Jul 5, 2023
83d5575
Merge branch 'dev' into bug-districts
ospodaryk Jul 5, 2023
ec55515
Fixed controller
ospodaryk Jul 5, 2023
e26ccbd
Fexed magic numbers and page size
ospodaryk Jul 5, 2023
19b6273
Fixed tests
ospodaryk Jul 5, 2023
3203f0d
Fixed errors
ospodaryk Jul 5, 2023
5363731
Fixed some bugs
ospodaryk Jul 5, 2023
ea80f5b
Deleted some code
ospodaryk Jul 5, 2023
2b9d183
Removed unnesesary lines
ospodaryk Jul 5, 2023
ec7d35f
FIXED MAGIC NUMBERS
ospodaryk Jul 5, 2023
342f796
FIXED MAGIC NUMBERS
ospodaryk Jul 5, 2023
0b14248
FIXED MAGIC NUMBERS
ospodaryk Jul 5, 2023
6be5620
Updated java doc
ospodaryk Jul 5, 2023
1cd4108
formatted
ospodaryk Jul 5, 2023
4b3d82b
removed import.*
ospodaryk Jul 5, 2023
19ad7db
deleted get(0) and added new error
ospodaryk Jul 5, 2023
92275ef
deleted get(0) and added new error
ospodaryk Jul 5, 2023
66f8700
Added DEFAULT_PAGE_VALUE
ospodaryk Jul 5, 2023
c7f5358
deleted unnesesary import
ospodaryk Jul 5, 2023
20c1b35
Fixed infinity loop
ospodaryk Jul 5, 2023
887fcfa
deleted unnesesary import
ospodaryk Jul 5, 2023
076cef1
added in SecurityConfig endpoint
ospodaryk Jul 5, 2023
6027645
removed import *
ospodaryk Jul 5, 2023
91c6c59
added forbiden
ospodaryk Jul 5, 2023
f774aac
Fixed some moments
ospodaryk Jul 5, 2023
62a66a9
Fixed errors
ospodaryk Jul 5, 2023
9a93e83
Fixed tests
ospodaryk Jul 5, 2023
c86e467
Formatted deleted import
ospodaryk Jul 5, 2023
3858eec
Deleted nameUa from LocationDivision
ospodaryk Jul 5, 2023
f1ec8a4
Deleted error 400
ospodaryk Jul 5, 2023
a9fb013
Renamed name to locationNameMap
ospodaryk Jul 5, 2023
f3394fa
Renamed name to locationNameMap
ospodaryk Jul 5, 2023
5648cb3
Renamed name to locationNameMap
ospodaryk Jul 5, 2023
b58eacf
Fixed all tests
ospodaryk Jul 5, 2023
ac8c98a
formatted
ospodaryk Jul 5, 2023
f940636
reformatted
ospodaryk Jul 5, 2023
5fb338a
reformatted
ospodaryk Jul 5, 2023
1933bec
renamed in tests
ospodaryk Jul 6, 2023
be965a2
reformatted
ospodaryk Jul 6, 2023
c1ad904
Fixed LocationApiService
ospodaryk Jul 6, 2023
518dc45
Fixed some bugs
ospodaryk Jul 6, 2023
2cc8bd4
Fixed some bugs
ospodaryk Jul 6, 2023
ab7a783
Fixed шьзщке *
ospodaryk Jul 6, 2023
55c38c9
Fixed bugs with page_size
ospodaryk Jul 6, 2023
38029eb
added new tests
ospodaryk Jul 6, 2023
d80c60e
rewrited in streams
ospodaryk Jul 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Provided the parametrized type
  • Loading branch information
ospodaryk committed Jul 4, 2023
commit 55a3065ebd1028a612f9b67d017d6a0b6857aecd
Original file line number Diff line number Diff line change
@@ -6,6 +6,8 @@
import greencity.exceptions.NotFoundException;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestClientException;
@@ -291,7 +293,7 @@ private List<LocationDto> getLocationDataByName(int pageSize, int level, String
*/
public List<LocationDto> getResultFromUrl(URI url) {
try {
ResponseEntity<Map> response = restTemplate.getForEntity(url, Map.class);
ResponseEntity<Map<String, Object>> response = restTemplate.exchange(url, HttpMethod.GET, null, new ParameterizedTypeReference<Map<String, Object>>() {});
return Optional.ofNullable(response)
.map(ResponseEntity::getBody)
.map(body -> (List<Map<String, Object>>) body.get("results"))