Comments (3)
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
-
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
, andDeleteScopeConfig
[3]. -
Review the Pipeline Plan Creation: The
MakeDataSourcePipelinePlanV200
function inblueprint_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]. -
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.
Can you share screenshots of the connection detail page for those scopes that are NOT inheriting scope config?
from incubator-devlake.
@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)
- [Bug][Jira] A issue has been deleted in Jira,but devlake didnot delete it in devlake mysql,so when execute config-ui collect data ,the issue still exist HOT 2
- [Bug][AzureDevOpsPlugin] Unauthorized request HOT 8
- [Feature][Keycloak] Can't add SSO in Apache Devlake.
- [Bug][JiraPlugin] Failing on "collectIssues" subtask HOT 9
- [Feature][Convertor] Add data processing for Issue tracking to compute issue status and assignee history HOT 1
- [Bug][Config UI] I can still add an existing scope in AzureDevops
- [Feature][GitLab] Add assignees and reviewers to table.pull_requests
- [Bug][Module Name] my data doesnt show on the dashboard can someone help me please HOT 3
- [Refactor][DORA] Refactor CalculateChangeLeadTimeMeta subtask HOT 2
- [Feature][PagerDuty] Change Incident Times HOT 5
- [Bug][PagerDuty] not enough info for Pagerduty execution (400) HOT 3
- [Bug][Module Name] AxiosError: Request failed with status code 500 HOT 2
- [Bug][CircleCI] CircleCI regex is not working to collect data HOT 3
- [Feature][StarRocks] support starrocks replication num
- [Feature][CustomizePlugin] Data extraction 'rawDataParams' does not support wild cards
- [Bug][GitLab] account ID is not normalized HOT 1
- [Bug][SonarQube] subtask convertIssueCodeBlocks ended unexpectedly HOT 1
- [Bug][Sonarqube] data too long HOT 5
- [Bug][opsgenie] Testing API Key not working HOT 2
- [Bug][API] GET /projects exposes GitLab token in the gitextractor plugin 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 incubator-devlake.