-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DM-14867, IRSA-2466: fixed bugs in tickets
- IRSA-2466: Only HiPS or AllSky FITS will recenter when table tabs switch - DM-14867: Toolbar button and then "Select new Image" buttons is active when image plot fails in API - API UI Test framework modified to allows for resizing the IFrames
- Loading branch information
Showing
16 changed files
with
156 additions
and
29 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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,58 @@ | ||
import {get} from 'lodash'; | ||
import { TABLE_SEARCH } from '../../tables/TablesCntlr'; | ||
import {dispatchAddActionWatcher} from '../../core/MasterSaga'; | ||
import {onTableLoaded} from '../../tables/TableUtil'; | ||
|
||
/** | ||
* @global | ||
* @public | ||
* @typedef {Object} TableWatcherDef | ||
* | ||
* @summary Define a table watch definition | ||
* | ||
* @param {Function} startWatcher(table) | ||
* @param {Object} watcherData | ||
* @param {Function} testTable - testTable(table) return 'watch' 'exclusiveWatch' or false | ||
* | ||
* | ||
* | ||
*/ | ||
|
||
/** | ||
* Start the master table Watcher | ||
* @param {Array.<TableWatcherDef>} tableWatcherDefList | ||
*/ | ||
export function startMasterTableWatcher(tableWatcherDefList) { | ||
|
||
|
||
const actions = [TABLE_SEARCH]; | ||
|
||
dispatchAddActionWatcher({ | ||
actions, | ||
id: 'masterTableWatcher', | ||
callback: masterTableWatcher, | ||
params: {tableWatcherDefList}}); | ||
|
||
} | ||
|
||
function masterTableWatcher(action, cancelSelf, params) { | ||
|
||
const {tableWatcherDefList}= params; | ||
const tbl_id = get(action.payload, 'request.tbl_id'); | ||
if (!tbl_id) return; | ||
|
||
switch (action.type) { | ||
case TABLE_SEARCH: | ||
onTableLoaded(tbl_id).then( (table) => | ||
!table.error && evaluateTableAndStartWatchers(table, tableWatcherDefList)); | ||
break; | ||
|
||
} | ||
|
||
} | ||
|
||
|
||
function evaluateTableAndStartWatchers(table, tableWatcherDefList) { | ||
|
||
console.log(`new loaded table: ${table.tbl_id}`); | ||
} |
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