-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Frontend] Task server frontend changes. (#3673)
[Frontend] Added a task server page, tasks table. desktop document clean up works (have to move it to celery though). Need to add a django db table to store the tasks table browser Change-Id: I661b26388ffca4c42963b3ffcdf20f13c9914fa6 (cherry picked from commit 9a17b99) [Frontend] 1. Added a django db table. 2. React fetches the results from this db table. 3. Added migrations scripts for the newly created task-models.py - django table Change-Id: I7ae105083c0a5bac884c59b34cd801f5dee23f83 (cherry picked from commit 2287ffe) [Frontend] Adding styling changes for task browser tables and adding label/icons Change-Id: I3ee803fdaf60f808e5eb62151f15a94cc678561f (cherry picked from commit 4d089f1) [Frontend] Incomplete changes - greyout/reload file upload page, desktop_document_cleanup using redis Change-Id: Ib53a9b81000a6c488b079bbcce617f8986ff3880 (cherry picked from commit 9fbdf55) [Frontend] Fixing the upload popup, the stay until all uploads are complete. Fixing document clean up install dir and duration calculation Change-Id: Ibf28fc12a05d4160a83ae57f727735daa3d8d6e7 (cherry picked from commit 403e990) [Frontend] schedule /tmp clean_up job in task_server page Change-Id: Id9d4ec893674c5df350bce3dbb8d4d21c254d1ce (cherry picked from commit 32332da) [Frontend] schedule /tmp clean_up job in task_server page Change-Id: I2c039e46c1b81a9fc2df55301b9d3378338fbc16 (cherry picked from commit 366bcaa) [Frontend] Changing progress Filter buttons (success, failure, running) to checkboxes Change-Id: Iddbf0a687623e0bd598d5acd85201ace97510b36 (cherry picked from commit 006e14b) [Frontend] Adding schedule upload support. Cleaned up default fallbackcomponent. Removed the csrf exempt annotations Change-Id: I03b5ce1d0aba14fad50f0b41d14d71d1a4b8cf84 (cherry picked from commit 5d562a7) [Frontend] /tmp cleaner runs every 1000 seconds using celery-beat scheduler. Files written onto /tmp folder in the last 15 minutes wont be deleted. This time interval ensures that when a user/service is writing onto /tmp, the files are not deleted. Change-Id: Ic6b31173cc9a778da0c055a18435bdafc7384141 (cherry picked from commit cb0d1a0) [Frontend] Adding support for killing celery tasks Change-Id: Iba42d5f1d3c36dfddeeb8add2dcfa39b158b50d2 (cherry picked from commit 927d959) [Frontend] Restricting uploads based on free space available in /tmp and MAX_FILE_SIZE_UPLOAD_LIMIT Change-Id: I42d6d7a379dbd5b655be6b0e01c859d0b51294b3 (cherry picked from commit 8f4819d) [Frontend] Improving schedule task popup and adding default values for tasks Change-Id: If2e5ac784d338f479715741fc2ea74d97ad48b53 (cherry picked from commit 3f63e1e) Improving styling using Antd and CUIX, pollForRealProgress. Cleaning up comments. Change-Id: Ifdd00a48d366a0b845b0682f6d20df8f08f8e91f (cherry picked from commit f7af6a6) Improving styling using Antd and CUIX, pollForRealProgress. Cleaning up comments. Change-Id: Ifdd00a48d366a0b845b0682f6d20df8f08f8e91f (cherry picked from commit d01c62e) Improving styling using Antd and CUIX, pollForRealProgress. Cleaning up comments. Change-Id: Ifdd00a48d366a0b845b0682f6d20df8f08f8e91f (cherry picked from commit ccf28ba) Improving styling using Antd and CUIX, pollForRealProgress. Cleaning up comments. Change-Id: Ifdd00a48d366a0b845b0682f6d20df8f08f8e91f (cherry picked from commit e88f14c) Only schedule upload button is enabled when task server is configured. Added tool tip for schedule upload button. Change-Id: I4fb0dbd5626cd717ded3a1a3a1c40f0232b73067 improving log popup modal and url routing Change-Id: Idb7637de564392142f6eb39bd58c5a8ee7fbe5dc Co-authored-by: Athithyaa Selvam <[email protected]>
- Loading branch information
1 parent
03fcee0
commit 1cd19ea
Showing
12 changed files
with
919 additions
and
10 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ const FallbackComponent = () => { | |
); | ||
}; | ||
|
||
export default FallbackComponent; | ||
export default FallbackComponent; |
108 changes: 108 additions & 0 deletions
108
desktop/core/src/desktop/js/reactComponents/TaskBrowser/TaskBrowser.scss
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,108 @@ | ||
@use 'variables' as vars; | ||
@import '@cloudera/cuix-core/variables.scss'; | ||
|
||
.log-content-scrollable { | ||
max-height: 600px; | ||
overflow-y: auto; | ||
margin-right: -16px; | ||
padding-right: 16px; | ||
} | ||
|
||
.customCursorClass { | ||
cursor: pointer; | ||
} | ||
|
||
.flex-container-style { | ||
display: flex; | ||
align-items: center; | ||
gap: 10px; | ||
} | ||
|
||
.task-selection { | ||
margin-bottom: 2rem; | ||
} | ||
|
||
.task-dropdown { | ||
width: 100%; | ||
padding: 0.5rem; | ||
font-size: 1rem; | ||
} | ||
|
||
.parameter-inputs { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
margin-top: 2rem; | ||
} | ||
|
||
.parameter-row { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.parameter-label { | ||
flex: 1; | ||
width: 100px; | ||
font-weight: bold; | ||
margin-right: 1rem; | ||
} | ||
|
||
.parameter-input { | ||
padding: 0.5rem; | ||
flex: 1; | ||
font-size: 1rem; | ||
width: 100%; | ||
} | ||
|
||
.vertical-spacer { | ||
height: 2rem; | ||
} | ||
|
||
.row-success { | ||
border-left: 4px solid $fluidx-green-500; | ||
} | ||
|
||
.row-failure { | ||
border-left: 4px solid $fluidx-red-500; | ||
} | ||
|
||
.row-running { | ||
border-left: 4px solid $fluidx-amber-500; | ||
} | ||
|
||
.ant-btn-primary { | ||
background-color: $fluidx-blue-500; | ||
border-color: $fluidx-blue-600; | ||
} | ||
|
||
.ant-btn-danger { | ||
background-color: $fluidx-red-500; | ||
border-color: $fluidx-red-600; | ||
} | ||
|
||
.ant-tag-success { | ||
background-color: $fluidx-green-500; | ||
color: $fluidx-gray-900; | ||
} | ||
|
||
.ant-tag-error { | ||
background-color: $fluidx-red-500; | ||
color: $fluidx-gray-900; | ||
} | ||
|
||
.ant-tag-warning { | ||
background-color: $fluidx-amber-500; | ||
color: $fluidx-gray-900; | ||
} | ||
|
||
.success-text { | ||
color: $fluidx-green-500; | ||
} | ||
|
||
.running-text { | ||
color: $fluidx-amber-500; | ||
} | ||
|
||
.failed-text { | ||
color: $fluidx-red-500; | ||
} |
Oops, something went wrong.