Skip to content

Conversation

@labkey-kevink
Copy link
Contributor

  • include non-user editable columns details view by default
  • infer column 'showInDetailsView' unless explicitly set
  • validate queries checks for QueryView without detailsURL with showDetailsColumn=true

Copy link
Contributor

@labkey-jeckels labkey-jeckels left a comment

Choose a reason for hiding this comment

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

Maybe fine as-is, but a couple of questions.

*/
public abstract class ColumnRenderPropertiesImpl implements ColumnRenderProperties
{
protected static final Set<String> NON_EDITABLE_COL_NAMES = new CaseInsensitiveHashSet(
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's wrap this in a Collections.unmodifiableSet(). It should preserve the case-insensitive semantics, but I've heard that immutability is good...

protected boolean isColumnIncluded(ColumnInfo col)
{
return col.isShownInUpdateView();
return col.isUserEditable() && col.isShownInUpdateView();
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this check? I feel like there are a few cases where we want to show a read-only view of some columns, but I can't conjure up a concrete example either.

@labkey-kevink labkey-kevink marked this pull request as draft November 4, 2020 03:03
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