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

Commit 69efbdd

Browse files
committed
### Version 0.36.0
#### 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')
2 parents 790d1ea + e599b26 commit 69efbdd

File tree

8 files changed

+11
-16
lines changed

8 files changed

+11
-16
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
### Version 0.35.5
2-
#### Fix
1+
### Version 0.36.0
2+
#### Feature
3+
- allow resume upload if upload job had stopped
34
- dbl_dot_local_app(5/7/2019): auto link upload job
45

56
### Version 0.35.4

app/components/DBLEntryRow.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ type Props = {
5858
bundleMatches: {},
5959
bundlesSaveTo: {},
6060
progress?: ?number,
61-
isDownloaded: ?boolean,
6261
isUploading?: ?boolean,
6362
isDownloading?: ?boolean,
6463
isSelected: ?boolean,

app/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nathanael",
33
"productName": "nathanael",
4-
"version": "0.35.5",
4+
"version": "0.36.0",
55
"description": "Electron frontend to DBL dot Local",
66
"main": "./main.prod.js",
77
"author": {

app/reducers/bundles.reducer.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,7 @@ export function bundles(state = initialState, action) {
361361
export default bundles;
362362

363363
function addBundleDecorators(bundle, addCustomDecoration) {
364-
const isDownloaded = bundle.task === 'DOWNLOAD' && bundle.status === 'COMPLETED';
365-
const isUploaded = bundle.task === 'UPLOAD' && bundle.status === 'COMPLETED';
366-
const coreDecorated = { ...bundle, ...formatDisplayAs(bundle), isDownloaded, isUploaded };
364+
const coreDecorated = { ...bundle, ...formatDisplayAs(bundle) };
367365
if (!addCustomDecoration) {
368366
return coreDecorated;
369367
}
@@ -405,11 +403,8 @@ function formatStatus(bundle) {
405403
const stored = (bundle.resourceCountStored === bundle.resourceCountManifest) ?
406404
bundle.resourceCountManifest : `${bundle.resourceCountStored}/${bundle.resourceCountManifest || '...'}`;
407405
let newStatusDisplayAs;
408-
if (bundle.isUploading) {
409-
const uploadingMessage = (!bundle.resourceCountStored || bundle.resourceCountStored === 0) ? 'metadata' : formattedProgress;
410-
newStatusDisplayAs = `Uploading ${uploadingMessage}`;
411-
} else if (bundle.task === 'UPLOAD' && bundle.status === 'IN_PROGRESS') {
412-
newStatusDisplayAs = 'Uploading';
406+
if (bundle.task === 'UPLOAD' && bundle.status === 'IN_PROGRESS') {
407+
newStatusDisplayAs = `Uploading ${formattedProgress}`;
413408
} else if (bundle.status === 'NOT_STARTED') {
414409
newStatusDisplayAs = 'Download';
415410
} else if (bundle.task === 'DOWNLOAD' && bundle.status === 'IN_PROGRESS') {

app/services/bundle.service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ function checkAllFields(bundleId) {
502502
}
503503

504504
function startUploadBundle(bundleId) {
505-
return bundleAddTasks(bundleId, '<cancelUploadJobs/><createUploadJob/><uploadResources/><submitJobIfComplete><forkAfterUpload>true</forkAfterUpload></submitJobIfComplete>');
505+
return bundleAddTasks(bundleId, '<findUploadJob/><uploadResources/><submitJobIfComplete><forkAfterUpload>true</forkAfterUpload></submitJobIfComplete>');
506506
}
507507

508508
function deleteForm(bundleId, formKey) {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nathanael",
33
"productName": "nathanael",
4-
"version": "0.35.5",
4+
"version": "0.36.0",
55
"description": "Electron frontend to DBL dot Local",
66
"scripts": {
77
"build": "concurrently \"npm run build-main\" \"npm run build-renderer\"",

0 commit comments

Comments
 (0)