Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
### Version 0.36.0
Browse files Browse the repository at this point in the history
#### Feature
- allow resume upload if upload job had stopped
- dbl_dot_local_app(5/7/2019): auto link upload job

(Merge branch 'auto_resume_uploads')
  • Loading branch information
ericpyle committed May 10, 2019
2 parents 790d1ea + e599b26 commit 69efbdd
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 16 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### Version 0.35.5
#### Fix
### Version 0.36.0
#### Feature
- allow resume upload if upload job had stopped
- dbl_dot_local_app(5/7/2019): auto link upload job

### Version 0.35.4
Expand Down
1 change: 0 additions & 1 deletion app/components/DBLEntryRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ type Props = {
bundleMatches: {},
bundlesSaveTo: {},
progress?: ?number,
isDownloaded: ?boolean,
isUploading?: ?boolean,
isDownloading?: ?boolean,
isSelected: ?boolean,
Expand Down
2 changes: 1 addition & 1 deletion app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nathanael",
"productName": "nathanael",
"version": "0.35.5",
"version": "0.36.0",
"description": "Electron frontend to DBL dot Local",
"main": "./main.prod.js",
"author": {
Expand Down
11 changes: 3 additions & 8 deletions app/reducers/bundles.reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,7 @@ export function bundles(state = initialState, action) {
export default bundles;

function addBundleDecorators(bundle, addCustomDecoration) {
const isDownloaded = bundle.task === 'DOWNLOAD' && bundle.status === 'COMPLETED';
const isUploaded = bundle.task === 'UPLOAD' && bundle.status === 'COMPLETED';
const coreDecorated = { ...bundle, ...formatDisplayAs(bundle), isDownloaded, isUploaded };
const coreDecorated = { ...bundle, ...formatDisplayAs(bundle) };
if (!addCustomDecoration) {
return coreDecorated;
}
Expand Down Expand Up @@ -405,11 +403,8 @@ function formatStatus(bundle) {
const stored = (bundle.resourceCountStored === bundle.resourceCountManifest) ?
bundle.resourceCountManifest : `${bundle.resourceCountStored}/${bundle.resourceCountManifest || '...'}`;
let newStatusDisplayAs;
if (bundle.isUploading) {
const uploadingMessage = (!bundle.resourceCountStored || bundle.resourceCountStored === 0) ? 'metadata' : formattedProgress;
newStatusDisplayAs = `Uploading ${uploadingMessage}`;
} else if (bundle.task === 'UPLOAD' && bundle.status === 'IN_PROGRESS') {
newStatusDisplayAs = 'Uploading';
if (bundle.task === 'UPLOAD' && bundle.status === 'IN_PROGRESS') {
newStatusDisplayAs = `Uploading ${formattedProgress}`;
} else if (bundle.status === 'NOT_STARTED') {
newStatusDisplayAs = 'Download';
} else if (bundle.task === 'DOWNLOAD' && bundle.status === 'IN_PROGRESS') {
Expand Down
2 changes: 1 addition & 1 deletion app/services/bundle.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ function checkAllFields(bundleId) {
}

function startUploadBundle(bundleId) {
return bundleAddTasks(bundleId, '<cancelUploadJobs/><createUploadJob/><uploadResources/><submitJobIfComplete><forkAfterUpload>true</forkAfterUpload></submitJobIfComplete>');
return bundleAddTasks(bundleId, '<findUploadJob/><uploadResources/><submitJobIfComplete><forkAfterUpload>true</forkAfterUpload></submitJobIfComplete>');
}

function deleteForm(bundleId, formKey) {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nathanael",
"productName": "nathanael",
"version": "0.35.5",
"version": "0.36.0",
"description": "Electron frontend to DBL dot Local",
"scripts": {
"build": "concurrently \"npm run build-main\" \"npm run build-renderer\"",
Expand Down

0 comments on commit 69efbdd

Please sign in to comment.