Skip to content

Improvements for spreadsheet download#2535

Draft
kdp-cloud wants to merge 13 commits into
seek-1.18from
2246-create-inputs-tab-in-spreadsheet
Draft

Improvements for spreadsheet download#2535
kdp-cloud wants to merge 13 commits into
seek-1.18from
2246-create-inputs-tab-in-spreadsheet

Conversation

@kdp-cloud
Copy link
Copy Markdown
Collaborator

@kdp-cloud kdp-cloud commented Mar 31, 2026

  • Split out sheets in partials to improve readability
  • Impose at least viewing permission to use data files and strains in spreadsheet
  • Add study and assay extended metadata sheet

@kdp-cloud kdp-cloud added this to the 1.18.0 milestone Mar 31, 2026
@kdp-cloud kdp-cloud self-assigned this Mar 31, 2026
@kdp-cloud kdp-cloud moved this to In Progress in DataHub Mar 31, 2026
@kdp-cloud kdp-cloud moved this to In progress in SEEK 1.18.x Mar 31, 2026
@kdp-cloud kdp-cloud requested a review from Copilot March 31, 2026 13:00
@kdp-cloud kdp-cloud linked an issue Mar 31, 2026 that may be closed by this pull request

This comment was marked as resolved.

@kdp-cloud kdp-cloud linked an issue Apr 2, 2026 that may be closed by this pull request
@kdp-cloud kdp-cloud requested a review from Copilot April 3, 2026 06:11

This comment was marked as resolved.

@kdp-cloud kdp-cloud marked this pull request as ready for review April 13, 2026 13:22
@kdp-cloud kdp-cloud marked this pull request as draft April 15, 2026 13:15
@kdp-cloud kdp-cloud force-pushed the 2246-create-inputs-tab-in-spreadsheet branch from 7ce0633 to 87c93bf Compare May 6, 2026 09:42
@kdp-cloud kdp-cloud requested a review from Copilot May 6, 2026 09:44

This comment was marked as resolved.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.

Comment on lines +82 to +92
col_ref = Axlsx.cell_r(col_nr, 1).gsub(/\d+/, '')
dv_range = "#{col_ref}2:#{col_ref}100000"
hide_drop_down = !requires_data_validation?(attribute) || sa_terms_size.zero? || false
sheet.add_data_validation(dv_range,
type: :list,
formula1: "'Controlled Vocabularies'!$#{col_ref}$2:$#{col_ref}$#{sa_terms_size + 1}",
# Field that do not require data validation should not have dropdown
hideDropDown: hide_drop_down,
# If the attribute requires data validation, show Error message
# If attribute does not allow free text for CVs, Error message
showErrorMessage: !attribute.allow_cv_free_text && requires_data_validation?(attribute),
Comment on lines +56 to +62
elsif attribute.sample_attribute_type.seek_sample_multi?
unless value.blank?
non_blank_values = value.map do |v|
v unless v[:id].blank?
end.compact
non_blank_values unless non_blank_values.blank?
end
Comment on lines +115 to 118
def get_values_for_strains
strains = Strain.authorized_for(:view)
strains.map { |strain| { id: strain.id, type: 'Strain', title: strain.title }.to_json }
end
Comment on lines +21 to 23
<button id=<%= "remove-#{new_sample_id}" %> class="btn glyphicon glyphicon-trash danger"
style="background-color:#d9534f;color:white;"
onclick=<%= "removeSample('new-sample-#{new_sample_id}')" %>></button>
@stuzart stuzart changed the base branch from main to seek-1.18 May 13, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress
Status: In progress

Development

Successfully merging this pull request may close these issues.

Include Extended metadata in the spreadsheet Add extended metadata to spreadsheet

2 participants