Skip to content

Commit

Permalink
Merge pull request #1276 from Sage-Bionetworks/develop-rename-function
Browse files Browse the repository at this point in the history
[bug fix] Renamed function related to setting background color of required columns
  • Loading branch information
linglp authored Aug 15, 2023
2 parents 388584f + 074f4b7 commit 9c4dbc9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions schematic/manifest/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ def _request_note_valid_values(self, i, req, validation_rules, valid_values):
else:
return

def _request_notes_comments(self, i, req, json_schema):
def _set_required_columns_color(self, i, req, json_schema):
"""Update background colors so that columns that are required are highlighted
Args:
i (int): column index
Expand Down Expand Up @@ -1126,10 +1126,10 @@ def _create_requests_body(
if get_row_formatting:
requests_body["requests"].append(get_row_formatting)

# Add notes to headers to provide descriptions of the attribute
header_notes = self._request_notes_comments(i, req, json_schema)
if header_notes:
requests_body["requests"].append(header_notes)
# set color of required columns to blue
required_columns_color = self._set_required_columns_color(i, req, json_schema)
if required_columns_color:
requests_body["requests"].append(required_columns_color)
# Add note on how to use multi-select, when appropriate
note_vv = self._request_note_valid_values(
i, req, validation_rules, valid_values
Expand Down

0 comments on commit 9c4dbc9

Please sign in to comment.