Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
52b92ca
scroll basic support
tanghel May 22, 2024
b7797e9
version bump
tanghel May 22, 2024
0abeaa5
added log statement
tanghel May 22, 2024
0e62a98
version bump
tanghel May 22, 2024
cfa3c41
more logging
tanghel May 22, 2024
176fd4b
version bump
tanghel May 22, 2024
1bbfba2
fixed start index
tanghel May 22, 2024
dae818e
version bump
tanghel May 22, 2024
59172f0
implemented support for scroll at
tanghel May 24, 2024
34fef29
version bump
tanghel May 24, 2024
78b61f0
version bump
tanghel May 28, 2024
cbb0bd2
use json when posting to ES
tanghel May 28, 2024
92a8332
version bump
tanghel May 28, 2024
f5489eb
some more logging
tanghel May 28, 2024
07baef7
version bump
tanghel May 28, 2024
4f81337
search_after instead of scroll_after
tanghel May 28, 2024
65e8639
version bump
tanghel May 28, 2024
f8eb068
exclude more fields when wrapping up params
tanghel May 28, 2024
35bc727
version bump
tanghel May 28, 2024
7aea1ad
use slicing function to ensure no more than the specified elements ar…
tanghel May 28, 2024
6052a35
version bump
tanghel May 28, 2024
70ab67c
extracted functionality in specific functions
tanghel May 30, 2024
78882af
version bump
tanghel May 30, 2024
eb0b526
store scroll result
tanghel May 30, 2024
5a3df3f
version bump
tanghel May 30, 2024
f8f329e
do not cache if scrollCreate, scrollAt or scrollAfter is specified
tanghel May 30, 2024
629ca7e
version bum,p
tanghel May 30, 2024
ed72917
validate query, store scroll result always
tanghel May 31, 2024
0c4e3d0
version bump
tanghel May 31, 2024
b8d1126
do not validate query here
tanghel May 31, 2024
5dd0e52
version bump
tanghel May 31, 2024
a65f6ca
log elastic query
tanghel May 31, 2024
b6f5b75
version bump
tanghel May 31, 2024
798a09a
use return statement
tanghel May 31, 2024
84d9ed1
version bump
tanghel May 31, 2024
11e6e9d
version bump follow-up
tanghel May 31, 2024
84376e0
logs params
tanghel May 31, 2024
1345f00
version bump
tanghel May 31, 2024
2a18a39
more logging
tanghel May 31, 2024
af9ee3e
version bump
tanghel May 31, 2024
28e64f9
ensure no more than size is returned
tanghel May 31, 2024
e618168
version bump
tanghel May 31, 2024
0a8a878
integrated scroll interceptor
tanghel May 31, 2024
e98412b
version bump
tanghel May 31, 2024
b43511a
proper import for cache service
tanghel May 31, 2024
63c86f7
relative imports
tanghel May 31, 2024
1553df3
proper import of decorator utils
tanghel May 31, 2024
0d9836a
version bump
tanghel May 31, 2024
d7eada1
version bump
tanghel May 31, 2024
7044610
throw error when cannot find scroll
tanghel May 31, 2024
f9af22c
support for scroll at
tanghel May 31, 2024
0057ae7
version bump
tanghel May 31, 2024
eae41b3
Merge branch 'main' into SERVICES-2371-scroll-support-in-api
tanghel Jun 25, 2024
26c6a17
version bump
tanghel Jun 25, 2024
3ce1b36
Merge branch 'main' into SERVICES-2371-scroll-support-in-api
tanghel Oct 25, 2024
3620bab
SERVICES-2371: simplify implementation
dragos-rebegea Oct 27, 2024
c7662eb
SERVICES-2371: increment version
dragos-rebegea Oct 29, 2024
7b1caf0
SERVICES-2371: increment version
dragos-rebegea Oct 29, 2024
0de8145
SERVICES-2371: improvements
dragos-rebegea Oct 29, 2024
4da9e4c
SERVICES-2371: improvements
dragos-rebegea Oct 29, 2024
3e87eae
SERVICES-2371: pump version
dragos-rebegea Oct 29, 2024
44e7d1b
Merge branch 'main' into SERVICES-2371-scroll-support-in-api
dragos-rebegea Oct 29, 2024
eb4559c
SERVICES-2371: pump version
dragos-rebegea Oct 29, 2024
214901b
improvements
dragos-rebegea Oct 31, 2024
f8b5c6d
Merge branch 'main' into SERVICES-2371-scroll-support-in-api
stefangutica Nov 18, 2025
2667ae2
node >18
stefangutica Nov 18, 2025
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
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"packages/*"
],
"npmClient": "npm"
}
}
112 changes: 92 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@
"publishConfig": {
"access": "public"
}
}
}
4 changes: 2 additions & 2 deletions packages/cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"author": "MultiversX",
"license": "MIT",
"devDependencies": {
"@types/node": "^16.11.10",
"@types/node": "^18.x",
"@types/tiny-async-pool": "^1.0.0",
"@typescript-eslint/eslint-plugin": "^5.12.0",
"@typescript-eslint/parser": "^5.16.0",
Expand All @@ -49,4 +49,4 @@
"publishConfig": {
"access": "public"
}
}
}
1 change: 1 addition & 0 deletions packages/cache/src/decorators/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './no.cache';
export * from './scrollable';
7 changes: 7 additions & 0 deletions packages/cache/src/decorators/scrollable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { DecoratorUtils } from "@multiversx/sdk-nestjs-common";

export class ScrollableOptions {
collection: string = '';
}

export const Scrollable = DecoratorUtils.registerMethodDecorator(ScrollableOptions);
1 change: 1 addition & 0 deletions packages/cache/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export * from './cache';
export * from './jitter';
export * from './interceptors/caching.interceptor';
export * from './interceptors/guest.cache.interceptor';
export * from './interceptors/scroll.interceptor';
export * from './guest-cache';
export * from './decorators';
6 changes: 6 additions & 0 deletions packages/cache/src/interceptors/caching.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ export class CachingInterceptor implements NestInterceptor {
return next.handle();
}

for (const paramName of Object.keys(request.query)) {
if (['scrollCreate', 'scrollAt', 'scrollAfter'].includes(paramName)) {
return next.handle();
}
}

this.metricsService.setPendingRequestsCount(Object.keys(this.pendingRequestsDictionary).length);

const cacheKey = this.getCacheKey(context);
Expand Down
Loading
Loading