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

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

Open
3 tasks done
zc-devs opened this issue Dec 22, 2024 · 0 comments
Open
3 tasks done

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

zc-devs opened this issue Dec 22, 2024 · 0 comments
Labels
bug Something isn't working ui frontend related

Comments

@zc-devs
Copy link
Contributor

zc-devs commented Dec 22, 2024

Component

web-ui

Describe the bug

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

If you never visited a repo it shows the first 4 repos from the "general" list (probably sorted by last pipeline time)

Steps to reproduce

  1. Prepare domains
192.168.1.11	wp.local
192.168.1.11	gitea.local
  1. Install Gitea
services:
  gitea:
    image: docker.io/gitea/gitea:1.22.6
    container_name: gitea
    environment:
      - USER_UID=1000
      - USER_GID=1000
    volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    networks:
      - gtwp
    ports:
      - "3000:3000"
      - "222:22"
networks:
  gtwp:
  1. Open Gitea in Firefox in Incognito mode
  2. Under administrator (minad) create app
    Screenshot 2024-12-21 211422
  3. Create user
  4. Create org
  5. Put user in the org with admin access
    Screenshot 2024-12-21 212844
  6. Create repos
    Screenshot 2024-12-21 213000
  7. Deploy Woodpecker
  woodpecker:
    image: woodpeckerci/woodpecker-server:v3.0.0-rc1-alpine
    volumes:
      - ./woodpecker:/var/lib/woodpecker/
    networks:
      - gtwp
    ports:
      - 8000:8000
    environment:
      - WOODPECKER_OPEN=true
      - WOODPECKER_ADMIN=minad
      - WOODPECKER_HOST=http://wp.local:8000
      - WOODPECKER_GITEA=true
      - WOODPECKER_GITEA_URL=http://gitea.local:3000
      - WOODPECKER_GITEA_CLIENT=5803cc8d-a1c4-40f3-a8a3-ef2fe14af9d9
      - WOODPECKER_GITEA_SECRET=gto_47lv2s253i4sxujw4cnljcpe75oyzhvqs3xfwnddyjwtmgwlntka
      - WOODPECKER_LOG_LEVEL=trace
  1. Open Woodpecker in another Firefox tab
  2. Login under administrator (minad) and activate repos
    Screenshot 2024-12-21 213109
  3. Open Chrome in Incognito mode
  4. Login under user (harry) and see all (three) repos in the last visited block.
    Screenshot 2024-12-21 213242

I didn't open a repository at all. I just logged in from another browser under another user.

Expected behavior

Under the second user (harry) the last visited repos block is empty.

System Info

WP 3.0.0-rc1, Gitea 1.22.6, Docker Desktop 4.35.1

Additional context

#4386 (comment)
#4386 (comment)

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
@zc-devs zc-devs added the bug Something isn't working label Dec 22, 2024
@zc-devs zc-devs changed the title WIP: Last visited repos header shows repos which never have been visited Last visited repos header shows repos which never have been visited Dec 22, 2024
@qwerty287 qwerty287 added the ui frontend related label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ui frontend related
Projects
None yet
Development

No branches or pull requests

2 participants