Comments (9)
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.
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.
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.
I just created the pull request (#45). Very basic and focused on the Gitea Connector - request to Gitea. Hope this help :/
from gitea-vscode.
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.
Tested with an undred of issues, no more problems 8)
from gitea-vscode.
Hey there, sorry for the late response. I will go through it in a few hours and notify you!
from gitea-vscode.
I still have this:
Element with id 78 is already registered
Element with id 74 is already registered
from gitea-vscode.
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)
- HTTP Error v1.0.1 HOT 6
- Issue missing information in tree view HOT 1
- Request for Roadmap HOT 2
- Introduce baseurl for Gitea instance HOT 7
- Extension not visible in open-vsx.org HOT 1
- Error occoured. Error: Request failed with status code 401 HOT 9
- Errors when Gitea on localhost HOT 1
- [Feature Request] Separate config file for tokens HOT 6
- add context menu on editor line to copy/open web-UI url of a file / line
- Assignee shown as [object Object] HOT 3
- Feature Request: Allow multiple repos HOT 4
- `npm install` fails with current vscode version HOT 1
- Feature Request: Support RemoteSourceProvider HOT 2
- INVALID tree item, invalid id HOT 1
- Sort issues by tags or assignees
- Feature Request: gitea settings on workspace json HOT 2
- Feature Request: Render Checkboxes for list items starting with square brackets HOT 1
- Error: AxiosError: Request failed with status code 400 HOT 2
- Generic 404 error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitea-vscode.