Comments (10)
Spent hours are fetched after fetching issues since GitLab API does not provide time fields in issue response data in any way at the moment. But I see there is even no issues count data, so that looks like the pagination issue I was experiencing recently. The GitLab API provides pagination with max 100 items per page. It's kinda difficult to implement pagination using redux-api-middleware
so I'm thinking about migrating to some kind of "pure promise middleware" and implement pagination support from scratch. So some issues might be lost at the moment if they are not filtered enough.
from gitlab-time-report.
As a partial temporary solution, you may try to apply filters and press "refresh" or reload page (with URL query string args). Then data should be fetched with filters initially and if resulting issues count is less than 100, everything should display properly. I hope I'll fix it in a week or so.
from gitlab-time-report.
Thx for feedback!
I tried the filters and also the pagination is not an issue since I have only one ticket with spend time. But even with filters on it fires about 145 requests.
I can see the only ticket available within the filtered project - but still no time reportings
from gitlab-time-report.
Seems like I forgot how it works, sorry
Well, now there is at least an issue. But I still can't realize how can time stats be lost when issue is present. You're right, that's definitely not a pagination issue. If it is possible could you please provide /projects
, /projects/*/issues
and /projects/*/issues/*/time_stats
responses related to that issue? Or simply store
's state ($r.store.getState();
- available with react dev tools) if you can. That would help a lot but if there is something confidential then it's ok, I'll try to debug it on my own.
from gitlab-time-report.
You can have my config.jsx :-)
export const GITLAB_URL = 'http://tglc.de:81';
export const PRIVATE_TOKEN = 'u7F5egDgLZBny8zStX89';
redbulll winglab is the project where is one issue at my name, which should have an spend time of 5m
from gitlab-time-report.
btw pull fixed the 145 requests but issues are now gone.
from gitlab-time-report.
Wow, thanks a lot! I see two projects with the same name (39
and 41
IDs). Can it be a reason for disappeared issues? I've selected both of them and see the issue you mentioned before from 39
th project. Also time stats are OK.
http://127.0.0.1:3030/#{"projects":[39,41],"members":[3]}
:
from gitlab-time-report.
wow.
hm there is def only one project with this name. maybe one deleted?
from gitlab-time-report.
Do you mean archived
field? It's false
for both. Btw 41
th is in another namespace.
from gitlab-time-report.
I've implemented pagination support and also made time stats retrieving from issues
response as it seems like they added a time_stats
field to issues API in one of latest GitLab versions. So everything for your case should be OK now.
from gitlab-time-report.
Related Issues (4)
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 gitlab-time-report.