Skip to content

Commit

Permalink
chore: Upgrade dependencies version
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanmaity1234 committed Sep 17, 2024
1 parent 48f8d22 commit 676e681
Show file tree
Hide file tree
Showing 6 changed files with 607 additions and 591 deletions.
2 changes: 1 addition & 1 deletion .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ fileignoreconfig:
- filename: frontend/mock-data/data.json
checksum: 8db91df1d7736cce489b5cfd97e4761f7caf658ebb6d82495d43074bad2bfecc
- filename: frontend/package-lock.json
checksum: 967b3ab055cdd7caba5e33a608250d378bec2c5f6b4a373eb04ca5a56d9a5691
checksum: fae7009be53035f4d62632cf0c8d5beb97257fe49f8d5dd6bb5faa22150f7b14
- filename: frontend/src/components/Dashboard.vue
checksum: e9843ceaf9863419ea77543eaa5f208644bd1631d6877f6595ff01db9da28fbc
- filename: frontend/src/components/GridCell.vue
Expand Down
2 changes: 1 addition & 1 deletion backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spotless {

ext {
javaUuidGeneratorVersion = "5.1.0"
logstashVersion = "7.4"
logstashVersion = "8.0"
caffeineVersion = "3.1.8"
mockServerVersion = "5.15.0"
archUnitVersion = "1.3.0"
Expand Down
16 changes: 2 additions & 14 deletions frontend/__tests__/components/WorkflowDashboard.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ describe('<WorkflowDashboard />', () => {
beforeEach(() => {
getVersion.mockReturnValueOnce('3.3.0');
vi.spyOn(preferences, 'enableBuildMonitorView', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'showBuildsDueToTriggeredEvents', 'get').mockReturnValueOnce([]);
});

afterEach(() => {
Expand All @@ -78,7 +79,6 @@ describe('<WorkflowDashboard />', () => {
vi.spyOn(preferences, 'showHealthyBuilds', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'enableMaxIdleTimeOptimization', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'maxIdleTime', 'get').mockReturnValueOnce(10);
vi.spyOn(preferences, 'showBuildsDueToTriggeredEvents', 'get').mockReturnValueOnce([]);

const { promise, resolve } = promiseWithResolvers();

Expand Down Expand Up @@ -115,7 +115,6 @@ describe('<WorkflowDashboard />', () => {
vi.spyOn(preferences, 'showHealthyBuilds', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'enableMaxIdleTimeOptimization', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'maxIdleTime', 'get').mockReturnValueOnce(10);
vi.spyOn(preferences, 'showBuildsDueToTriggeredEvents', 'get').mockReturnValueOnce([]);
vi.spyOn(preferences, 'hiddenElements', 'get').mockReturnValueOnce({});
vi.spyOn(preferences, 'enableBuildMonitorView', 'get').mockReturnValueOnce(buildMonitorViewEnabled);

Expand All @@ -140,7 +139,6 @@ describe('<WorkflowDashboard />', () => {
vi.spyOn(preferences, 'showHealthyBuilds', 'get').mockReturnValueOnce(false);
vi.spyOn(preferences, 'enableMaxIdleTimeOptimization', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'maxIdleTime', 'get').mockReturnValueOnce(10);
vi.spyOn(preferences, 'showBuildsDueToTriggeredEvents', 'get').mockReturnValueOnce([]);
vi.spyOn(preferences, 'hiddenElements', 'get').mockReturnValueOnce({});

fetchCctrayJson.mockResolvedValueOnce([jobDetails1, jobDetails2]);
Expand All @@ -160,7 +158,6 @@ describe('<WorkflowDashboard />', () => {
vi.spyOn(preferences, 'showHealthyBuilds', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'enableMaxIdleTimeOptimization', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'maxIdleTime', 'get').mockReturnValueOnce(10);
vi.spyOn(preferences, 'showBuildsDueToTriggeredEvents', 'get').mockReturnValueOnce([]);
vi.spyOn(preferences, 'hiddenElements', 'get').mockReturnValueOnce({});

fetchCctrayJson.mockResolvedValueOnce([jobDetails1, jobDetails2]);
Expand All @@ -183,7 +180,6 @@ describe('<WorkflowDashboard />', () => {
vi.spyOn(preferences, 'showHealthyBuilds', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'enableMaxIdleTimeOptimization', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'maxIdleTime', 'get').mockReturnValueOnce(10);
vi.spyOn(preferences, 'showBuildsDueToTriggeredEvents', 'get').mockReturnValueOnce([]);
vi.spyOn(preferences, 'hiddenElements', 'get').mockReturnValueOnce({ 'job(s)': [jobDetails1.name] });

fetchCctrayJson.mockResolvedValueOnce([jobDetails1, jobDetails2]);
Expand All @@ -201,7 +197,6 @@ describe('<WorkflowDashboard />', () => {
vi.spyOn(preferences, 'showHealthyBuilds', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'enableMaxIdleTimeOptimization', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'maxIdleTime', 'get').mockReturnValueOnce(10);
vi.spyOn(preferences, 'showBuildsDueToTriggeredEvents', 'get').mockReturnValueOnce([]);
vi.spyOn(preferences, 'hiddenElements', 'get').mockReturnValueOnce({ 'job(s)': [jobDetails1.name] });

fetchCctrayJson.mockResolvedValueOnce([jobDetails1, jobDetails2]);
Expand All @@ -222,7 +217,6 @@ describe('<WorkflowDashboard />', () => {
vi.spyOn(preferences, 'showHealthyBuilds', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'enableMaxIdleTimeOptimization', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'maxIdleTime', 'get').mockReturnValueOnce(10);
vi.spyOn(preferences, 'showBuildsDueToTriggeredEvents', 'get').mockReturnValueOnce([]);
vi.spyOn(preferences, 'hiddenElements', 'get').mockReturnValueOnce({ 'job(s)': [jobDetails1.name] });

fetchCctrayJson.mockResolvedValueOnce([jobDetails1, jobDetails2]);
Expand All @@ -244,7 +238,6 @@ describe('<WorkflowDashboard />', () => {
vi.spyOn(preferences, 'showHealthyBuilds', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'enableMaxIdleTimeOptimization', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'maxIdleTime', 'get').mockReturnValueOnce(10);
vi.spyOn(preferences, 'showBuildsDueToTriggeredEvents', 'get').mockReturnValueOnce([]);
vi.spyOn(preferences, 'hiddenElements', 'get')
.mockReturnValueOnce({ 'job(s)': [jobDetails1.name, jobDetails2.name] });

Expand Down Expand Up @@ -326,7 +319,6 @@ describe('<WorkflowDashboard />', () => {
vi.spyOn(preferences, 'showHealthyBuilds', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'enableMaxIdleTimeOptimization', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'maxIdleTime', 'get').mockReturnValueOnce(10);
vi.spyOn(preferences, 'showBuildsDueToTriggeredEvents', 'get').mockReturnValueOnce([]);
vi.spyOn(preferences, 'hiddenElements', 'get').mockReturnValueOnce({ });

fetchCctrayJson.mockResolvedValueOnce([]);
Expand All @@ -343,7 +335,6 @@ describe('<WorkflowDashboard />', () => {
vi.spyOn(preferences, 'showHealthyBuilds', 'get').mockReturnValueOnce(false);
vi.spyOn(preferences, 'enableMaxIdleTimeOptimization', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'maxIdleTime', 'get').mockReturnValueOnce(10);
vi.spyOn(preferences, 'showBuildsDueToTriggeredEvents', 'get').mockReturnValueOnce([]);
vi.spyOn(preferences, 'hiddenElements', 'get').mockReturnValueOnce({ });

fetchCctrayJson.mockResolvedValueOnce([{ ...jobDetails1, lastBuildStatus: 'Success' }, jobDetails2]);
Expand Down Expand Up @@ -375,7 +366,6 @@ describe('<WorkflowDashboard />', () => {
vi.spyOn(preferences, 'showHealthyBuilds', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'enableMaxIdleTimeOptimization', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'maxIdleTime', 'get').mockReturnValueOnce(10);
vi.spyOn(preferences, 'showBuildsDueToTriggeredEvents', 'get').mockReturnValueOnce([]);
vi.spyOn(preferences, 'hiddenElements', 'get').mockReturnValueOnce({ 'job(s)': [jobDetails1.name] });

fetchCctrayJson.mockResolvedValueOnce([jobDetails1]);
Expand All @@ -391,6 +381,7 @@ describe('<WorkflowDashboard />', () => {

describe('Timers', () => {
beforeEach(() => {
vi.spyOn(preferences, 'showBuildsDueToTriggeredEvents', 'get').mockReturnValueOnce([]);
vi.useFakeTimers();
});

Expand All @@ -402,7 +393,6 @@ describe('<WorkflowDashboard />', () => {
vi.spyOn(preferences, 'showHealthyBuilds', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'enableMaxIdleTimeOptimization', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'maxIdleTime', 'get').mockReturnValueOnce(10);
vi.spyOn(preferences, 'showBuildsDueToTriggeredEvents', 'get').mockReturnValueOnce([]);
vi.spyOn(preferences, 'hiddenElements', 'get').mockReturnValueOnce({ });

fetchCctrayJson.mockResolvedValue([jobDetails1]);
Expand All @@ -419,7 +409,6 @@ describe('<WorkflowDashboard />', () => {
it('should fetch data after every certain interval indefinitely', async () => {
vi.spyOn(preferences, 'showHealthyBuilds', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'enableMaxIdleTimeOptimization', 'get').mockReturnValueOnce(false);
vi.spyOn(preferences, 'showBuildsDueToTriggeredEvents', 'get').mockReturnValueOnce([]);
vi.spyOn(preferences, 'hiddenElements', 'get').mockReturnValueOnce({ });
vi.spyOn(preferences, 'maxIdleTime', 'get').mockReturnValueOnce(0);

Expand All @@ -439,7 +428,6 @@ describe('<WorkflowDashboard />', () => {
vi.spyOn(preferences, 'showHealthyBuilds', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'enableMaxIdleTimeOptimization', 'get').mockReturnValueOnce(true);
vi.spyOn(preferences, 'maxIdleTime', 'get').mockReturnValueOnce(10);
vi.spyOn(preferences, 'showBuildsDueToTriggeredEvents', 'get').mockReturnValueOnce([]);
vi.spyOn(preferences, 'hiddenElements', 'get').mockReturnValueOnce({ });

fetchCctrayJson.mockResolvedValue([jobDetails1]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`<DashboardHeader /> > should render dashboard header for Code Standard Violations 1`] = `
<div class="v-application v-theme--light v-layout v-layout--full-height v-locale--is-ltr">
<div class="v-application__wrap">
<header class="v-toolbar v-toolbar--density-default elevation-5 v-theme--light v-locale--is-ltr v-app-bar" style="top: 0px; z-index: 1004; transform: translateY(0px); position: fixed; left: 0px; width: calc(100% - 0px - 0px); transition: none;">
<header class="v-toolbar v-toolbar--density-default elevation-5 v-theme--light v-locale--is-ltr v-app-bar" style="top: 0px; z-index: 1004; transform: translateY(0px); position: fixed; transition: none; left: 0px; width: calc(100% - 0px - 0px);">
<!---->
<div class="v-toolbar__content" style="height: 64px;">
<!---->
Expand Down Expand Up @@ -40,7 +40,7 @@ exports[`<DashboardHeader /> > should render dashboard header for Code Standard
exports[`<DashboardHeader /> > should render dashboard header for Exposed Secrets 1`] = `
<div class="v-application v-theme--light v-layout v-layout--full-height v-locale--is-ltr">
<div class="v-application__wrap">
<header class="v-toolbar v-toolbar--density-default elevation-5 v-theme--light v-locale--is-ltr v-app-bar" style="top: 0px; z-index: 1004; transform: translateY(0px); position: fixed; left: 0px; width: calc(100% - 0px - 0px); transition: none;">
<header class="v-toolbar v-toolbar--density-default elevation-5 v-theme--light v-locale--is-ltr v-app-bar" style="top: 0px; z-index: 1004; transform: translateY(0px); position: fixed; transition: none; left: 0px; width: calc(100% - 0px - 0px);">
<!---->
<div class="v-toolbar__content" style="height: 64px;">
<!---->
Expand Down Expand Up @@ -77,7 +77,7 @@ exports[`<DashboardHeader /> > should render dashboard header for Exposed Secret
exports[`<DashboardHeader /> > should render dashboard header for Workflow Jobs 1`] = `
<div class="v-application v-theme--light v-layout v-layout--full-height v-locale--is-ltr">
<div class="v-application__wrap">
<header class="v-toolbar v-toolbar--density-default elevation-5 v-theme--light v-locale--is-ltr v-app-bar" style="top: 0px; z-index: 1004; transform: translateY(0px); position: fixed; left: 0px; width: calc(100% - 0px - 0px); transition: none;">
<header class="v-toolbar v-toolbar--density-default elevation-5 v-theme--light v-locale--is-ltr v-app-bar" style="top: 0px; z-index: 1004; transform: translateY(0px); position: fixed; transition: none; left: 0px; width: calc(100% - 0px - 0px);">
<!---->
<div class="v-toolbar__content" style="height: 64px;">
<!---->
Expand Down
Loading

0 comments on commit 676e681

Please sign in to comment.