Fix race condition in service manifest fetching (#2872)
* Fix race condition in service manifest fetching. Fixes #2803 * Set own recon endpoint for Wikidata extension
This commit is contained in:
parent
92ad819e34
commit
68404abe2a
@ -127,10 +127,7 @@ SchemaAlignmentDialog.setUpTabs = function() {
|
||||
|
||||
// Init the column area
|
||||
this.updateColumns();
|
||||
|
||||
var url = ReconciliationManager.ensureDefaultServicePresent();
|
||||
SchemaAlignmentDialog._reconService = ReconciliationManager.getServiceFromUrl(url);
|
||||
|
||||
|
||||
/**
|
||||
* Init the issues tab
|
||||
*/
|
||||
@ -148,10 +145,17 @@ SchemaAlignmentDialog.setUpTabs = function() {
|
||||
|
||||
this._previewPanes = $(".schema-alignment-dialog-preview");
|
||||
|
||||
// Load the existing schema
|
||||
this._reset(theProject.overlayModels.wikibaseSchema);
|
||||
// Perform initial preview
|
||||
this.preview();
|
||||
var lang = $.i18n('core-recon/wd-recon-lang');
|
||||
var url = "https://wdreconcile.toolforge.org/"+lang+"/api";
|
||||
ReconciliationManager.getOrRegisterServiceFromUrl(url, function(service) {
|
||||
|
||||
// Load the existing schema
|
||||
SchemaAlignmentDialog._reconService = service;
|
||||
SchemaAlignmentDialog._reset(theProject.overlayModels.wikibaseSchema);
|
||||
|
||||
// Perform initial preview
|
||||
SchemaAlignmentDialog.preview();
|
||||
}, false);
|
||||
}
|
||||
|
||||
SchemaAlignmentDialog.updateColumns = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user