Giter VIP home page Giter VIP logo

Comments (9)

berg2043 avatar berg2043 commented on June 12, 2024 4

A recommended fix would be to remove issues.push(...issuesOfPage); from line 32 of issueProvider.ts and replacing it with

for(let issue of issuesOfPage){

  if(!issuesID.includes(issue['id'])){

    issuesID.push(issue['id']);

    issues.push(issue);

  }

}

and adding const issuesID = []; to line 27.

What's happening is that if there is more than 10 issues, it will pull multiple pages. These pages can have issues that previous pages resulting in duplicates in the array. issuesID keeps track of what id's have already been found and prevents duplicates from being added.

from gitea-vscode.

IJustDev avatar IJustDev commented on June 12, 2024 1

Yea we really should implement the logging, at the beginning I didn't give a shit about logging ^^ Wrong move, I guess. It may be a problem with the rendering (each element has an id and this id should be unique)

from gitea-vscode.

MaxenceG2M avatar MaxenceG2M commented on June 12, 2024 1

Yea we really should implement the logging, at the beginning I didn't give a shit about logging ^^ Wrong move, I guess. It may be a problem with the rendering (each element has an id and this id should be unique)

Definitly needed :D

I have started something very basic, I am going to propose a PR. This will help to identify the problem.

from gitea-vscode.

MaxenceG2M avatar MaxenceG2M commented on June 12, 2024 1

I just created the pull request (#45). Very basic and focused on the Gitea Connector - request to Gitea. Hope this help :/

from gitea-vscode.

MaxenceG2M avatar MaxenceG2M commented on June 12, 2024

I think the problem comes from the Gitea API which does not like the page number to be 0 (tested with Gitea 1.16.5).

Change this line with let page=1 seems to fix the problem (still testing ;))

from gitea-vscode.

MaxenceG2M avatar MaxenceG2M commented on June 12, 2024

Tested with an undred of issues, no more problems 8)

from gitea-vscode.

IJustDev avatar IJustDev commented on June 12, 2024

Hey there, sorry for the late response. I will go through it in a few hours and notify you!

from gitea-vscode.

lonix1 avatar lonix1 commented on June 12, 2024

I still have this:

Element with id 78 is already registered

Element with id 74 is already registered

from gitea-vscode.

lonix1 avatar lonix1 commented on June 12, 2024

Looking forward to that! It will help to solve this problem, and future ones too.

PS: @IJustDev I suggest to reopen this issue?

from gitea-vscode.

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.