Skip to content

Commit

Permalink
feat: Refactored output table for viewer compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanRynne committed Aug 31, 2022
1 parent e7710f0 commit bd3fe6a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Speckle/Speckle.pq
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,9 @@ GetByUrl.Impl = (url as text) as table =>

addStreamUrl = Table.AddColumn(commitObjectsTable, "Stream URL", each server & "/streams/" & streamId),
addUrlType = Table.AddColumn(addStreamUrl, "URL Type", each urlType),
addStreamId = Table.AddColumn(addUrlType, "Stream ID", each streamId),
addBranchCol = Table.AddColumn(addStreamId, "Branch Name", each branchName),
addCommitCol = Table.AddColumn(addBranchCol, "Commit ID", each commitId),
addObjectCol = Table.AddColumn(addCommitCol, "Object ID", each objectId),
final = Table.ReorderColumns(addObjectCol, {"Stream URL", "Stream ID", "URL Type", "Branch Name", "Commit ID", "Object ID", "data"})
addObjectIdCol = Table.AddColumn(addUrlType, "Object ID", each [data][id]),
addSpeckleTypeCol = Table.AddColumn(addObjectIdCol, "speckle_type", each [data][speckle_type]),
final = Table.ReorderColumns(addSpeckleTypeCol,{"Stream URL", "URL Type", "Object ID", "speckle_type", "data" })
in
Table.RemoveLastN(final, 1);

Expand Down

0 comments on commit bd3fe6a

Please sign in to comment.