Git Product home page Git Product logo

Comments (14)

KazzmanK avatar KazzmanK commented on June 7, 2024 1

No issues for me too, in light and dark themes.

@kemzeb , may it be issue with database sync or custom theme?
Admin-Maintenance-> click on all sync operations.

there is no issue with your example
image

Is there something special with your browser ? Errors in console, etc

from gitea.

kemzeb avatar kemzeb commented on June 7, 2024 1

Alright working on this πŸ‘

from gitea.

lunny avatar lunny commented on June 7, 2024

It works for me. 0f3e717

from gitea.

kemzeb avatar kemzeb commented on June 7, 2024

After doing the following:

  • Made my fork up-to-date with gitea's main
  • Built the project with: TAGS="bindata sqlite sqlite_unlock_notify" make build
  • Created a new Gitea repository where I snatched all the commits in a project with 736 commits and merged their main onto mine
  • Navigated to the Contributors page
  • Disabled my browser cache and reloaded the page

I still have the problem:
Screenshot 2024-05-03 at 9 31 28β€―AM

The x-axis appears to be correct, but I am not seeing any chart data. I also realized that I'm not seeing any contributor graphs. I'm running on a chromium-based browser. I also checked Firefox and Safari (i.e. I'm using MacOS v14.4.1) and encountered the same problem. Not sure what's going on on my end.

Looking for more examples, I encountered the terraform-provider-gitea project where I also see the issue.

from gitea.

lunny avatar lunny commented on June 7, 2024

It works for me both chrome and firefox web browser in macOS.

image

from gitea.

kemzeb avatar kemzeb commented on June 7, 2024

No console or network errors, I still see the the JSON responses are successful; I used Safari, Brave, and Firefox and I don't see anything. I also went on a separate Windows machine with Firefox and I still don't see any chart data. I have used both light and dark themes for each browser.

from gitea.

kemzeb avatar kemzeb commented on June 7, 2024

I have read the PR that introduced this change and my best guess so far has to do with some problem associated to date and time handling (I'm from the US).

from gitea.

kemzeb avatar kemzeb commented on June 7, 2024

Update: it looks like I am right. I changed my operating system to use a European date and time and I can now see the chart data. I'll see if I can make a patch for this (not a frontend wizard but I have read some of the code last night)!

from gitea.

snoweuph avatar snoweuph commented on June 7, 2024

will this be in 1.22.1 or will it stay broken till 1.23.0 for stable users?
because I can reproduce it on my Instance running 1.22.0
image

from gitea.

kemzeb avatar kemzeb commented on June 7, 2024

We backported this patch, so it should be included in v1.22.0.

I have done the following:

  • Removed my previous database directory so that it can be rebuilt
  • git checkout v1.22.0
  • TAGS="bindata sqlite sqlite_unlock_notify" make build
  • ./gitea web
  • Created a repository and made 3 commits

And haven't been able to reproduce.

I went to your instance to see if I can gather any useful insights and that's where I noticed that the backend is sending negative Unix times. Here is an example I extracted from inspecting the HTTP responses:

. . .
    "total": {
        "name": "Total",
        "login": "",
        "avatar_link": "",
        "home_link": "",
        "total_commits": 246,
        "weeks": {
            "-62135596800000": {
                "week": -62135596800000,
                "additions": 214923,
                "deletions": 191599,
                "commits": 246
            }
        }
    }
. . .

It doesn't make sense to be getting negative Unix times since they represent times before the Unix epoch.

Given these results, I believe that this is a problem in the backend and we should maybe create a bug report for this.

from gitea.

snoweuph avatar snoweuph commented on June 7, 2024

okay?

anything I can do to help debugging rn?

from gitea.

snoweuph avatar snoweuph commented on June 7, 2024

Side Information: I did the upgrade to 22 just 3 days ago, so I should have the bugfix already, right?

So I guess, I have a weird bug in thte backend, though I would exspect server and not go binary releated

from gitea.

kemzeb avatar kemzeb commented on June 7, 2024

Side Information: I did the upgrade to 22 just 3 days ago, so I should have the bugfix already, right?

Yes, v1.22.0 should have it.

So I guess, I have a weird bug in thte backend, though I would exspect server and not go binary releated

After looking at the code that builds these Unix times, I haven't been able to determine the cause (or if the problem resides elsewhere). If you wish, you can open a new issue so that we can track this potential bug.

from gitea.

snoweuph avatar snoweuph commented on June 7, 2024

Side Information: I did the upgrade to 22 just 3 days ago, so I should have the bugfix already, right?

Yes, v1.22.0 should have it.

So I guess, I have a weird bug in thte backend, though I would exspect server and not go binary releated

After looking at the code that builds these Unix times, I haven't been able to determine the cause (or if the problem resides elsewhere). If you wish, you can open a new issue so that we can track this potential bug.

I just opend up #31248

from gitea.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.