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

Duplicate item in tips list #369

Open
davidyuk opened this issue Jul 8, 2021 · 1 comment
Open

Duplicate item in tips list #369

davidyuk opened this issue Jul 8, 2021 · 1 comment
Assignees

Comments

@davidyuk
Copy link
Member

davidyuk commented Jul 8, 2021

t = async url => (await (await fetch(url)).json()).map(t => t.id)
(await t('https://raendom-backend.z52da5wt.xyz/tips?ordering=latest&page=3&contractVersion=v1&contractVersion=v2&contractVersion=v3&blacklist=true')).includes('3033_v1')
// true
(await t('https://raendom-backend.z52da5wt.xyz/tips?ordering=latest&page=4&contractVersion=v1&contractVersion=v2&contractVersion=v3&blacklist=true')).includes('3033_v1')
// true

or

$ curl https://raendom-backend.z52da5wt.xyz/tips\?ordering\=latest\&page\=3\&contractVersion\=v1\&contractVersion\=v2\&contractVersion\=v3\&blacklist\=true | jq . | grep 3033
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 45884  100 45884    0     0   142k      0 --:--:-- --:--:-- --:--:--  142k
    "id": "3033_v1",
      "id": "3033_v1",
$ curl https://raendom-backend.z52da5wt.xyz/tips\?ordering\=latest\&page\=4\&contractVersion\=v1\&contractVersion\=v2\&contractVersion\=v3\&blacklist\=true | jq . | grep 3033
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 44126  100 44126    0     0    98k      0 --:--:-- --:--:-- --:--:--   98k
    "id": "3033_v1",
      "id": "3033_v1",

It may be a caching issue if new items shift pages, but it persists for a long time and reproducible in different environments. 🤔

@kenodressel
Copy link
Member

Hm I am having a hard time reproducing this. I assume that mostly refers to the last item on page n and the first item on page n+1 ?

@kenodressel kenodressel self-assigned this Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants