More release blockers #1490

Merged
neb-b merged 10 commits from release-blockers into master 2018-05-25 06:41:03 +02:00
2 changed files with 5 additions and 24 deletions
Showing only changes of commit 2f4395a9e3 - Show all commits

View file

@ -5,7 +5,6 @@ import {
makeSelectLoadingForUri,
makeSelectCostInfoForUri,
} from 'lbry-redux';
import { doFetchAvailability } from 'redux/actions/availability';
import { doOpenFileInShell } from 'redux/actions/file';
import { doPurchaseUri, doStartDownload } from 'redux/actions/content';
import { doPause } from 'redux/actions/media';
@ -20,7 +19,6 @@ const select = (state, props) => ({
});
const perform = dispatch => ({
checkAvailability: uri => dispatch(doFetchAvailability(uri)),
openInShell: path => dispatch(doOpenFileInShell(path)),
purchaseUri: uri => dispatch(doPurchaseUri(uri)),
restartDownload: (uri, outpoint) => dispatch(doStartDownload(uri, outpoint)),

View file

@ -11,31 +11,19 @@ type Props = {
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
total_bytes: number,
outpoint: number,
download_path: string,
completed: boolean,
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
},
loading: boolean,
costInfo: ?{},
restartDownload: (string, number) => void,
checkAvailability: string => void,
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
openInShell: string => void,
purchaseUri: string => void,
doPause: () => void,
};
class FileDownloadLink extends React.PureComponent<Props> {
componentWillMount() {
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
this.checkAvailability(this.props.uri);
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
}
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
componentWillReceiveProps(nextProps: Props) {
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
this.checkAvailability(nextProps.uri);
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
this.restartDownload(nextProps);
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
}
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
uri: ?string;
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
restartDownload = (props: Props) => {
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
const { downloading, fileInfo, uri, restartDownload } = props;
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
componentWillUpdate() {
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
const { downloading, fileInfo, uri, restartDownload } = this.props;
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
if (
!downloading &&
fileInfo &&
@ -45,15 +33,10 @@ class FileDownloadLink extends React.PureComponent<Props> {
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
) {
restartDownload(uri, fileInfo.outpoint);
}
};
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
checkAvailability(uri: string) {
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
if (!this.uri || uri !== this.uri) {
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
this.uri = uri;
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
this.props.checkAvailability(uri);
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
}
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
}
uri: ?string;
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
render() {
const {
fileInfo,

skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps
skhameneh commented 2018-05-22 05:37:57 +02:00 (Migrated from github.com)
Review

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps

componentWillReceiveProps is being deprecated in favor of getDerivedStateFromProps