Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DataFileUtil.html

Large diffs are not rendered by default.

20 changes: 13 additions & 7 deletions DataFileUtil.spec
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,11 @@ module DataFileUtil {
information to use the latest version.
data - the object data.

Optional parameters:
One of an object name or id. If no name or id is provided the name
will be set to 'auto' with the object id appended as a string,
possibly with -\d+ appended if that object id already exists as a
name.
One of an object name or id:
name - the name of the object.
objid - the id of the object to save over.

Optional parameters:
meta - arbitrary user-supplied metadata for the object,
not to exceed 16kb; if the object type specifies automatic
metadata extraction with the 'meta ws' annotation, and your
Expand Down Expand Up @@ -403,8 +401,16 @@ module DataFileUtil {
} SaveObjectsParams;

/*
Save objects to the workspace. Saving over a deleted object undeletes
it.
Save objects to the workspace.

The objects will be sorted prior to saving to avoid the Workspace sort memory limit.
Note that if the object contains workspace object refs in mapping keys that may cause
the Workspace to resort the data. To avoid this, convert any refs in mapping keys to UPA
format (e.g. #/#/#, where # is a positive integer).

If the data is very large, using the WSLargeDataIO SDK module is advised.

Saving over a deleted object undeletes it.
*/
funcdef save_objects(SaveObjectsParams params)
returns (list<object_info> info) authentication required;
Expand Down
16 changes: 11 additions & 5 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
#0.1.3
# 0.1.4
- objects saved to the workspace are now sorted prior to serialization. This prevents errors due
to workspace sort memory limits, and also moves the sort compute load (which is the most
expensive part of saving objects) from the workspace server node to the SDK job nodes.

# 0.1.3
- tidying for github consistency
- Added Actions workflow for KB SDK tests
- Added Dependabot and LGTM configurations
- Updated `README.md` to include standard build, coverage, and LGTM badging.

#0.1.2
# 0.1.2
- deprecate handle service with handle service 2
- replace the colon(:) [that was reported to have caused download error for Windows users] with underscore in shock filenames
- replace the colon(:) [that was reported to have caused download error for Windows users] with
underscore in shock filenames

#0.1.1
# 0.1.1
- close no longer used sockets.

#0.1.0
# 0.1.0
- shock attributes are now ignored on upload. In a future release they will be removed altogether
and specifying attributes for upload will be an error.
- shock indexes and attributes are no longer copied during a copy or ownership operation.
24 changes: 13 additions & 11 deletions lib/DataFileUtil/DataFileUtilClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,13 @@ def ws_name_to_id(self, name, context=None):

def save_objects(self, params, context=None):
"""
Save objects to the workspace. Saving over a deleted object undeletes
it.
Save objects to the workspace.
The objects will be sorted prior to saving to avoid the Workspace sort memory limit.
Note that if the object contains workspace object refs in mapping keys that may cause
the Workspace to resort the data. To avoid this, convert any refs in mapping keys to UPA
format (e.g. #/#/#, where # is a positive integer).
If the data is very large, using the WSLargeDataIO SDK module is advised.
Saving over a deleted object undeletes it.
:param params: instance of type "SaveObjectsParams" (Input parameters
for the "save_objects" function. Required parameters: id - the
numerical ID of the workspace. objects - the objects to save. The
Expand All @@ -367,15 +372,12 @@ def save_objects(self, params, context=None):
type "ObjectSaveData" (An object and associated data required for
saving. Required parameters: type - the workspace type string for
the object. Omit the version information to use the latest
version. data - the object data. Optional parameters: One of an
object name or id. If no name or id is provided the name will be
set to 'auto' with the object id appended as a string, possibly
with -\d+ appended if that object id already exists as a name.
name - the name of the object. objid - the id of the object to
save over. meta - arbitrary user-supplied metadata for the object,
not to exceed 16kb; if the object type specifies automatic
metadata extraction with the 'meta ws' annotation, and your
metadata name conflicts, then your metadata will be silently
version. data - the object data. One of an object name or id: name
- the name of the object. objid - the id of the object to save
over. Optional parameters: meta - arbitrary user-supplied metadata
for the object, not to exceed 16kb; if the object type specifies
automatic metadata extraction with the 'meta ws' annotation, and
your metadata name conflicts, then your metadata will be silently
overwritten. hidden - true if this object should not be listed
when listing workspace objects. extra_provenance_input_refs -
(optional) if set, these refs will be appended to the primary
Expand Down
Loading