Comments (2)
Hello, @jluque0101! I'm here to assist you with any questions, bugs, or issues you may have. I can help you solve problems, answer questions, and even guide you on how to become a contributor. Let me know how I can assist you today!
Yes, there is a way to associate multiple scope-configs for a repository depending on which project it is associated with. The application supports associating and updating scope configurations for different projects. The handleAssociateScopeConfig
and handleUpdate
functions demonstrate how scope configurations can be managed and applied to different projects.
Here is a relevant code snippet that handles the association and updating of scope configurations:
const handleAssociateScopeConfig = async (trId: ID) => {
const [success] = await operator(
() =>
Promise.all(
scopeIds.map(async (scopeId) => {
const scope = await API.scope.get(plugin, connectionId, scopeId);
return API.scope.update(plugin, connectionId, scopeId, {
...scope,
scopeConfigId: trId !== 'None' ? +trId : null,
});
}),
),
{
setOperating,
formatMessage: () =>
trId !== 'None' ? 'Associate scope config successful.' : 'Dis-associate scope config successful.',
},
);
if (success) {
handleHideDialog();
setVersion(version + 1);
message.success(
'Scope Config(s) have been updated. If you would like to re-transform or re-collect the data in the related project(s), please go to the Project page and do so.',
);
}
};
const handleUpdate = async (trId: ID) => {
handleHideDialog();
const [success, res] = await operator(() => API.scopeConfig.check(plugin, trId), { hideToast: true });
if (success) {
handleShowProjectsModal(res.projects ?? []);
}
};
Additionally, the ScopeConfigForm
component provides a user interface for creating and updating scope configurations. This form allows users to specify the name, data entities, and transformations for a scope configuration, which can then be associated with different projects.
For more detailed information, you can refer to the relevant files in the repository:
config-ui/src/plugins/components/scope-config/index.tsx
[1]config-ui/src/routes/connection/connection.tsx
[2]config-ui/src/plugins/components/scope-config-form/index.tsx
[3]
This approach ensures that the correct scope configurations are applied based on the project context, allowing you to handle different regex patterns for tracking deployments in GitHub Actions workflows for each team.
To continue talking to Dosu, mention @dosu.
from incubator-devlake.
@jluque0101 You can set up two connections with different scope-configs to circumvent this issues.
from incubator-devlake.
Related Issues (20)
- [BUG].[REFDIFF].[PLUGIN] - 'SELECT * FROM refs ORDER BY created_date desc' taking too long HOT 6
- [Bug][GitHub] wrong pipeline name column if run-name is defined HOT 2
- [Bug][Jira][REST API] Unable to set up Jira connection via API due to token length issue HOT 4
- [Bug][Onboard] Option `enableGraphQL` is disabled by default. HOT 1
- [Bug][GitHub] Missing Pull Request data when changing the Time Range in Sync Policy HOT 1
- [Feature][Jira issue changelogs] Add customized jira account fields to table.accounts HOT 1
- [Bug][Sonarcloud] Error 1406 (22001): Data too long for column 'project_key' at row 1 HOT 7
- [Bug][GitLab] Sometimes Project data are automatically deleted. HOT 3
- [Bug][cicd_pipelines] Fix pipelines with Github HOT 11
- [Bug][Gitlab] v1.0.1-beta2 Data Time Range not working HOT 21
- [Bug][CircleCI Plugin] Only collecting first page of API responses HOT 6
- [Bug][Config UI] AxiosError: Request failed with status code 502 HOT 4
- [Bug][Gitlab] Component and File-Level Metrics not displaying HOT 7
- [Feature][Framework] Reminder before token is expired
- [Question][Data Models] Code Quality / Testing HOT 7
- [Bug][Pagerduty] The PagerDuty connection is pulling incident data but this is not being reflected in metrics. HOT 7
- [Bug][Framework] Projects shouldn't be deleted if it has any connections.
- [Bug][pagerduty] DevLake does not collect PagerDuty incidents HOT 5
- [Feature][PR metrics] Add key timestamps to the `project_pr_metrics` table
- [Feature][GitHub] Hide 'enable GraphQL' in the GitHub connection configuration
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.