Skip to content

Commit

Permalink
Merge branch 'release/9.0.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
smoyte committed Mar 12, 2024
2 parents 8807f37 + 7dc27a7 commit 7ba54a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9.0.8
9.0.9
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default class extends Controller<HTMLFormElement> {
}

setProgress(progress: number, total: number) {
this.progressTarget.innerHTML = progress.toString();
this.progressTarget.innerHTML = (progress + 1).toString();
this.totalTarget.innerHTML = total.toString();
}
}
6 changes: 3 additions & 3 deletions app/jobs/gdrive/migration/ingest_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def ingest_files
# This will also save the migration_file if it was an unpersisted one.
migration_file.update!(status: "transferred")

consent_request.increment(:ingest_progress)
consent_request.increment!(:ingest_progress)
end
end

Expand Down Expand Up @@ -181,8 +181,8 @@ def build_new_migration_file(file_id)
end

def handle_file_error(migration_file, error, error_type, report: false)
consent_request.increment(:ingest_progress)
consent_request.increment(:error_count)
consent_request.increment!(:ingest_progress)
consent_request.increment!(:error_count)

Rails.logger.error("Encountered #{error_type}",
file_id: migration_file.external_id,
Expand Down

0 comments on commit 7ba54a7

Please sign in to comment.