Skip to content

Commit

Permalink
fix(acad): removes collaborators form the stream state cache to limit… (
Browse files Browse the repository at this point in the history
#2033)

* fix(acad): removes collaborators form the stream state cache to limit saved stream size #2030

* docs: adds inline comment

Co-authored-by: Claire Kuang <[email protected]>
  • Loading branch information
teocomi and clairekuang authored Dec 21, 2022
1 parent 2a925eb commit c607139
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ public static void WriteStreamStateList(Document doc, List<StreamState> streamSt
if (doc == null)
return;

//fix for metadata length limitation issues https://github.com/specklesystems/speckle-sharp/issues/2030
foreach (var streamState in streamStates)
{
streamState.CachedStream.collaborators = new List<Core.Api.Collaborator>();
}

using (DocumentLock l = doc.LockDocument())
{
using (Transaction tr = doc.Database.TransactionManager.StartTransaction())
Expand Down

0 comments on commit c607139

Please sign in to comment.