-
Notifications
You must be signed in to change notification settings - Fork 2
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 #158 from data-intuitive/develop
* Add perturbation replicate information in top table rows * Make filter & perturbation replicate information sections in the top table rows expansible * Hide server configuration files from the webserver * Update of the Node version and npm packages * Fix triple warning in the browser console about invalid fonts * Bump version to 5.4.0
- Loading branch information
Showing
20 changed files
with
9,252 additions
and
8,810 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,40 @@ | ||
import xs from 'xstream' | ||
import sampleCombine from 'xstream/extra/sampleCombine' | ||
|
||
export function InformationDetails(sources) { | ||
|
||
const state$ = sources.onion.state$ | ||
const props$ = sources.props | ||
const trigger$ = sources.trigger | ||
|
||
// Combine with deployments to the up-to-date endpoint config | ||
const triggerQuery$ = trigger$.filter(t => t).compose(sampleCombine(state$)).map(([t, s]) => s) | ||
|
||
const request$ = xs.combine(triggerQuery$, props$) | ||
.map(([state, props]) => ({ | ||
url: props.api.url + '&classPath=com.dataintuitive.luciusapi.perturbationInformationDetails', | ||
method: 'POST', | ||
send: { | ||
'query': state.id | ||
}, | ||
'category': 'perturbationInformationDetails' | ||
}) | ||
) | ||
|
||
const response$$ = sources.HTTP | ||
.select('perturbationInformationDetails') | ||
|
||
// TODO: fall back to default filters set in config file | ||
const validResponse$ = response$$ | ||
.map(response$ => | ||
response$.replaceError(_ => xs.of({})) | ||
) | ||
.flatten() | ||
|
||
return { | ||
// We don't initialize the stream here so we know exactly when the | ||
// information is available. | ||
informationDetails: validResponse$, | ||
HTTP: request$ | ||
} | ||
} |
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
Oops, something went wrong.