GithubHelp home page GithubHelp logo

Comments (8)

sstojak1 avatar sstojak1 commented on August 16, 2024 1

@klesh can you please assign this task to me? I have started to work on it

from incubator-devlake.

Startrekzky avatar Startrekzky commented on August 16, 2024

Hi @sstojak1 , it's a valid refactore, but may I know why the same data keeps been adding to the RAW_PULL_REQUEST_TABLE after each run?

from incubator-devlake.

sstojak1 avatar sstojak1 commented on August 16, 2024

Hi @Startrekzky I would say that this is because BB Server API doesn't support date query parameter. So you cannot fetch PRs that were updated/created after last import job.

Because of that Devlake is importing all PRs during each job run (check how BB Cloud is not doing that since date query parameter is supported for that tool).

from incubator-devlake.

klesh avatar klesh commented on August 16, 2024

Based on the information you provided, it seems the collector would benefit from using the simpler ApiCollector since it would purge related records from the raw data table before saving new PR information. This might be more efficient compared to the StatefulApiCollector in this context.

from incubator-devlake.

sstojak1 avatar sstojak1 commented on August 16, 2024

@klesh That might work! Is there a way to run Devlake locally in debug mode? I'd like to go through the ApiCollector impl to understand its impact on the rest of the steps for importing BB server data...

from incubator-devlake.

klesh avatar klesh commented on August 16, 2024

Yes, sure. You may follow this guide.

In case you wanna execute specific subtasks, you may go to the backend folder and run sth like the following:

go run plugins/jira/jira.go -c 2 -b 8 -t "extractWorklogs"

remember to change the plugin name and arguments accordingly.

from incubator-devlake.

klesh avatar klesh commented on August 16, 2024

@sstojak1 Thanks for the reminder. Done. 🤝

from incubator-devlake.

sstojak1 avatar sstojak1 commented on August 16, 2024

@klesh ready to be reviewed

from incubator-devlake.

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.