Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
basic
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Gitlab Maintenance 28.03.2025 | 20:00 - 23:00 MEZ
Show more breadcrumbs
xrm
basic
Commits
16a5cb59
Commit
16a5cb59
authored
5 years ago
by
David Büchler
Browse files
Options
Downloads
Patches
Plain Diff
Serverprozess um Organisationscachedublettenberechnung erweitert
parent
5fdad2a8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
process/RebuildDuplicatesCache_serverProcess/process.js
+20
-1
20 additions, 1 deletion
process/RebuildDuplicatesCache_serverProcess/process.js
with
20 additions
and
1 deletion
process/RebuildDuplicatesCache_serverProcess/process.js
+
20
−
1
View file @
16a5cb59
import
(
"
DuplicateScanner_lib
"
);
// Build Organisation duplicate cache
var
filterName
=
"
PersonDuplicates
"
;
var
targetEntity
=
"
Person_entity
"
;
var
resultFieldsIdFieldName
=
"
CONTACTID
"
;
...
...
@@ -14,4 +17,20 @@ tmpFieldsInFilterRay, resultFieldsIdFieldName);
DuplicateScannerUtils
.
RefreshUnrelatedDuplicateRelations
(
targetEntity
);
//todo Refresh der Organisation duplicates
\ No newline at end of file
// Build Organisation duplicate cache
filterName
=
"
OrganisationDuplicates
"
;
targetEntity
=
"
Organisation_entity
"
;
resultFieldsIdFieldName
=
"
CONTACTID
"
;
queryPersonContactIds
=
"
select CONTACTID, ORGANISATION.
\"
NAME
\"
from ORGANISATION
"
+
"
join CONTACT on CONTACT.CONTACTID = ORGANISATION.ORGANISATIONID
"
+
"
where CONTACTID != '0'
"
;
tmpFieldsInFilterRay
=
[
"
CONTACTID
"
,
"
NAME
"
];
DuplicateScannerUtils
.
DeleteDuplicateClustersByTargetEntity
(
targetEntity
)
DuplicateScannerUtils
.
RebuildDuplicatesCache
(
filterName
,
targetEntity
,
queryPersonContactIds
,
tmpFieldsInFilterRay
,
resultFieldsIdFieldName
);
DuplicateScannerUtils
.
RefreshUnrelatedDuplicateRelations
(
targetEntity
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment