GithubHelp home page GithubHelp logo

Very close.. about gitlab-time-report HOT 10 CLOSED

insolite avatar insolite commented on June 30, 2024
Very close..

from gitlab-time-report.

Comments (10)

insolite avatar insolite commented on June 30, 2024

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.

insolite avatar insolite commented on June 30, 2024

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.

mitchiru avatar mitchiru commented on June 30, 2024

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

screen shot 2017-10-03 at 12 53 51

from gitlab-time-report.

insolite avatar insolite commented on June 30, 2024

Seems like I forgot how it works, sorry 🙂. As for 145 requests with filters: yep, that's my fault, fixed it in commit above. Also need to make an edit here. The only filter that will affect server requests count is "project". Members and milestones can't be applied on API level as well as I know.

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.

mitchiru avatar mitchiru commented on June 30, 2024

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.

mitchiru avatar mitchiru commented on June 30, 2024

btw pull fixed the 145 requests but issues are now gone.

from gitlab-time-report.

insolite avatar insolite commented on June 30, 2024

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 39th project. Also time stats are OK.

http://127.0.0.1:3030/#{"projects":[39,41],"members":[3]}:
time-report

from gitlab-time-report.

mitchiru avatar mitchiru commented on June 30, 2024

wow.

hm there is def only one project with this name. maybe one deleted?

from gitlab-time-report.

insolite avatar insolite commented on June 30, 2024

Do you mean archived field? It's false for both. Btw 41th is in another namespace.

from gitlab-time-report.

insolite avatar insolite commented on June 30, 2024

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 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.