This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #790 from Netflix/ui-performance-improvements
UI Performance Improvements
- Loading branch information
1 parent
f882d25
commit b6a2fde
Showing
27 changed files
with
3,264 additions
and
3,139 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export const PERFORM_BULK_OPERATION = "PERFORM_BULK_OPERATION"; | ||
export const RECEIVE_BULK_OPERATION_RESPONSE = "RECEIVE_BULK_OPERATION_RESPONSE"; | ||
export const FAIL_BULK_OPERATION = "FAIL_BULK_OPERATION"; | ||
|
||
export function performBulkOperation(operation, workflows) { | ||
return {type: PERFORM_BULK_OPERATION, operation, workflows}; | ||
} | ||
|
||
export function receiveBulkOperationResponse(successfulResults, errorResults) { | ||
return {type: RECEIVE_BULK_OPERATION_RESPONSE, successfulResults, errorResults}; | ||
} | ||
|
||
export function failBulkOperation(error) { | ||
return {type: FAIL_BULK_OPERATION, error}; | ||
} |
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,32 @@ | ||
import http from '../core/HttpClient'; | ||
|
||
export const FETCH_WORKFLOW_METADATA = "FETCH_WORKFLOW_METADATA"; | ||
export const RECEIVE_WORKFLOW_METADATA = "RECEIVE_WORKFLOW_METADATA"; | ||
export const FAIL_WORKFLOW_METADATA = "FAIL_WORKFLOW_METADATA"; | ||
|
||
export function fetchWorkflowMetadata() { | ||
return {type: FETCH_WORKFLOW_METADATA}; | ||
} | ||
|
||
export function receiveWorkflowMetadata(workflows) { | ||
return {type: RECEIVE_WORKFLOW_METADATA, workflows}; | ||
} | ||
|
||
export function failWorkflowMetadata(error) { | ||
return function(dispatch) { | ||
dispatch({type: FAIL_WORKFLOW_METADATA, error}); | ||
dispatch({type: 'REQUEST_ERROR', e}); | ||
}; | ||
} | ||
|
||
export function getWorkflowDefs() { | ||
return function (dispatch) { | ||
dispatch(fetchWorkflowMetadata()); | ||
|
||
return http.get('/api/wfe/metadata/workflow').then(data => { | ||
dispatch(receiveWorkflowMetadata(data.result)); | ||
}).catch((e) => { | ||
dispatch(failWorkflowMetadata(e)); | ||
}); | ||
} | ||
} |
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,27 @@ | ||
export const CHANGE_SEARCH = "UPDATE_SEARCH"; | ||
export const FETCH_SEARCH_RESULTS = "FETCH_SEARCH_RESULTS"; | ||
export const RECEIVE_SEARCH_RESULTS = "RECEIVE_SEARCH_RESULTS"; | ||
export const FAIL_SEARCH_RESULTS = "FAIL_SEARCH_RESULTS"; | ||
|
||
export function changeSearch({query, entirely, types, states, cutoff, start}) { | ||
return {type: CHANGE_SEARCH, query, entirely, types, states, cutoff, start}; | ||
} | ||
|
||
export function fetchSearchResults() { | ||
return {type: FETCH_SEARCH_RESULTS}; | ||
} | ||
|
||
export function receiveSearchResults(results, totalHits) { | ||
return {type: RECEIVE_SEARCH_RESULTS, results, totalHits}; | ||
} | ||
|
||
export function failSearchResults(error) { | ||
return {type: FAIL_SEARCH_RESULTS, error}; | ||
} | ||
|
||
export function updateSearchAndFetch(props) { | ||
return dispatch => { | ||
dispatch(changeSearch(props)); | ||
dispatch(fetchSearchResults()); | ||
} | ||
} |
Oops, something went wrong.