-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customizable File Templates for Sources, Sample Types & Assay Designs #6167
Conversation
|
||
public String getDomainFileDirectory() | ||
{ | ||
return getKindName(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want toLowerCase() for these? maybe it doesn't matter but the other dir names seem to all be lowercase.
experiment/src/org/labkey/experiment/controllers/property/PropertyController.java
Outdated
Show resolved
Hide resolved
experiment/src/org/labkey/experiment/controllers/property/PropertyController.java
Outdated
Show resolved
Hide resolved
experiment/src/org/labkey/experiment/controllers/property/PropertyController.java
Outdated
Show resolved
Hide resolved
experiment/src/org/labkey/experiment/controllers/property/PropertyController.java
Outdated
Show resolved
Hide resolved
experiment/src/org/labkey/experiment/controllers/property/PropertyController.java
Outdated
Show resolved
Hide resolved
experiment/src/org/labkey/experiment/controllers/property/PropertyController.java
Outdated
Show resolved
Hide resolved
if (!template_.second.toLowerCase().contains("exportexceltemplate")) | ||
existingCustomTemplates.add(template_); | ||
} | ||
if (!updatedTemplates.equals(existingCustomTemplates)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since these vars are both ArrayLists, will they ever be considered equal? From the UI, I opened the manage templates modal for a sample type that already had 2 custom tempaltes > edited the label for one and then put the label back to what it was > clicked Save. The code still went into this if statement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm.. for this scenario described, it doesn't go inside the if block for me.
experiment/src/org/labkey/experiment/controllers/property/PropertyController.java
Outdated
Show resolved
Hide resolved
QueryDef queryDef = null; | ||
if (queryDef == null) | ||
queryDef = QueryManager.get().getQueryDef(container, schemaName, queryName, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
queryDef is always null here so not sure that if statement is needed.
QueryDef queryDef = null; | |
if (queryDef == null) | |
queryDef = QueryManager.get().getQueryDef(container, schemaName, queryName, false); | |
QueryDef queryDef = QueryManager.get().getQueryDef(container, schemaName, queryName, false); | |
Rationale
Custom import templates were previously supported by overriding the the datatype's query metadata xml by providing the webdav location of an uploaded file. This set of PRs allows users to manage custom templates from app UI.
Related Pull Requests
Changes
UpdateDomainImportTemplateAction
api to upload custom template files and save domain template settings to query xml at query.querydef.metadatagetQueryDetailsAction
to includeavailable
status of import templatesCustomImportTemplates
product feature