Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9569

Closed
Open
Created 9 years ago by Administrator@rootOwner
  • New issue

  • Report abuse

  • New issue

  • Report abuse

Tag count differs depending on where I am on the site

Closed

Tag count differs depending on where I am on the site

Created by: linagee

I'm using many many tags. It seems like the code is using two different styles of counting tags. One count appears to show my many tags nearly instantly. The other count appears to only show it correctly after some time. (Perhaps some process in the background hasn't ran yet?) Is this on purpose to have two different tag counts like this? (They are usually the same.)

I'm using package manager installed (debian) GitLab 7.13.5, but I see that on the master branch these lines are exactly the same.

Here are the files: (and the line that I think is doing this strangeness.)

/opt/gitlab/embedded/service/gitlab-rails/app/views/projects/show.html.haml

24         = pluralize(number_with_delimiter(@repository.tag_names.count), 'tag')

/opt/gitlab/embedded/service/gitlab-rails/app/views/projects/commits/_head.html.haml

22       %span.badge.js-totaltags-count= @repository.tags.length

(It looks like you can strip off the /opt/gitlab/embedded/service/gitlab-rails/ from the above to get the gitlabhq/gitlabhq "github hosted" location.)

Also, if you use lightweight (not annotated) tags, they appear to not ever be included in the count for app/views/projects/show.html.haml

Linked issues
...

    Related merge requests

    • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
    Please register or sign in to reply
    0 Assignees
    Assign to
    Milestone
    No milestone
    None
    None
    Time tracking
    Due date
    None
    None
    0
    Labels
    None
    Assign labels
    • No matching results
    • Manage project labels
    Confidentiality
    Not confidential

    You are going to turn on confidentiality. Only team members with at least Reporter access will be able to see and leave comments on the issue.

    Lock issue
    Unlocked
    participants
    Reference: