Skip to content

Commit 1fea98b

Browse files
algolia-botkai687Fluf22
committed
fix(clients): initialize page variable in Ruby helpers (#5370) (generated) [skip ci]
Co-authored-by: Kai Welke <kai.welke@algolia.com> Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
1 parent 8c94c7e commit 1fea98b

File tree

34 files changed

+103
-101
lines changed

34 files changed

+103
-101
lines changed

clients/algoliasearch-client-ruby/lib/algolia/api/search_client.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3272,7 +3272,8 @@ def browse_objects(index_name, browse_params = Search::BrowseParamsObject.new, r
32723272
def browse_rules(index_name, search_rules_params = Search::SearchRulesParams.new, request_options = {}, &block)
32733273
search_rules_params = api_client.object_to_hash(search_rules_params)
32743274

3275-
search_rules_params[:hitsPerPage] = 1000 unless search_rules_params.key?(:hitsPerPage)
3275+
search_rules_params[:page] ||= 0
3276+
search_rules_params[:hitsPerPage] ||= 1000
32763277

32773278
rules = []
32783279
loop do
@@ -3306,7 +3307,8 @@ def browse_synonyms(
33063307
)
33073308
search_synonyms_params = api_client.object_to_hash(search_synonyms_params)
33083309

3309-
search_synonyms_params[:hitsPerPage] = 1000 unless search_synonyms_params.key?(:hitsPerPage)
3310+
search_synonyms_params[:page] ||= 0
3311+
search_synonyms_params[:hitsPerPage] ||= 1000
33103312

33113313
synonyms = []
33123314
loop do

docs/bundled/insights-snippets.json

Lines changed: 11 additions & 11 deletions
Large diffs are not rendered by default.

docs/snippets/csharp/src/Insights.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ public async Task SnippetForInsightsClientPushEvents1()
509509
Index = "products",
510510
UserToken = "user-123456",
511511
AuthenticatedUserToken = "user-123456",
512-
Timestamp = 1758412800000L,
512+
Timestamp = 1758672000000L,
513513
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
514514
QueryID = "43b15df305339e827f0ac0bdc5ebcaa7",
515515
}
@@ -522,7 +522,7 @@ public async Task SnippetForInsightsClientPushEvents1()
522522
Index = "products",
523523
UserToken = "user-123456",
524524
AuthenticatedUserToken = "user-123456",
525-
Timestamp = 1758412800000L,
525+
Timestamp = 1758672000000L,
526526
ObjectIDs = new List<string> { "9780545139700", "9780439784542" },
527527
}
528528
),

docs/snippets/dart/lib/insights.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ void snippetForpushEvents1() async {
567567
index: "products",
568568
userToken: "user-123456",
569569
authenticatedUserToken: "user-123456",
570-
timestamp: 1758412800000,
570+
timestamp: 1758672000000,
571571
objectIDs: [
572572
"9780545139700",
573573
"9780439784542",
@@ -580,7 +580,7 @@ void snippetForpushEvents1() async {
580580
index: "products",
581581
userToken: "user-123456",
582582
authenticatedUserToken: "user-123456",
583-
timestamp: 1758412800000,
583+
timestamp: 1758672000000,
584584
objectIDs: [
585585
"9780545139700",
586586
"9780439784542",

docs/snippets/go/src/insights.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/snippets/java/src/test/java/com/algolia/Insights.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ void snippetForPushEvents1() throws Exception {
488488
.setIndex("products")
489489
.setUserToken("user-123456")
490490
.setAuthenticatedUserToken("user-123456")
491-
.setTimestamp(1758412800000L)
491+
.setTimestamp(1758672000000L)
492492
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
493493
.setQueryID("43b15df305339e827f0ac0bdc5ebcaa7"),
494494
new ViewedObjectIDs()
@@ -497,7 +497,7 @@ void snippetForPushEvents1() throws Exception {
497497
.setIndex("products")
498498
.setUserToken("user-123456")
499499
.setAuthenticatedUserToken("user-123456")
500-
.setTimestamp(1758412800000L)
500+
.setTimestamp(1758672000000L)
501501
.setObjectIDs(Arrays.asList("9780545139700", "9780439784542"))
502502
)
503503
)

docs/snippets/javascript/src/insights.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ export async function snippetForPushEvents1(): Promise<void> {
453453
index: 'products',
454454
userToken: 'user-123456',
455455
authenticatedUserToken: 'user-123456',
456-
timestamp: 1758412800000,
456+
timestamp: 1758672000000,
457457
objectIDs: ['9780545139700', '9780439784542'],
458458
queryID: '43b15df305339e827f0ac0bdc5ebcaa7',
459459
},
@@ -463,7 +463,7 @@ export async function snippetForPushEvents1(): Promise<void> {
463463
index: 'products',
464464
userToken: 'user-123456',
465465
authenticatedUserToken: 'user-123456',
466-
timestamp: 1758412800000,
466+
timestamp: 1758672000000,
467467
objectIDs: ['9780545139700', '9780439784542'],
468468
},
469469
],

docs/snippets/kotlin/src/main/kotlin/com/algolia/snippets/Insights.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ class SnippetInsightsClient {
533533
index = "products",
534534
userToken = "user-123456",
535535
authenticatedUserToken = "user-123456",
536-
timestamp = 1758412800000L,
536+
timestamp = 1758672000000L,
537537
objectIDs = listOf("9780545139700", "9780439784542"),
538538
queryID = "43b15df305339e827f0ac0bdc5ebcaa7",
539539
),
@@ -543,7 +543,7 @@ class SnippetInsightsClient {
543543
index = "products",
544544
userToken = "user-123456",
545545
authenticatedUserToken = "user-123456",
546-
timestamp = 1758412800000L,
546+
timestamp = 1758672000000L,
547547
objectIDs = listOf("9780545139700", "9780439784542"),
548548
),
549549
),

docs/snippets/php/src/Insights.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ public function snippetForPushEvents1(): void
589589
'index' => 'products',
590590
'userToken' => 'user-123456',
591591
'authenticatedUserToken' => 'user-123456',
592-
'timestamp' => 1758412800000,
592+
'timestamp' => 1758672000000,
593593
'objectIDs' => [
594594
'9780545139700',
595595

@@ -603,7 +603,7 @@ public function snippetForPushEvents1(): void
603603
'index' => 'products',
604604
'userToken' => 'user-123456',
605605
'authenticatedUserToken' => 'user-123456',
606-
'timestamp' => 1758412800000,
606+
'timestamp' => 1758672000000,
607607
'objectIDs' => [
608608
'9780545139700',
609609

docs/snippets/python/insights.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ def snippet_for_push_events1():
634634
"index": "products",
635635
"userToken": "user-123456",
636636
"authenticatedUserToken": "user-123456",
637-
"timestamp": 1758412800000,
637+
"timestamp": 1758672000000,
638638
"objectIDs": [
639639
"9780545139700",
640640
"9780439784542",
@@ -647,7 +647,7 @@ def snippet_for_push_events1():
647647
"index": "products",
648648
"userToken": "user-123456",
649649
"authenticatedUserToken": "user-123456",
650-
"timestamp": 1758412800000,
650+
"timestamp": 1758672000000,
651651
"objectIDs": [
652652
"9780545139700",
653653
"9780439784542",

0 commit comments

Comments
 (0)