This is an automated email from the ASF dual-hosted git repository.

lynwee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 5d42c266a fix: #8342 editing scopeConfig shows incorrect affected 
projects (#8351)
5d42c266a is described below

commit 5d42c266a97cce33544d491c430ea067236c67eb
Author: Klesh Wong <[email protected]>
AuthorDate: Mon Mar 24 15:36:59 2025 +0800

    fix: #8342 editing scopeConfig shows incorrect affected projects (#8351)
---
 backend/helpers/srvhelper/scope_config_service_helper.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/helpers/srvhelper/scope_config_service_helper.go 
b/backend/helpers/srvhelper/scope_config_service_helper.go
index 9964f3f92..67cbc6195 100644
--- a/backend/helpers/srvhelper/scope_config_service_helper.go
+++ b/backend/helpers/srvhelper/scope_config_service_helper.go
@@ -88,7 +88,7 @@ func (scopeConfigSrv *ScopeConfigSrvHelper[C, S, SC]) 
GetProjectsByScopeConfig(p
                dal.From("_devlake_blueprint_scopes bps"),
                dal.Join("LEFT JOIN _devlake_blueprints bp ON (bp.id = 
bps.blueprint_id)"),
                dal.Join(join),
-               dal.Where("bps.plugin_name = ? AND bps.connection_id = ?", 
pluginName, (*scopeConfig).ScopeConfigConnectionId()),
+               dal.Where("bps.plugin_name = ? AND bps.connection_id = ? AND 
scope_config_id = ?", pluginName, (*scopeConfig).ScopeConfigConnectionId(), 
(*scopeConfig).ScopeConfigId()),
        ))
        projectScopeMap := make(map[string]*models.ProjectScope)
        for _, bps := range bpss {

Reply via email to