Skip to content

GitHub Issue 1409: When creating Molecules, show the other entities that will be created automatically - #2050

Open
XingY wants to merge 5 commits into
developfrom
fb_issue1323
Open

GitHub Issue 1409: When creating Molecules, show the other entities that will be created automatically#2050
XingY wants to merge 5 commits into
developfrom
fb_issue1323

Conversation

@XingY

@XingY XingY commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

@XingY
XingY requested a review from labkey-nicka August 6, 2026 16:30

const typeNameRows: Record<string, any[]> = {};
const dataRows = await selectRows({
schemaQuery: SCHEMAS.EXP_TABLES.DATA,

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.

Consider specifying .detailView

dataRows.rows.forEach(row => {
const dataClass = caseInsensitive(row, 'DataClass/Name')?.value;
const rowId = caseInsensitive(row, 'RowId').value;
if (!typeNameRows[dataClass])

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.

Avoid caching undefined as a key value.

dataRows.rows.forEach(row => {
    const dataClass = caseInsensitive(row, 'DataClass/Name')?.value;
    if (dataClass) {
	    const rowId = caseInsensitive(row, 'RowId').value;
	    if (!typeNameRows[dataClass])
	        typeNameRows[dataClass] = [];
	    typeNameRows[dataClass].push({ rowId });
    }
});

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.

2 participants