Skip to content

Commit 59cf887

Browse files
authored
Merge branch 'master' into pr-osparc-fix-orphan-task-removal
2 parents 8b151c1 + bd72ef7 commit 59cf887

40 files changed

+348
-225
lines changed

services/autoscaling/src/simcore_service_autoscaling/modules/cluster_scaling/_warm_buffer_machines_pool_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ async def _add_remove_buffer_instances(
314314
subnet_id=app_settings.AUTOSCALING_EC2_INSTANCES.EC2_INSTANCES_SUBNET_ID,
315315
iam_instance_profile=app_settings.AUTOSCALING_EC2_INSTANCES.EC2_INSTANCES_ATTACHED_IAM_PROFILE,
316316
),
317-
min_number_of_instances=num_to_start,
317+
min_number_of_instances=1, # NOTE: we want at least 1
318318
number_of_instances=num_to_start,
319319
max_total_number_of_instances=app_settings.AUTOSCALING_EC2_INSTANCES.EC2_INSTANCES_MAX_INSTANCES,
320320
)

services/autoscaling/tests/unit/test_modules_cluster_scaling_warm_buffer_machine_core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ async def _assert_wait_for_ssm_command_to_finish() -> None:
268268

269269

270270
async def test_monitor_buffer_machines(
271+
patch_ec2_client_launch_instances_min_number_of_instances: None,
271272
minimal_configuration: None,
272273
ec2_client: EC2Client,
273274
buffer_count: int,
@@ -374,6 +375,7 @@ async def test_monitor_buffer_machines_terminates_supernumerary_instances(
374375

375376

376377
async def test_monitor_buffer_machines_terminates_instances_with_incorrect_pre_pulled_images(
378+
patch_ec2_client_launch_instances_min_number_of_instances: None,
377379
minimal_configuration: None,
378380
ec2_client: EC2Client,
379381
buffer_count: int,
@@ -457,6 +459,7 @@ def unneeded_instance_type(
457459
],
458460
)
459461
async def test_monitor_buffer_machines_terminates_unneeded_pool(
462+
patch_ec2_client_launch_instances_min_number_of_instances: None,
460463
minimal_configuration: None,
461464
ec2_client: EC2Client,
462465
buffer_count: int,

services/static-webserver/client/source/class/osparc/About.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ qx.Class.define("osparc.About", {
6363
wrap: true
6464
});
6565
this.add(poweredByLabel);
66-
const displayName = osparc.store.StaticInfo.getInstance().getDisplayName();
66+
const displayName = osparc.store.StaticInfo.getDisplayName();
6767
const poweredText = ` is powered by the <a href='https://github.com/ITISFoundation/osparc-simcore' style='color: ${color}' target='_blank'>${osparc.About.OSPARC_OFFICIAL}</a> platform.`;
6868
poweredByLabel.setValue(displayName + poweredText);
6969

services/static-webserver/client/source/class/osparc/Application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ qx.Class.define("osparc.Application", {
377377
// first, pop up new release window
378378
this.__checkNewRelease();
379379

380-
const platformName = osparc.store.StaticInfo.getInstance().getPlatformName();
380+
const platformName = osparc.store.StaticInfo.getPlatformName();
381381
if (platformName !== "master") {
382382
// then, pop up cookies accepted window. It will go on top.
383383
this.__checkCookiesAccepted();

services/static-webserver/client/source/class/osparc/CookieExpirationTracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ qx.Class.define("osparc.CookieExpirationTracker", {
3939
__messageInterval: null,
4040

4141
startTracker: function() {
42-
const cookieMaxAge = osparc.store.StaticInfo.getInstance().getCookieMaxAge(); // seconds
42+
const cookieMaxAge = osparc.store.StaticInfo.getCookieMaxAge(); // seconds
4343
if (cookieMaxAge) {
4444
const nowDate = new Date();
4545
const expirationDateMilliseconds = nowDate.getTime() + cookieMaxAge*1000;

services/static-webserver/client/source/class/osparc/ErrorPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ qx.Class.define("osparc.ErrorPage", {
211211
},
212212

213213
__supportEmail: function() {
214-
const supportEmail = osparc.store.VendorInfo.getInstance().getSupportEmail();
214+
const supportEmail = osparc.store.VendorInfo.getSupportEmail();
215215
const giveEmailFeedbackWindow = new osparc.ui.window.Dialog("Support", null, qx.locale.Manager.tr("Please send us an email to:"));
216216
const mailto = osparc.store.Support.getMailToLabel(supportEmail, "Access error");
217217
mailto.setTextAlign("center");

services/static-webserver/client/source/class/osparc/auth/LoginWithDecorators.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ qx.Class.define("osparc.auth.LoginWithDecorators", {
332332
const organizationLink = new osparc.ui.basic.LinkLabel().set({
333333
textColor: "text-darker"
334334
});
335-
const vendor = osparc.store.VendorInfo.getInstance().getVendor();
335+
const vendor = osparc.store.VendorInfo.getVendor();
336336
if (vendor && "url" in vendor && "copyright" in vendor) {
337337
organizationLink.set({
338338
value: vendor.copyright,

services/static-webserver/client/source/class/osparc/auth/Manager.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,28 @@ qx.Class.define("osparc.auth.Manager", {
116116
return osparc.data.Resources.fetch("auth", "resendCode", params);
117117
},
118118

119+
updatePhoneNumber: function(newPhoneNumber) {
120+
const params = {
121+
data: {
122+
phone: newPhoneNumber
123+
}
124+
};
125+
return osparc.data.Resources.fetch("profile", "phoneRegister", params);
126+
},
127+
128+
validateCodeUpdatePhoneNumber: function(code, loginCbk, failCbk, context) {
129+
const params = {
130+
data: {
131+
code
132+
}
133+
};
134+
osparc.data.Resources.fetch("profile", "phoneConfirm", params)
135+
.then(data => {
136+
loginCbk.call(context, data);
137+
})
138+
.catch(err => failCbk.call(context, err.message));
139+
},
140+
119141
isLoggedIn: function() {
120142
return osparc.auth.Data.getInstance().isLoggedIn();
121143
},

services/static-webserver/client/source/class/osparc/auth/ui/RequestAccount.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ qx.Class.define("osparc.auth.ui.RequestAccount", {
127127
required: true
128128
});
129129
doubleSpaced.push(country);
130-
const countries = osparc.store.StaticInfo.getInstance().getCountries();
130+
const countries = osparc.store.StaticInfo.getCountries();
131131
countries.forEach(c => {
132132
const cItem = new qx.ui.form.ListItem(c.name, null, c.alpha2).set({
133133
rich: true

0 commit comments

Comments
 (0)