Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/serverless/utils.js')
-rw-r--r--app/assets/javascripts/serverless/utils.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/app/assets/javascripts/serverless/utils.js b/app/assets/javascripts/serverless/utils.js
deleted file mode 100644
index e218a9aa3fd..00000000000
--- a/app/assets/javascripts/serverless/utils.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// Validate that the object coming in has valid query details and results
-export const validateGraphData = (data) =>
- data.queries &&
- Array.isArray(data.queries) &&
- data.queries.filter((query) => {
- if (Array.isArray(query.result)) {
- return query.result.filter((res) => Array.isArray(res.values)).length === query.result.length;
- }
-
- return false;
- }).length === data.queries.length;
-
-export const translate = (functions) =>
- functions.reduce(
- (acc, func) =>
- Object.assign(acc, {
- [func.environment_scope]: (acc[func.environment_scope] || []).concat([func]),
- }),
- {},
- );