Skip to content

Commit 34425a7

Browse files
committed
DisplayPeptideGroupInformationAction revert containerId check from previous PR
1 parent 99a39b1 commit 34425a7

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

pepdb/src/org/scharp/atlas/pepdb/PepDBController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ public ModelAndView getView(PeptideAndGroupForm form, BindException errors) thro
443443
pg = PepDBManager.getPeptideGroupByID(peptideGroupId);
444444
}
445445
catch (NumberFormatException ignored) {}
446-
if (pg == null || !getContainer().getId().equalsIgnoreCase(pg.getContainerId()))
446+
if (pg == null)
447447
{
448448
throw new NotFoundException();
449449
}

pepdb/test/src/org/labkey/test/tests/pepdb/PepDBModuleTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import org.labkey.test.TestTimeoutException;
3232
import org.labkey.test.WebTestHelper;
3333
import org.labkey.test.categories.CustomModules;
34+
import org.labkey.test.util.DataRegionTable;
3435
import org.labkey.test.util.LogMethod;
3536
import org.labkey.test.util.PostgresOnlyTest;
3637

@@ -180,6 +181,15 @@ public void testSteps() throws Exception
180181

181182
clickAndWait(Locator.css("a.labkey-button > span"));
182183

184+
// Verify peptide group detail page
185+
clickAndWait(Locator.linkWithText("List Peptide Groups"));
186+
clickAndWait(Locator.linkWithText("gagptegprac"));
187+
assertTextPresentInThisOrder(
188+
"Group Information from peptide_group table for group : gagptegprac",
189+
"There are (16) peptides in the 'gagptegprac' peptide group."
190+
);
191+
DataRegionTable pepTable = new DataRegionTable("group_peptides", getDriver());
192+
assertEquals("Peptide table for group does not have expected number of rows", 16, pepTable.getDataRowCount());
183193

184194
/*
185195
*

0 commit comments

Comments
 (0)