Skip to content

Commit

Permalink
Merge 23.11 to develop
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-teamcity committed Nov 8, 2023
2 parents 0123ed8 + 30738a7 commit 6d506bd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ALTER TABLE targetedms.molecule ALTER COLUMN customionname TYPE TEXT;
ALTER TABLE targetedms.moleculeprecursor ALTER COLUMN customionname TYPE TEXT;
ALTER TABLE targetedms.moleculetransition ALTER COLUMN customionname TYPE TEXT;
ALTER TABLE targetedms.excludedprecursors ALTER COLUMN customionname TYPE TEXT;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ALTER TABLE targetedms.molecule ALTER COLUMN customionname NVARCHAR(MAX);
ALTER TABLE targetedms.moleculeprecursor ALTER COLUMN customionname NVARCHAR(MAX);
ALTER TABLE targetedms.moleculetransition ALTER COLUMN customionname NVARCHAR(MAX);
ALTER TABLE targetedms.excludedprecursors ALTER COLUMN customionname NVARCHAR(MAX);
2 changes: 1 addition & 1 deletion src/org/labkey/targetedms/TargetedMSModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public String getName()
@Override
public Double getSchemaVersion()
{
return 23.004;
return 23.005;
}

@Override
Expand Down
5 changes: 3 additions & 2 deletions src/org/labkey/targetedms/query/SampleFileTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,16 @@ public SampleFileTable(TargetedMSSchema schema, ContainerFilter cf, @Nullable Ta

if (matchingContainers.size() == 1 && matchingSampleTypeLSIDs.size() == 1)
{
Container matchingContainer = matchingContainers.iterator().next();
ExpSampleType sampleType = SampleTypeService.get().getSampleType(matchingSampleTypeLSIDs.iterator().next());
if (sampleType != null)
{
ActionURL sampleUrl = PageFlowUtil.urlProvider(ExperimentUrls.class, true).getMaterialDetailsBaseURL(sampleType.getContainer(), SAMPLE_FIELD_KEY + "/RowId");
ActionURL sampleUrl = PageFlowUtil.urlProvider(ExperimentUrls.class, true).getMaterialDetailsBaseURL(matchingContainer, SAMPLE_FIELD_KEY + "/RowId");
DetailsURL url = new DetailsURL(sampleUrl, "rowId", FieldKey.fromParts(SAMPLE_FIELD_KEY, "RowId"));
url.setContainerContext(new ContainerContext.FieldKeyContext(FieldKey.fromParts(SAMPLE_FIELD_KEY, "Folder"), true), false);
url.setStrictContainerContextEval(true);

return new QueryForeignKey.Builder(new SamplesSchema(getUserSchema().getUser(), matchingContainers.iterator().next()), null).
return new QueryForeignKey.Builder(new SamplesSchema(getUserSchema().getUser(), matchingContainer), null).
table(sampleType.getName()).
key("Name").
url(url).
Expand Down

0 comments on commit 6d506bd

Please sign in to comment.