-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into syslumenn-starfsleyfi
- Loading branch information
Showing
788 changed files
with
27,659 additions
and
5,583 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
diff --git a/packages/dd-trace/src/external-logger/src/index.js b/packages/dd-trace/src/external-logger/src/index.js | ||
index aa21b20b6e78336329f8f99214a36fde3b9c2c59..523c285768a9f34ba9bc353a5caff6962cf1ff5c 100644 | ||
--- a/packages/dd-trace/src/external-logger/src/index.js | ||
+++ b/packages/dd-trace/src/external-logger/src/index.js | ||
@@ -81,7 +81,7 @@ class ExternalLogger { | ||
let encodedLogs | ||
|
||
if (!this.queue.length) { | ||
- setImmediate(() => cb()) | ||
+ setTimeout(() => cb(), 0) | ||
return | ||
} | ||
|
||
@@ -93,7 +93,7 @@ class ExternalLogger { | ||
encodedLogs = JSON.stringify(logs) | ||
} catch (error) { | ||
tracerLogger.error(`failed to encode ${numLogs} logs`) | ||
- setImmediate(() => cb(error)) | ||
+ setTimeout(() => cb(error), 0) | ||
return | ||
} | ||
|
||
diff --git a/packages/dd-trace/src/telemetry/dependencies.js b/packages/dd-trace/src/telemetry/dependencies.js | ||
index 992dde7d2ec7b6742b55e48bb0941f88d01669bf..9a0559d576663eaff4291edf0fdda6ea51da1456 100644 | ||
--- a/packages/dd-trace/src/telemetry/dependencies.js | ||
+++ b/packages/dd-trace/src/telemetry/dependencies.js | ||
@@ -32,7 +32,7 @@ function createBatchPayload (payload) { | ||
} | ||
function waitAndSend (config, application, host) { | ||
if (!immediate) { | ||
- immediate = setImmediate(() => { | ||
+ immediate = setTimeout(() => { | ||
immediate = null | ||
if (savedDependenciesToSend.size > 0) { | ||
const dependencies = Array.from(savedDependenciesToSend.values()) | ||
@@ -69,7 +69,7 @@ function waitAndSend (config, application, host) { | ||
waitAndSend(config, application, host) | ||
} | ||
} | ||
- }) | ||
+ }, 0) | ||
immediate.unref() | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
.yarn/patches/node-request-interceptor-npm-0.5.9-77e9d9c058.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/lib/interceptors/ClientRequest/ClientRequestOverride.js b/lib/interceptors/ClientRequest/ClientRequestOverride.js | ||
index e1e005c1055587ed12d1084dab3821b93572ca3d..9b2e40afa7ba62680c48df1ad033f738d4c5d3e7 100644 | ||
--- a/lib/interceptors/ClientRequest/ClientRequestOverride.js | ||
+++ b/lib/interceptors/ClientRequest/ClientRequestOverride.js | ||
@@ -122,9 +122,9 @@ function createClientRequestOverrideClass(middleware, performOriginalRequest, or | ||
callback(); | ||
} | ||
} | ||
- setImmediate(function () { | ||
+ setTimeout(function () { | ||
_this.emit('drain'); | ||
- }); | ||
+ }, 0); | ||
return false; | ||
}; | ||
this.end = function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,7 @@ export const serviceSetup = (services: { | |
sessionsApi: ServiceBuilder<'services-sessions'> | ||
authAdminApi: ServiceBuilder<'services-auth-admin-api'> | ||
universityGatewayApi: ServiceBuilder<'services-university-gateway'> | ||
userNotificationService: ServiceBuilder<'services-user-notification'> | ||
}): ServiceBuilder<'api'> => { | ||
return service('api') | ||
.namespace('islandis') | ||
|
@@ -68,6 +69,9 @@ export const serviceSetup = (services: { | |
APPLICATION_SYSTEM_API_URL: ref( | ||
(h) => `http://${h.svc(services.appSystemApi)}`, | ||
), | ||
USER_NOTIFICATION_API_URL: ref( | ||
(h) => `http://${h.svc(services.userNotificationService)}`, | ||
), | ||
ICELANDIC_NAMES_REGISTRY_BACKEND_URL: ref( | ||
(h) => `http://${h.svc(services.icelandicNameRegistryBackend)}`, | ||
), | ||
|
@@ -121,7 +125,7 @@ export const serviceSetup = (services: { | |
staging: '[email protected]', | ||
prod: '[email protected]', | ||
}, | ||
SERVICE_USER_PROFILE_URL: ref( | ||
USER_PROFILE_CLIENT_URL: ref( | ||
(h) => `http://${h.svc(services.servicePortalApi)}`, | ||
), | ||
FILE_DOWNLOAD_BUCKET: { | ||
|
@@ -162,11 +166,6 @@ export const serviceSetup = (services: { | |
staging: 'https://identity-server.staging01.devland.is', | ||
prod: 'https://innskra.island.is', | ||
}, | ||
USER_NOTIFICATION_CLIENT_URL: { | ||
dev: 'http://user-notification-xrd.internal.dev01.devland.is', | ||
staging: 'http://user-notification-xrd.internal.staging01.devland.is', | ||
prod: 'https://user-notification-xrd.internal.island.is', | ||
}, | ||
MUNICIPALITIES_FINANCIAL_AID_BACKEND_URL: { | ||
dev: 'http://web-financial-aid-backend', | ||
staging: 'http://web-financial-aid-backend', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.