Skip to content

Commit a075bbf

Browse files
committed
chore(v6): post-rebase cleanup
Some changes got 'lost' during the rebase, but luckily the tests caught that. This commit does a couple of small fixes to remedy that.
1 parent 8373acb commit a075bbf

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/it/java/io/weaviate/integration/DataITest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public void testBlobData() throws IOException {
108108
"breed", "ragdoll",
109109
"img", ragdollPng));
110110

111-
var got = cats.query.fetchObjectById(ragdoll.metadata().uuid(),
111+
var got = cats.query.fetchObjectById(ragdoll.uuid(),
112112
cat -> cat.returnProperties("img"));
113113

114114
Assertions.assertThat(got).get()
@@ -154,7 +154,7 @@ public void testReferences_AddReplaceDelete() throws IOException {
154154
ObjectReference.object(albie));
155155

156156
// Assert
157-
var johnWithFriends = persons.query.fetchObjectById(john.metadata().uuid(),
157+
var johnWithFriends = persons.query.fetchObjectById(john.uuid(),
158158
query -> query.returnReferences(
159159
QueryReference.single("hasFriend",
160160
friend -> friend.returnProperties("name"))));
@@ -174,7 +174,7 @@ public void testReferences_AddReplaceDelete() throws IOException {
174174
"hasFriend",
175175
ObjectReference.object(barbara));
176176

177-
johnWithFriends = persons.query.fetchObjectById(john.metadata().uuid(),
177+
johnWithFriends = persons.query.fetchObjectById(john.uuid(),
178178
query -> query.returnReferences(
179179
QueryReference.single("hasFriend",
180180
friend -> friend.returnProperties("name"))));
@@ -194,7 +194,7 @@ public void testReferences_AddReplaceDelete() throws IOException {
194194
ObjectReference.object(barbara));
195195

196196
// Assert
197-
johnWithFriends = persons.query.fetchObjectById(john.metadata().uuid(),
197+
johnWithFriends = persons.query.fetchObjectById(john.uuid(),
198198
query -> query.returnReferences(
199199
QueryReference.single("hasFriend")));
200200

@@ -223,7 +223,7 @@ public void testReplace() throws IOException {
223223
replace -> replace.properties(Map.of("year", 1819)));
224224

225225
// Assert
226-
var replacedIvanhoe = books.query.fetchObjectById(ivanhoe.metadata().uuid());
226+
var replacedIvanhoe = books.query.fetchObjectById(ivanhoe.uuid());
227227

228228
Assertions.assertThat(replacedIvanhoe).get()
229229
.as("has ONLY year property")
@@ -268,7 +268,7 @@ public void testUpdate() throws IOException {
268268

269269
// Assert
270270
var updIvanhoe = books.query.fetchObjectById(
271-
ivanhoe.metadata().uuid(),
271+
ivanhoe.uuid(),
272272
query -> query
273273
.includeVector()
274274
.returnReferences(QueryReference.single("writtenBy")));
@@ -395,7 +395,7 @@ public void testReferenceAddMany() throws IOException {
395395
// Assert
396396
Assertions.assertThat(response.errors()).isEmpty();
397397

398-
var goodburgAirports = cities.query.fetchObjectById(goodburg.metadata().uuid(),
398+
var goodburgAirports = cities.query.fetchObjectById(goodburg.uuid(),
399399
city -> city.returnReferences(
400400
QueryReference.single("hasAirports")));
401401

src/it/java/io/weaviate/integration/ReferencesITest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void testReferences() throws IOException {
9090
.extracting(ReferenceProperty::dataTypes, InstanceOfAssertFactories.list(String.class))
9191
.containsOnly(nsMovies);
9292

93-
var gotAlex = artists.query.fetchObjectById(alex.metadata().uuid(),
93+
var gotAlex = artists.query.fetchObjectById(alex.uuid(),
9494
opt -> opt.returnReferences(
9595
QueryReference.multi("hasAwards", nsOscar),
9696
QueryReference.multi("hasAwards", nsGrammy)));
@@ -154,7 +154,7 @@ public void testNestedReferences() throws IOException {
154154
.reference("hasAwards", ObjectReference.objects(grammy_1)));
155155

156156
// Assert: fetch nested references
157-
var gotAlex = artists.query.fetchObjectById(alex.metadata().uuid(),
157+
var gotAlex = artists.query.fetchObjectById(alex.uuid(),
158158
opt -> opt.returnReferences(
159159
QueryReference.single("hasAwards",
160160
ref -> ref

src/main/java/io/weaviate/client6/v1/internal/rest/DefaultRestTransport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public <RequestT, ResponseT, ExceptionT> ResponseT performRequest(RequestT reque
104104
private <RequestT, ResponseT> ClassicHttpRequest prepareClassicRequest(RequestT request,
105105
Endpoint<RequestT, ResponseT> endpoint) {
106106
var method = endpoint.method(request);
107-
var uri = endpoint.requestUrl(transportOptions, request);
107+
var uri = uri(endpoint, request);
108108

109109
var req = ClassicRequestBuilder.create(method).setUri(uri);
110110
var body = endpoint.body(request);

0 commit comments

Comments
 (0)