woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.3k stars 370 forks source link

Last visited repos header shows repos which never have been visited #4426

Open zc-devs opened 11 hours ago

zc-devs commented 11 hours ago

Component

web-ui

Describe the bug

I see repos, that I have never visited in the last visited repos header.

Steps to reproduce

  1. Woodpecker + Gitea
  2. Create an or in Gitea
  3. Create 2 users and put them in the org
  4. Under User 1 create some repos in Gitea
  5. Under User 1 enable the repos in Woodpecker
  6. Under User 2 open repositories and see newly created repos in the last visited repos header.

Expected behavior

Under User 2 the last visited repos header is empty.

System Info

WP next-350082cd19, Gitea 1.22.3, Postgres 16, Kubernetes v1.30.6+k3s1

Additional context

https://github.com/woodpecker-ci/woodpecker/pull/4386#issuecomment-2490781907 https://github.com/woodpecker-ci/woodpecker/pull/4386#issuecomment-2491007569

Validations