Skip to content

Commit

Permalink
added more info to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jrchudy committed Oct 1, 2024
1 parent 6e9f2bd commit c15b13b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/column.js
Original file line number Diff line number Diff line change
Expand Up @@ -1666,7 +1666,7 @@ module._extends(ForeignKeyPseudoColumn, ReferenceColumn);
/**
* Given the available tuple data, generate the uniqueId for the selected row from the table this pseudo column points to
*
* @param {*} linkedData
* @param {Object} linkedData key-value pairs of column values of the table this pseudocolumn points to
*/
ForeignKeyPseudoColumn.prototype.generateUniqueId = function (linkedData) {
return module._generateTupleUniqueId(this.reference.table.shortestKey, linkedData);
Expand Down
7 changes: 7 additions & 0 deletions js/utils/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,13 @@
};
};

/**
* Given the available linked data, generate the uniqueId for the row this data represents given the shortest key of the table
*
* @param {ERMrest.Key[]} tableShortestKey shortest key from the table the linkedData is for
* @param {Object} linkedData data to use to generate the unique id
* @returns string | null - unique id for the row the linkedData represents
*/
module._generateTupleUniqueId = function (tableShortestKey, linkedData) {
var keyName, hasNull = false, _uniqueId = "";

Expand Down

0 comments on commit c15b13b

Please sign in to comment.