IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
소스 검색

Renamed wbApplyRequestOrdering to more universal wpApplyPromiseOrdering.

master
부모
커밋
e19c17708a
3개의 변경된 파일9개의 추가작업 그리고 5개의 파일을 삭제
  1. +3
    -1
      frontend/src/js/component/wb-arvados-crumbs.js
  2. +4
    -2
      frontend/src/js/misc/make-arvados-request.js
  3. +2
    -2
      frontend/src/js/misc/wb-apply-promise-ordering.js

+ 3
- 1
frontend/src/js/component/wb-arvados-crumbs.js 파일 보기

@@ -16,7 +16,9 @@ class WBArvadosCrumbs extends Component {
let { arvHost, arvToken } = this.props.app.state;
let prom = fetchObjectParents(arvHost, arvToken, this.props.uuid);
prom = prom.then(parents => this.setState({ 'items': parents }));
prom = prom.then(parents => {
this.setState({ 'items': parents });
});
}
componentDidMount() {


+ 4
- 2
frontend/src/js/misc/make-arvados-request.js 파일 보기

@@ -1,4 +1,6 @@
import wbApplyRequestOrdering from 'wb-apply-request-ordering';
import wbApplyPromiseOrdering from 'wb-apply-promise-ordering';
const requestPromiseOrdering = {};
function makeArvadosRequest(arvHost, arvToken, endpoint, params={}) {
const defaultParams = {
@@ -37,7 +39,7 @@ function makeArvadosRequest(arvHost, arvToken, endpoint, params={}) {
xhr.send(data);
});
// prom = wbApplyRequestOrdering(prom);
prom = wbApplyPromiseOrdering(prom, requestPromiseOrdering);
return prom;
}


frontend/src/js/misc/wb-apply-request-ordering.js → frontend/src/js/misc/wb-apply-promise-ordering.js 파일 보기

@@ -1,6 +1,6 @@
const defaultOrderRegistry = {};
function wbApplyRequestOrdering(prom, orderRegistry) {
function wbApplyPromiseOrdering(prom, orderRegistry) {
let orderId;
if (!orderRegistry)
@@ -63,4 +63,4 @@ function wbApplyRequestOrdering(prom, orderRegistry) {
return prom;
}
export default wbApplyRequestOrdering;
export default wbApplyPromiseOrdering;

불러오는 중...
취소
저장