Skip to content

Commit f16c215

Browse files
authored
Remove the user-defined flag field option (#7447)
1 parent 4c5e4c0 commit f16c215

26 files changed

Lines changed: 27 additions & 238 deletions

File tree

api/gwtsrc/org/labkey/api/gwt/client/model/GWTDomain.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public class GWTDomain<FieldType extends GWTPropertyDescriptor> implements IsSer
4040
@Getter @Setter private String container;
4141
@Getter @Setter private boolean allowFileLinkProperties;
4242
@Getter @Setter private boolean allowAttachmentProperties;
43-
@Getter @Setter private boolean allowFlagProperties;
4443
@Getter @Setter private boolean allowTextChoiceProperties;
4544
@Getter @Setter private boolean allowMultiChoiceProperties;
4645
@Getter @Setter private boolean allowSampleSubjectProperties;
@@ -89,7 +88,6 @@ public GWTDomain(GWTDomain<FieldType> src)
8988
this.container = src.container;
9089
this.allowFileLinkProperties = src.allowFileLinkProperties;
9190
this.allowAttachmentProperties = src.allowAttachmentProperties;
92-
this.allowFlagProperties = src.allowFlagProperties;
9391
this.allowTextChoiceProperties = src.allowTextChoiceProperties;
9492
this.allowMultiChoiceProperties = src.allowMultiChoiceProperties;
9593
this.allowSampleSubjectProperties = src.allowSampleSubjectProperties;

api/gwtsrc/org/labkey/api/gwt/client/ui/PropertyType.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public enum PropertyType
4040
xsdTime("http://www.w3.org/2001/XMLSchema#time", true, "Time", null, "time"),
4141
expFileLink("http://cpas.fhcrc.org/exp/xml#fileLink", false, "File"),
4242
expAttachment("http://www.labkey.org/exp/xml#attachment", false, "Attachment"),
43-
expFlag("http://www.labkey.org/exp/xml#flag", false, "Flag (String)"),
4443
xsdFloat("http://www.w3.org/2001/XMLSchema#float", true, "Number (Float)", "Float", "float"),
4544
xsdDecimal("http://www.w3.org/2001/XMLSchema#decimal", true, "Number (Decimal)", "Decimal", "float"),
4645
xsdLong("http://www.w3.org/2001/XMLSchema#long", true, "Long Integer", "Long", "int"),

api/src/org/labkey/api/assay/AbstractAssayProvider.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,12 +1688,6 @@ public Pair<ExpProtocol, Integer> getAssayResultRowIdFromLsid(Container containe
16881688
return Pair.of(protocol, rowId);
16891689
}
16901690

1691-
@Override
1692-
public boolean supportsFlagColumnType(ExpProtocol.AssayDomainTypes type)
1693-
{
1694-
return false;
1695-
}
1696-
16971691
@Override
16981692
public Module getDeclaringModule()
16991693
{

api/src/org/labkey/api/assay/AssayProvider.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
import org.jetbrains.annotations.Nullable;
2323
import org.labkey.api.assay.actions.AssayRunUploadForm;
2424
import org.labkey.api.assay.pipeline.AssayRunAsyncContext;
25+
import org.labkey.api.assay.plate.FilterCriteria;
2526
import org.labkey.api.assay.transform.AnalysisScript;
2627
import org.labkey.api.assay.transform.DataExchangeHandler;
27-
import org.labkey.api.assay.plate.FilterCriteria;
2828
import org.labkey.api.data.Container;
2929
import org.labkey.api.data.ContainerFilter;
3030
import org.labkey.api.exp.ExperimentException;
@@ -331,8 +331,6 @@ enum Scope
331331

332332
void registerLsidHandler();
333333

334-
boolean supportsFlagColumnType(ExpProtocol.AssayDomainTypes type);
335-
336334
/**@ return the module in which this assay provider is declared */
337335
Module getDeclaringModule();
338336

api/src/org/labkey/api/assay/AssayUrls.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ public interface AssayUrls extends UrlProvider
8888
ActionURL getUpdateQCStateURL(Container container, ExpProtocol protocol);
8989

9090
ActionURL getBeginURL(Container container);
91-
ActionURL getSetResultFlagURL(Container container);
9291
ActionURL getChooseAssayTypeURL(Container container);
9392
ActionURL getImportAssayDesignURL(Container container);
9493
ActionURL getShowSelectedDataURL(Container container, ExpProtocol protocol);

api/src/org/labkey/api/exp/PropertyDescriptor.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -545,12 +545,7 @@ public Map<String, Object> getAuditRecordMap(@Nullable String validatorStr, @Nul
545545
if (!StringUtils.isEmpty(getLabel()))
546546
map.put("Label", getLabel());
547547
if (null != getPropertyType())
548-
{
549-
if (org.labkey.api.gwt.client.ui.PropertyType.expFlag.getURI().equals(getConceptURI()))
550-
map.put("Type", "Flag");
551-
else
552-
map.put("Type", getPropertyType().getXarName());
553-
}
548+
map.put("Type", getPropertyType().getXarName());
554549
if (getPropertyType().getJdbcType().isText())
555550
map.put("Scale", getScale());
556551
if (!StringUtils.isEmpty(getDescription()))

api/src/org/labkey/api/exp/property/DomainKind.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ public boolean matchesTemplateXML(String templateName, DomainTemplateType templa
321321

322322
public boolean allowFileLinkProperties() { return false; }
323323
public boolean allowAttachmentProperties() { return false; }
324-
public boolean allowFlagProperties() { return true; }
325324
public boolean allowTextChoiceProperties() { return true; }
326325
public boolean allowMultiChoiceProperties() { return false; }
327326
public boolean allowSampleSubjectProperties() { return true; }

api/src/org/labkey/api/exp/property/DomainUtil.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,6 @@ private static GWTDomain<GWTPropertyDescriptor> getDomain(Domain dd)
458458
{
459459
gwtDomain.setAllowAttachmentProperties(kind.allowAttachmentProperties());
460460
gwtDomain.setAllowFileLinkProperties(kind.allowFileLinkProperties());
461-
gwtDomain.setAllowFlagProperties(kind.allowFlagProperties());
462461
gwtDomain.setAllowTextChoiceProperties(kind.allowTextChoiceProperties());
463462
gwtDomain.setAllowMultiChoiceProperties(allowMultiChoice(kind));
464463
gwtDomain.setAllowSampleSubjectProperties(kind.allowSampleSubjectProperties());
@@ -478,7 +477,6 @@ public static GWTDomain<GWTPropertyDescriptor> getTemplateDomainForDomainKind(Do
478477
gwtDomain.setDomainKindName(kind.getKindName());
479478
gwtDomain.setAllowAttachmentProperties(kind.allowAttachmentProperties());
480479
gwtDomain.setAllowFileLinkProperties(kind.allowFileLinkProperties());
481-
gwtDomain.setAllowFlagProperties(kind.allowFlagProperties());
482480
gwtDomain.setAllowTextChoiceProperties(kind.allowTextChoiceProperties());
483481
gwtDomain.setAllowMultiChoiceProperties(allowMultiChoice(kind));
484482
gwtDomain.setAllowSampleSubjectProperties(kind.allowSampleSubjectProperties());

assay/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assay/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"clean": "rimraf resources/web/assay/gen && rimraf resources/views/gen && rimraf resources/web/gen"
1313
},
1414
"dependencies": {
15-
"@labkey/components": "7.20.2"
15+
"@labkey/components": "7.20.5"
1616
},
1717
"devDependencies": {
1818
"@labkey/build": "8.8.0",

0 commit comments

Comments
 (0)