Skip to content

Use correct noun for field labels#2399

Merged
labkey-tchad merged 17 commits intodevelopfrom
fb_nameToLabel
Apr 22, 2025
Merged

Use correct noun for field labels#2399
labkey-tchad merged 17 commits intodevelopfrom
fb_nameToLabel

Conversation

@labkey-tchad
Copy link
Copy Markdown
Member

@labkey-tchad labkey-tchad commented Apr 4, 2025

Rationale

[Story]

Numerous tests refer to a field's "name" when they really mean its label or fieldKey. Methods and variable names should accurately reflect what they represent.

Related Pull Requests

Changes

  • Use correct and consistent nouns for labels and fieldKeys

@labkey-tchad labkey-tchad changed the title Use correct nouns for labels and fieldKeys Use correct noun for field labels Apr 17, 2025
@@ -88,9 +88,9 @@ public Boolean isLoaded()
*/
private WebElement getField(String identifier)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I wonder if getField should become getFieldByLabel? (or perhaps, identifier could become 'label'?)
Just offering suggestions at this point

public List<String> getSummaryModeColumns()
{
var rawColumns = getSummaryModeGrid().getColumnNames();
var rawColumns = getSummaryModeGrid().getColumnLabels();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would it be more consistent to rename getColumnNames to getFieldLabels? Many of these other changes replaced Column with Field.

@labkey-tchad labkey-tchad merged commit ceb8b98 into develop Apr 22, 2025
1 of 2 checks passed
@labkey-tchad labkey-tchad deleted the fb_nameToLabel branch April 22, 2025 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants