Skip to content

Commit

Permalink
Merge branch 'seek-1.15' into fairdomhub
Browse files Browse the repository at this point in the history
  • Loading branch information
stuzart committed Jul 18, 2024
2 parents 31b7c2f + 10afce2 commit fc93be7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

major: 1
minor: 15
patch: 1
patch: 2
10 changes: 10 additions & 0 deletions lib/tasks/seek_upgrades.rake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace :seek do
implement_assay_streams_for_isa_assays
set_ls_login_legacy_mode
rename_custom_metadata_legacy_supported_type
fix_xlsx_marked_as_zip
]

# these are the tasks that are executes for each upgrade as standard, and rarely change
Expand Down Expand Up @@ -205,6 +206,15 @@ namespace :seek do
end
end

task(fix_xlsx_marked_as_zip: [:environment]) do
blobs = ContentBlob.where('original_filename LIKE ?','%.xlsx').where(content_type: 'application/zip')
if blobs.any?
n = blobs.count
blobs.update_all(content_type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')
puts "... fixed #{n} XLSX blobs with zip content type"
end
end

private

##
Expand Down

0 comments on commit fc93be7

Please sign in to comment.