From 50d598359aebc3c8f82a4f640c5a5aa40ee60e41 Mon Sep 17 00:00:00 2001 From: Jade Carino Date: Mon, 22 Dec 2025 13:45:45 +0000 Subject: [PATCH] fix: Add the user parameter into the getRasSearchRuns operation to fix compilation errors Signed-off-by: Jade Carino --- galasa-ui/package-lock.json | 15 --------------- .../functions/fetchAllTestRunsByPaging.test.tsx | 1 + galasa-ui/src/utils/testRuns.ts | 4 ++++ 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/galasa-ui/package-lock.json b/galasa-ui/package-lock.json index 10d019b9..338a4a8c 100644 --- a/galasa-ui/package-lock.json +++ b/galasa-ui/package-lock.json @@ -106,7 +106,6 @@ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.2.tgz", "integrity": "sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA==", "dev": true, - "peer": true, "dependencies": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.24.7", @@ -750,7 +749,6 @@ "resolved": "https://registry.npmjs.org/@dnd-kit/core/-/core-6.3.1.tgz", "integrity": "sha512-xkGBRQQab4RLwgXxoqETICr6S5JlogafbhNsidmrkVv2YRs5MLwpjoF2qpiGjQt8S9AoxtIV603s0GIUpY5eYQ==", "license": "MIT", - "peer": true, "dependencies": { "@dnd-kit/accessibility": "^3.1.1", "@dnd-kit/utilities": "^3.2.2", @@ -2715,7 +2713,6 @@ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.23.tgz", "integrity": "sha512-/LDXMQh55EzZQ0uVAZmKKhfENivEvWz6E+EYzh+/MCjMhNsotd+ZHhBGIjFDTi6+fz0OhQQQLbTgdQIxxCsC0w==", "license": "MIT", - "peer": true, "dependencies": { "@types/prop-types": "*", "csstype": "^3.0.2" @@ -2937,7 +2934,6 @@ "version": "8.10.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -3456,7 +3452,6 @@ "url": "https://github.com/sponsors/ai" } ], - "peer": true, "dependencies": { "caniuse-lite": "^1.0.30001663", "electron-to-chromium": "^1.5.28", @@ -4246,7 +4241,6 @@ "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz", "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==", "license": "ISC", - "peer": true, "engines": { "node": ">=12" } @@ -5011,7 +5005,6 @@ "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", "license": "MIT", - "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", @@ -5093,7 +5086,6 @@ "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", "dev": true, "license": "MIT", - "peer": true, "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -5204,7 +5196,6 @@ "version": "2.29.0", "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.0.tgz", "integrity": "sha512-QPOO5NO6Odv5lpoTkddtutccQjysJuFxoPS7fAHO+9m9udNHvTCPSAMW9zGAYj8lAIdr40I8yPCdUYrncXtrwg==", - "peer": true, "dependencies": { "array-includes": "^3.1.7", "array.prototype.findlastindex": "^1.2.3", @@ -8325,7 +8316,6 @@ "resolved": "https://registry.npmjs.org/next/-/next-14.2.35.tgz", "integrity": "sha512-KhYd2Hjt/O1/1aZVX3dCwGXM1QmOV4eNM2UTacK5gipDdPN/oHHK/4oVGy7X8GMfPMsUTUEmGlsy0EY1YGAkig==", "license": "MIT", - "peer": true, "dependencies": { "@next/env": "14.2.35", "@swc/helpers": "0.5.5", @@ -8910,7 +8900,6 @@ "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", "dev": true, "license": "MIT", - "peer": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -9068,7 +9057,6 @@ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", "license": "MIT", - "peer": true, "dependencies": { "loose-envify": "^1.1.0" }, @@ -9081,7 +9069,6 @@ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", "license": "MIT", - "peer": true, "dependencies": { "loose-envify": "^1.1.0", "scheduler": "^0.23.2" @@ -9374,7 +9361,6 @@ "version": "1.63.6", "resolved": "https://registry.npmjs.org/sass/-/sass-1.63.6.tgz", "integrity": "sha512-MJuxGMHzaOW7ipp+1KdELtqKbfAWbH7OLIdoSMnVe3EXPMTmxTmlaZDCTsgIpPCs3w99lLo9/zDKkOrJuT5byw==", - "peer": true, "dependencies": { "chokidar": ">=3.0.0 <4.0.0", "immutable": "^4.0.0", @@ -10109,7 +10095,6 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/galasa-ui/src/tests/functions/fetchAllTestRunsByPaging.test.tsx b/galasa-ui/src/tests/functions/fetchAllTestRunsByPaging.test.tsx index d9c87d41..e983d3c8 100644 --- a/galasa-ui/src/tests/functions/fetchAllTestRunsByPaging.test.tsx +++ b/galasa-ui/src/tests/functions/fetchAllTestRunsByPaging.test.tsx @@ -80,6 +80,7 @@ describe('fetchAllTestRunsByPaging Function', () => { undefined, undefined, undefined, + undefined, new Date('2023-10-26T00:00:00.000Z'), new Date('2023-10-27T00:00:00.000Z'), undefined, diff --git a/galasa-ui/src/utils/testRuns.ts b/galasa-ui/src/utils/testRuns.ts index 7076d8fe..4170055b 100644 --- a/galasa-ui/src/utils/testRuns.ts +++ b/galasa-ui/src/utils/testRuns.ts @@ -31,6 +31,7 @@ interface fetchAllTestRunsByPagingParams { toDate: Date; runName?: string; requestor?: string; + user?: string; group?: string; submissionId?: string; bundle?: string; @@ -56,6 +57,7 @@ const getRasApiClient = () => { * @param {Date} toDate - The end date for fetching runs. * @param {string} [runName] - The name of the test run to filter by (optional). * @param {string} [requestor] - The requestor to filter by (optional). + * @param {string} [user] - The user to filter by (optional). * @param {string} [group] - The group to filter by (optional). * @param {string} [submissionId] - The submission ID to filter by (optional). * @param {string} [bundle] - The bundle to filter by (optional). @@ -69,6 +71,7 @@ export const fetchAllTestRunsByPaging = async ({ toDate, runName, requestor, + user, group, submissionId, bundle, @@ -96,6 +99,7 @@ export const fetchAllTestRunsByPaging = async ({ status, bundle, requestor, + user, fromDate, toDate, testName,