You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sending pending items, ones that depend on ids of other items should be postponed until what they refer to got their ids. I managed to get the batches of model names this way:
all_ready = [];
fresh = [];
do {
new_ready = Object.values(app.config.pages).filter(function(page) {
return page['list'] && !page.form.some(function(field) {
return field['wq:ForeignKey'] && all_ready.indexOf(field['wq:ForeignKey']) == -1;
});
}).map(function(page) { return page['name']; });
fresh = new_ready.filter(model => all_ready.indexOf(model) == -1);
console.log('time to sync items from these models:', fresh);
all_ready = new_ready;
} while (fresh.length);
After every item is synced, fields of relating items should be updated with a a persistent id obtained from the server.
The text was updated successfully, but these errors were encountered:
When sending pending items, ones that depend on
id
s of other items should be postponed until what they refer to got theirid
s. I managed to get the batches of model names this way:After every item is synced, fields of relating items should be updated with a a persistent
id
obtained from the server.The text was updated successfully, but these errors were encountered: