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

Both  listLeaderboardRecords and listLeaderboardRecordsAroundOwner Functions can't return full list. even if ownerIds is null #52

Closed
okworld26 opened this issue Dec 23, 2022 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@okworld26
Copy link

For example:

listLeaderboardRecords function,

If ownerId parameter is set to exact user id list, It 's ok to return the correct records.

But if ownerId is null or [], or just remove this parameter, It return empty leaderboard records!

@okworld26
Copy link
Author

According to Doc :https://heroiclabs.com/docs/nakama/client-libraries/javascript/#listing-the-top-records

empty ownerIds should return FULL record list.

@obrunsmann
Copy link
Contributor

Hey, please use the provides issue template and add the installed package version as well as the flutter doctor output to your report.

@obrunsmann obrunsmann added the invalid This doesn't seem right label Dec 23, 2022
@okworld26
Copy link
Author

sorry, version is 1.0.0-dev2. Let me give more details soon

@okworld26
Copy link
Author

Describe the bug

listLeaderboardRecords function,

If ownerId parameter is set to exact user id list, It 's ok to return the correct records.

But if ownerId is null or [], or just remove this parameter, It return empty leaderboard records!

Reproduction Code
final allrecords = await nakamaClient!.listLeaderboardRecordsAroundOwner(
session: session!,
leaderboardName: globalLeaderBoardId,
ownerId: null
);

    print(oldrecord);  // this is empty records!,   it should be the full record list

Expected behavior

allrecords should return the full list of leaderboard record. But it returns empty records.

output: flutter: LeaderboardRecordList(records: [], ownerRecords: [], nextCursor: , prevCursor: )

Screenshots

pubspec.yaml

[```yaml
(nakama: ^1.0.0-dev.2)


**Additional context**
 
The leader board record has two records in fact.  But it retures empty records

@obrunsmann obrunsmann removed the invalid This doesn't seem right label Dec 23, 2022
@obrunsmann obrunsmann self-assigned this Dec 23, 2022
@okworld26
Copy link
Author

@obrunsmann , hi. any update on this?
Should I use raw http request to get the correct data as a workaround for now?

@obrunsmann
Copy link
Contributor

@obrunsmann , hi. any update on this? Should I use raw http request to get the correct data as a workaround for now?

Currently tracking this issue with Nakama team. Coming back to you with some feedback soon :)

@iammuho
Copy link

iammuho commented Dec 19, 2023

No solution to that issue since 5 jan ? I'm still having the same problem

@obrunsmann obrunsmann added the bug Something isn't working label Dec 28, 2023
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
None yet
Development

No branches or pull requests

3 participants