Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
9006d668
Commit
9006d668
authored
Mar 05, 2019
by
Boris Kocherov
Committed by
Romain Courteaud
Apr 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_only_office] disable using cache for discoverMDMembers
parent
7c46f41d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
35 deletions
+33
-35
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/sdkjs/cell/model/FormulaObjects/cubeFunctions.xmla.js.js
.../sdkjs/cell/model/FormulaObjects/cubeFunctions.xmla.js.js
+33
-35
No files found.
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/sdkjs/cell/model/FormulaObjects/cubeFunctions.xmla.js.js
View file @
9006d668
...
...
@@ -430,46 +430,44 @@ function (window, RSVP, Xmla, console) {
}
if
(
opt
.
member_uname
)
{
prop
.
restrictions
[
"
MEMBER_UNIQUE_NAME
"
]
=
opt
.
member_uname
;
cached_member
=
scheme
.
members
[
opt
.
member_uname
];
}
if
(
opt
.
level_uname
)
{
prop
.
restrictions
[
"
LEVEL_UNIQUE_NAME
"
]
=
opt
.
level_uname
;
}
if
(
cached_member
)
{
return
[
cached_member
];
}
else
{
return
xmla_request_retry
(
"
discoverMDMembers
"
,
settings
)
.
push
(
function
(
r
)
{
var
ret
=
[],
uname
,
level
,
cached_member1
;
while
(
r
.
hasMoreRows
())
{
uname
=
r
[
"
getMemberUniqueName
"
]();
level
=
r
[
"
getLevelUniqueName
"
]();
// we can check cache twice because fist check
// only if discover by member_uname
if
(
!
scheme
.
members
.
hasOwnProperty
(
uname
))
{
cached_member1
=
{
uname
:
uname
,
h
:
r
[
"
getHierarchyUniqueName
"
](),
level
:
r
[
"
getLevelUniqueName
"
](),
caption
:
r
[
"
getMemberCaption
"
](),
type
:
r
[
"
getMemberType
"
]()
};
scheme
.
members
[
uname
]
=
cached_member1
;
}
else
{
cached_member1
=
scheme
.
members
[
uname
];
}
ret
.
push
(
cached_member1
);
r
.
nextRow
();
if
(
!
scheme
.
levels
.
hasOwnProperty
(
level
))
{
scheme
.
levels
[
level
]
=
discover_level
(
connection
,
scheme
,
level
);
}
}
return
ret
;
});
if
(
opt
.
tree_op
)
{
prop
.
restrictions
[
"
TREE_OP
"
]
=
opt
.
tree_op
;
}
return
xmla_request_retry
(
"
discoverMDMembers
"
,
settings
)
.
push
(
function
(
r
)
{
var
ret
=
[],
uname
,
level
,
cached_member
;
while
(
r
.
hasMoreRows
())
{
uname
=
r
[
"
getMemberUniqueName
"
]();
level
=
r
[
"
getLevelUniqueName
"
]();
// we can check cache twice because fist check
// only if discover by member_uname
if
(
!
scheme
.
members
.
hasOwnProperty
(
uname
))
{
cached_member
=
{
uname
:
uname
,
h
:
r
[
"
getHierarchyUniqueName
"
](),
level
:
r
[
"
getLevelUniqueName
"
](),
caption
:
r
[
"
getMemberCaption
"
](),
type
:
r
[
"
getMemberType
"
]()
};
scheme
.
members
[
uname
]
=
cached_member
;
}
else
{
cached_member
=
scheme
.
members
[
uname
];
}
ret
.
push
(
cached_member
);
r
.
nextRow
();
if
(
!
scheme
.
levels
.
hasOwnProperty
(
level
))
{
scheme
.
levels
[
level
]
=
discover_level
(
connection
,
scheme
,
level
);
}
}
return
ret
;
});
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment