1919import org .jetbrains .annotations .NotNull ;
2020import org .labkey .api .data .BaseColumnInfo ;
2121import org .labkey .api .data .ColumnInfo ;
22- import org .labkey .api .data .Container ;
23- import org .labkey .api .data .ContainerManager ;
2422import org .labkey .api .data .CoreSchema ;
2523import org .labkey .api .data .DisplayColumn ;
2624import org .labkey .api .data .DisplayColumnDecorator ;
2725import org .labkey .api .data .DisplayColumnFactory ;
28- import org .labkey .api .data .ExpandableTextDisplayColumnFactory ;
2926import org .labkey .api .data .JdbcType ;
3027import org .labkey .api .data .RenderContext ;
3128import org .labkey .api .data .SQLFragment ;
3936import org .labkey .api .util .StringExpressionFactory ;
4037import org .labkey .api .writer .HtmlWriter ;
4138
42- import java .util .ArrayList ;
43- import java .util .Collections ;
44- import java .util .HashMap ;
4539import java .util .List ;
46- import java .util .Map ;
4740
4841/**
4942 * User: kevink
@@ -101,7 +94,6 @@ public void addColumns()
10194 var licenseCol = addTextColumn ("License" );
10295 licenseCol .setURL (StringExpressionFactory .createURL ("${LicenseURL}" ));
10396 licenseCol .setURLTarget ("_blank" );
104- addTextColumn ("ActiveFolders" ).setDisplayColumnFactory (new ExpandableTextDisplayColumnFactory ());
10597 addTextColumn ("LicenseURL" ).setHidden (true );
10698 addTextColumn ("VcsRevision" );
10799 addTextColumn ("VcsURL" );
@@ -117,8 +109,7 @@ public void addColumns()
117109 FieldKey .fromParts ("SchemaVersion" ),
118110 FieldKey .fromParts ("Label" ),
119111 FieldKey .fromParts ("Organization" ),
120- FieldKey .fromParts ("License" ),
121- FieldKey .fromParts ("ActiveFolders" )
112+ FieldKey .fromParts ("License" )
122113 ));
123114 }
124115
@@ -192,7 +183,6 @@ public SQLFragment getFromSQL(String alias)
192183 cte .append ("VALUES " );
193184 String sep = "" ;
194185
195- Map <Module , List <String >> moduleContainers = getContainersForModule ();
196186 for (Module module : ModuleLoader .getInstance ().getModules ())
197187 {
198188 cte .append (sep );
@@ -214,7 +204,6 @@ public SQLFragment getFromSQL(String alias)
214204 appendStringLiteral (h , cte ,"," ,module .getSourcePath ());
215205 appendStringLiteral (h , cte ,"," ,StringUtils .join (module .getModuleDependenciesAsSet (), ", " ));
216206 appendStringLiteral (h , cte ,"," ,module .getSupportedDatabasesSet ().toString ());
217- appendStringLiteral (h , cte ,"," , StringUtils .join (moduleContainers .getOrDefault (module , Collections .emptyList ()), "\n " ));
218207 cte .append (")" );
219208 }
220209 cte .append (") AS T (" );
@@ -231,7 +220,6 @@ public SQLFragment getFromSQL(String alias)
231220 cte .append (",VcsRevision, VcsURL" );
232221 cte .append (",SourcePath" );
233222 cte .append (",Dependencies, SupportedDatabases" );
234- cte .append (",ActiveFolders" );
235223 cte .append (")\n " );
236224
237225 String tableName = getSqlDialect ().truncate (alias + "$m" , 0 );
@@ -252,22 +240,6 @@ public SQLFragment getFromSQL(String alias)
252240 return ret ;
253241 }
254242
255- private Map <Module , List <String >> getContainersForModule ()
256- {
257- Map <Module , List <String >> moduleFolders = new HashMap <>();
258-
259- for (Container container : ContainerManager .getAllChildren (ContainerManager .getRoot ()))
260- {
261- if (container != null )
262- container .getActiveModules ().forEach (m -> moduleFolders .computeIfAbsent (m , k -> new ArrayList <>()).add (container .getPath ()));
263- }
264-
265- for (List <String > folders : moduleFolders .values ())
266- Collections .sort (folders );
267-
268- return moduleFolders ;
269- }
270-
271243 // Format SchemaVersion column using the standard ModuleContext formatting rules: force three-decimal places for >= 20.000,
272244 // otherwise suppress trailing zeroes. Also, right align the values in the grid.
273245 private static class SchemaVersionDisplayColumnFactory implements DisplayColumnFactory
0 commit comments