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
700ed0f0
Commit
700ed0f0
authored
3 years ago
by
Benjamin Ulrich
Committed by
Sebastian Pongratz
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Projekt: xRM-Sales][TicketNr.: 1084407][Themenbaum - Prozess zum migrieren von Altdaten]
parent
0ce9bf2d
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/migrate_themesAsTopics_serverProcess/process.js
+8
-5
8 additions, 5 deletions
process/migrate_themesAsTopics_serverProcess/process.js
with
8 additions
and
5 deletions
process/migrate_themesAsTopics_serverProcess/process.js
+
8
−
5
View file @
700ed0f0
import
(
"
Util_lib
"
);
import
(
"
system.eMath
"
);
import
(
"
TopicTree_lib
"
);
import
(
"
system.logging
"
);
...
...
@@ -111,7 +112,7 @@ function _migrateTopicTree(pThemes)
topicObj
[
themeId
][
"
insertHelper
"
][
"
columns
"
].
push
(
"
DATE_NEW
"
);
topicObj
[
themeId
][
"
insertHelper
"
][
"
values
"
].
push
(
date_new
);
if
(
theme_id
&&
Utils
.
isNotNullOrEmpty
(
theme_id
))
if
(
theme_id
&&
Utils
.
isNotNullOrEmpty
String
(
theme_id
))
{
topicObj
[
themeId
][
"
assignedTo
"
]
=
theme_id
;
topicsToLoopTrough
.
push
(
themeId
);
...
...
@@ -169,8 +170,11 @@ function _migrateTopicTree(pThemes)
previousLayer
=
TopicTreeUtils
.
getPreviousLayerName
(
previousLayer
);
if
(
previousLayer
!=
"
SORTING_LAYER_0
"
)
{
topicObj
[
themeId
][
"
insertHelper
"
][
"
columns
"
].
push
(
previousLayer
);
topicObj
[
themeId
][
"
insertHelper
"
][
"
values
"
].
push
(
-
1
);
//value doesn't matter here
if
(
!
topicObj
[
themeId
][
"
insertHelper
"
][
"
columns
"
].
includes
(
previousLayer
))
{
topicObj
[
themeId
][
"
insertHelper
"
][
"
columns
"
].
push
(
previousLayer
);
topicObj
[
themeId
][
"
insertHelper
"
][
"
values
"
].
push
(
"
-1
"
);
//value doesn't matter here
}
}
else
{
...
...
@@ -210,8 +214,7 @@ function _migrateTopicTree(pThemes)
//we don't change the original order tho, since we used the stored sortingValue to sort said array that we are now looping trough
var
sortingValue
=
eMath
.
addInt
(
i
,
1
);
topicTreeColumns
.
push
(
topicObj
[
ownTopicId
][
"
layer
"
]);
topicTreeValues
.
push
(
sortingValue
);
topicTreeValues
[
topicTreeColumns
.
indexOf
(
topicObj
[
ownTopicId
][
"
layer
"
])]
=
sortingValue
;
statements
.
push
([
"
TOPICTREE
"
,
topicTreeColumns
,
null
,
topicTreeValues
]);
}
}
...
...
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