Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sencha-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
sencha-core
Commits
30c28187
Commit
30c28187
authored
Dec 29, 2020
by
Project Open
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Reduced delay to 200ms for delayed sync
parent
f49af356
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
SenchaPreferenceStore.js
www/store/user/SenchaPreferenceStore.js
+24
-24
No files found.
www/store/user/SenchaPreferenceStore.js
View file @
30c28187
...
...
@@ -15,37 +15,37 @@
*/
Ext
.
define
(
'PO.store.user.SenchaPreferenceStore'
,
{
storeId
:
'senchaPreferenceStore'
,
extend
:
'Ext.data.Store'
,
requires
:
[
'PO.model.user.SenchaPreference'
],
model
:
'PO.model.user.SenchaPreference'
,
// Uses standard User as model
autoLoad
:
false
,
remoteFilter
:
true
,
// Do not filter on the Sencha side
debug
:
fals
e
,
pageSize
:
100000
,
// Load all projects, no matter what size(?)
storeId
:
'senchaPreferenceStore'
,
extend
:
'Ext.data.Store'
,
requires
:
[
'PO.model.user.SenchaPreference'
],
model
:
'PO.model.user.SenchaPreference'
,
// Uses standard User as model
autoLoad
:
false
,
remoteFilter
:
true
,
// Do not filter on the Sencha side
debug
:
tru
e
,
pageSize
:
100000
,
// Load all projects, no matter what size(?)
proxy
:
{
type
:
'rest'
,
// Standard ]po[ REST interface for loading
url
:
'/intranet-rest/im_sencha_preference'
,
appendId
:
true
,
timeout
:
300000
,
extraParams
:
{
format
:
'json'
},
// Overwritten during load()
type
:
'rest'
,
// Standard ]po[ REST interface for loading
url
:
'/intranet-rest/im_sencha_preference'
,
appendId
:
true
,
timeout
:
300000
,
extraParams
:
{
format
:
'json'
},
// Overwritten during load()
reader
:
{
type
:
'json'
,
// Tell the Proxy Reader to parse JSON
root
:
'data'
,
// Where do the data start in the JSON file?
totalProperty
:
'total'
// Total number of tickets for pagination
type
:
'json'
,
// Tell the Proxy Reader to parse JSON
root
:
'data'
,
// Where do the data start in the JSON file?
totalProperty
:
'total'
// Total number of tickets for pagination
},
writer
:
{
type
:
'json'
// Allow Sencha to write ticket changes
type
:
'json'
// Allow Sencha to write ticket changes
}
},
deferredSync
:
null
,
deferredSync
:
null
,
// Function to sync in 200ms
constructor
:
function
(
config
)
{
var
me
=
this
;
if
(
me
.
debug
)
console
.
log
(
'SenchaPreferenceStore.constructor: Started'
);
me
.
callParent
([
config
]);
// POST the object to the REST API, performing an update
me
.
deferredSync
=
Ext
.
Function
.
createBuffered
(
me
.
sync
,
10
00
,
me
);
me
.
deferredSync
=
Ext
.
Function
.
createBuffered
(
me
.
sync
,
2
00
,
me
);
if
(
me
.
debug
)
console
.
log
(
'SenchaPreferenceStore.constructor: Finished'
);
},
...
...
@@ -58,15 +58,15 @@ Ext.define('PO.store.user.SenchaPreferenceStore', {
if
(
me
.
debug
)
console
.
log
(
'SenchaPreferenceStore.load: Started'
);
var
preferenceUrl
=
"'"
+
me
.
myUrl
()
+
"'"
;
var
myUserId
=
PO
.
Utilities
.
userId
();
var
authToken
=
PO
.
Utilities
.
authToken
();
var
myUserId
=
PO
.
Utilities
.
userId
();
var
authToken
=
PO
.
Utilities
.
authToken
();
me
.
getProxy
().
extraParams
=
{
format
:
'json'
,
preference_url
:
preferenceUrl
,
preference_object_id
:
myUserId
,
user_id
:
myUserId
,
auth_token
:
authToken
preference_object_id
:
myUserId
,
user_id
:
myUserId
,
auth_token
:
authToken
};
me
.
callParent
([
options
]);
if
(
me
.
debug
)
console
.
log
(
'SenchaPreferenceStore.load: Finished'
);
...
...
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