Commit 13ab6e42 authored by Nikola's avatar Nikola

Refine data bucket stream display and enable data array preview for columns with blank spaces.

Items generated during the creation of a Data Analysis are now given unique names and references even with multiple outputs
parent 0d256d89
Pipeline #30970 passed with stage
in 0 seconds
......@@ -58,8 +58,8 @@
"key": "field_listbox_storage",
"lines": 5,
"list_method": "portal_catalog",
"query": "urn:jio:allDocs?query=portal_type%3A%28%22Data%20Stream%22%20OR%20%20%22Data%20Array%22%29",
"portal_type": ["Data Stream", "Data Array"],
"query": "urn:jio:allDocs?query=portal_type%3A%28%22Data%20Stream%22%20OR%20%20%22Data%20Array%22%20OR%20%22Data%20Bucket%20Stream%22%29",
"portal_type": ["Data Stream", "Data Array", "Data Bucket Stream"],
"search_column_list": [],
"sort_column_list": [],
"title": "Latest Streams and Arrays",
......
......@@ -8,8 +8,8 @@ if array is None:
else:
if context.getArrayDtypeNames() is not None:
return [('index', 'Index')] + [(str(i), str(i)) for i in context.getArrayDtypeNames()]
return [('index', 'Index')] + [(str(i).replace(" ", "_"), str(i).replace(" ", "_")) for i in context.getArrayDtypeNames()]
elif len(context.getArrayShape()) < 2:
return [('index', 'Index'), ('1', '1')]
else:
return [('index', 'Index')] + [(str(i), str(i)) for i in range(min(context.getArrayShape()[1], 100))]
return [('index', 'Index')] + [(str(i).replace(" ", "_"), str(i).replace(" ", "_")) for i in range(min(context.getArrayShape()[1], 100))]
......@@ -189,8 +189,8 @@ for movement in portal_catalog(query = query):
if item is None:
module = portal.getDefaultModule(item_type)
item = module.newContent(portal_type = item_type,
title = transformation.getTitle(),
reference = "%s-%s" %(transformation.getTitle(),
title = "%s-%s" % (transformation.getTitle(), transformation_line.getTitle()),
reference = "%s-%s-%s" %(transformation.getTitle(), transformation_line.getTitle(),
delivery.getReference()),
version = '001')
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment