GithubHelp home page GithubHelp logo

Comments (3)

dosubot avatar dosubot commented on June 30, 2024 2

Hey @slaterx! I'm Dosu, a friendly bot here to help you solve bugs, answer questions, and guide you in becoming a contributor. While you wait for a human maintainer, I'm here to assist! 😄

The issue you're encountering, where only the first 10 items are inheriting the scope config and the rest are showing "N/A," could be related to how the scope configurations are being processed and inherited in the codebase.

Potential Cause

The scope config is marked as "N/A" when the scopeConfigId is not provided or is undefined [1]. This might be happening due to a limitation or bug in the code that processes the scope configurations for multiple data scopes.

Relevant Code

The inheritance of scope configurations is implemented using Go's struct embedding feature. The GithubScopeConfig struct embeds the common.ScopeConfig struct, which allows it to inherit fields and methods from common.ScopeConfig [2].

Troubleshooting Steps

  1. Check the API Handling: Ensure that the API endpoints responsible for creating and updating scope configurations are correctly handling all the data scopes. The relevant functions are PostScopeConfig, PatchScopeConfig, GetScopeConfig, GetScopeConfigList, and DeleteScopeConfig [3].

  2. Review the Pipeline Plan Creation: The MakeDataSourcePipelinePlanV200 function in blueprint_v200.go handles multiple data scopes when creating a pipeline plan. Ensure that this function is correctly loading and applying the scope configurations for all data scopes [4].

  3. Logs and Error Messages: Check for any logs or error messages that might indicate issues with decoding or applying the scope configurations. Look for messages like "error in decoding scope config" or "no scope config with given id" [5].

Next Steps

  • Debugging: Add debugging statements to the relevant parts of the code to trace how the scope configurations are being applied to each data scope.
  • Unit Tests: Ensure that there are unit tests covering the inheritance of scope configurations when adding multiple data scopes. The TestScopeApiHelper_Put test verifies the correct setting of scope fields and the successful addition of multiple scopes [6].

By following these steps, you should be able to identify and resolve the issue causing only the first 10 items to inherit the scope config. If you need further assistance, feel free to ask!

Details

About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

from incubator-devlake.

klesh avatar klesh commented on June 30, 2024

Can you share screenshots of the connection detail page for those scopes that are NOT inheriting scope config?

from incubator-devlake.

slaterx avatar slaterx commented on June 30, 2024

@klesh it's all in the same connection, not a new one. Installation has only one project with only one connection in it. And all repos in it have a configured scope in it.

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.