Remove GWT framework#7659
Conversation
# Conflicts: # assay/package-lock.json # assay/package.json # assay/src/client/PlateTemplateDesigner/PlateTemplateDesigner.scss # assay/src/client/PlateTemplateDesigner/PlateTemplateDesigner.test.tsx # assay/src/client/PlateTemplateDesigner/PlateTemplateDesigner.tsx # assay/src/client/PlateTemplateDesigner/PlateTemplateDesigner.utils.test.ts # assay/src/client/PlateTemplateDesigner/components/GroupTypesPanel.test.tsx # assay/src/client/PlateTemplateDesigner/components/GroupTypesPanel.tsx # assay/src/client/PlateTemplateDesigner/components/MultiCreateDialog.test.tsx # assay/src/client/PlateTemplateDesigner/components/MultiCreateDialog.tsx # assay/src/client/PlateTemplateDesigner/components/RightPanel.tsx # assay/src/client/PlateTemplateDesigner/components/ShiftPanel.test.tsx # assay/src/client/PlateTemplateDesigner/components/ShiftPanel.tsx # assay/src/client/PlateTemplateDesigner/components/StatusBar.test.tsx # assay/src/client/PlateTemplateDesigner/components/StatusBar.tsx # assay/src/client/PlateTemplateDesigner/components/TabButton.tsx # assay/src/client/PlateTemplateDesigner/components/TemplateGrid.test.tsx # assay/src/client/PlateTemplateDesigner/components/TemplateGrid.tsx # assay/src/client/PlateTemplateDesigner/components/WarningPanel.tsx # assay/src/client/PlateTemplateDesigner/components/WellGroupProperties.test.tsx # assay/src/client/PlateTemplateDesigner/components/WellGroupProperties.tsx # assay/src/client/PlateTemplateDesigner/models.test.ts # assay/src/client/PlateTemplateDesigner/models.ts # assay/src/client/entryPoints.js # assay/src/org/labkey/assay/PlateController.java # assay/src/org/labkey/assay/plate/PlateDataServiceImpl.java # assay/test/js/setup.ts
|
I plan to rename the classes/packages in a followup commit. That'll touch more repos. |
labkey-adam
left a comment
There was a problem hiding this comment.
One case that should be converted to Objects.equals(). If straightforward, clear up the line ending-only changes. Take a look at what seem like pointless local var assignments. No further review needed.
| setBackgroundColor(f.getBackgroundColor()); | ||
| setFilter(f.getFilter()); | ||
| } | ||
| } |
There was a problem hiding this comment.
Leaving as-is. Diffs and annotate looks fine in IntelliJ.
| { | ||
| return getPath(); | ||
| } | ||
| } |
| PipelineJob job1 = this; | ||
| List<String> errors = new ArrayList<>(); | ||
| if (!PropertyUtil.nullSafeEquals(job1._activeTaskId, job2._activeTaskId)) | ||
| if (!com.google.api.client.util.Objects.equal(job1._activeTaskId, job2._activeTaskId)) |
There was a problem hiding this comment.
Should we just use the standard java.util.Objects.equals() instead? That's what this ends up calling.
There was a problem hiding this comment.
Yes. Replaced.
| } | ||
| return null; | ||
| } | ||
| } |
|
|
||
| return apiOverride; | ||
| } | ||
| } |
| { | ||
| return _label; | ||
| } | ||
| } |
| //NOTE: the name of the assay PTID field might not always match ParticipantId. this allows us to also | ||
| //support PARTICIPANT_CONCEPT_URI | ||
| ColumnInfo ptidCol = selectColumns.stream().filter(c -> PropertyType.PARTICIPANT_CONCEPT_URI.equals(c.getConceptURI())).findFirst().orElse(null); | ||
| ColumnInfo ptidCol = selectColumns.stream().filter(c -> org.labkey.api.exp.PropertyType.PARTICIPANT_CONCEPT_URI.equals(c.getConceptURI())).findFirst().orElse(null); |
There was a problem hiding this comment.
Shouldn't need fully qualified class here since it's imported above
| boolean enrolledChanged = cohort.isEnrolled() != newEnrolled; | ||
| boolean subjectCountChanged = !PropertyUtil.nullSafeEquals(cohort.getSubjectCount(), newSubjectCount); | ||
| boolean desciprtionChanged = !Strings.CS.equals(cohort.getDescription(), newDescription); | ||
| Object o1 = cohort.getSubjectCount(); |
There was a problem hiding this comment.
Interesting that this one was pulled out into a var
There was a problem hiding this comment.
Rolled back that part of the edit. Not sure how/why it happened.
| Integer newSubjectCount = asInteger(row.get("subjectCount")); | ||
| String newDescription = (String)row.get("description"); | ||
|
|
||
| Object o3 = cohort.getSubjectCount(); |
There was a problem hiding this comment.
Another interesting choice. Especially since the usage below would short-circuit in some cases and not execute this line. Not that it would use many cycles, but...
There was a problem hiding this comment.
Rolled back that part of the edit. Not sure how/why it happened.
#### Rationale We're completely eliminating GWT from our codebase so there's no need to have any test references to it. #### Related Pull Requests - LabKey/platform#7659 #### Changes - Get rid of some locators - Expunge some GWT-specific workarounds - Eliminate some lint
Rationale
We've migrated all of our GWT apps to React. We can now remove GWT itself.
Changes
Tasks 📍
Manual TestingTest Automation