Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Remove workaround for a schema component update bug (WRK-1031). #962

Merged
merged 5 commits into from
Jun 3, 2019
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

- Fixed a bug where a worker's `World` could get disposed multiple times if you stopped the application inside the Editor while the worker is being created.

### Internal

- Removed the workaround for a schema component update bug (WRK-1031).

## `0.2.2` - 2019-05-15

### Breaking Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var update = ref updates[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetEvents();
var componentUpdate = new ComponentUpdate(schemaUpdate);
Serialization.SerializeUpdate(update.Update, schemaUpdate);
serializedMessages.AddComponentUpdate(componentUpdate, update.EntityId.Id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var update = ref updates[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetEvents();
var componentUpdate = new ComponentUpdate(schemaUpdate);
Serialization.SerializeUpdate(update.Update, schemaUpdate);
serializedMessages.AddComponentUpdate(componentUpdate, update.EntityId.Id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var update = ref updates[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetEvents();
var componentUpdate = new ComponentUpdate(schemaUpdate);
Serialization.SerializeUpdate(update.Update, schemaUpdate);
serializedMessages.AddComponentUpdate(componentUpdate, update.EntityId.Id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var update = ref updates[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetEvents();
var componentUpdate = new ComponentUpdate(schemaUpdate);
Serialization.SerializeUpdate(update.Update, schemaUpdate);
serializedMessages.AddComponentUpdate(componentUpdate, update.EntityId.Id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var update = ref updates[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetEvents();
var componentUpdate = new ComponentUpdate(schemaUpdate);
Serialization.SerializeUpdate(update.Update, schemaUpdate);
serializedMessages.AddComponentUpdate(componentUpdate, update.EntityId.Id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var update = ref updates[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetEvents();
var componentUpdate = new ComponentUpdate(schemaUpdate);
Serialization.SerializeUpdate(update.Update, schemaUpdate);
serializedMessages.AddComponentUpdate(componentUpdate, update.EntityId.Id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var update = ref updates[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetEvents();
var componentUpdate = new ComponentUpdate(schemaUpdate);
Serialization.SerializeUpdate(update.Update, schemaUpdate);
serializedMessages.AddComponentUpdate(componentUpdate, update.EntityId.Id);
Expand All @@ -75,8 +73,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var ev = ref events[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetFields();
var componentUpdate = new ComponentUpdate(schemaUpdate);
var obj = schemaUpdate.GetEvents().AddObject(1);
global::Improbable.Gdk.Tests.AlternateSchemaSyntax.RandomDataType.Serialization.Serialize(ev.Event.Payload, obj);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var update = ref updates[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetEvents();
var componentUpdate = new ComponentUpdate(schemaUpdate);
Serialization.SerializeUpdate(update.Update, schemaUpdate);
serializedMessages.AddComponentUpdate(componentUpdate, update.EntityId.Id);
Expand All @@ -88,8 +86,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var ev = ref events[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetFields();
var componentUpdate = new ComponentUpdate(schemaUpdate);
var obj = schemaUpdate.GetEvents().AddObject(1);
global::Improbable.Gdk.Tests.BlittableTypes.FirstEventPayload.Serialization.Serialize(ev.Event.Payload, obj);
Expand All @@ -105,8 +101,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var ev = ref events[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetFields();
var componentUpdate = new ComponentUpdate(schemaUpdate);
var obj = schemaUpdate.GetEvents().AddObject(2);
global::Improbable.Gdk.Tests.BlittableTypes.SecondEventPayload.Serialization.Serialize(ev.Event.Payload, obj);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var update = ref updates[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetEvents();
var componentUpdate = new ComponentUpdate(schemaUpdate);
Serialization.SerializeUpdate(update.Update, schemaUpdate);
serializedMessages.AddComponentUpdate(componentUpdate, update.EntityId.Id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var update = ref updates[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetEvents();
var componentUpdate = new ComponentUpdate(schemaUpdate);
Serialization.SerializeUpdate(update.Update, schemaUpdate);
serializedMessages.AddComponentUpdate(componentUpdate, update.EntityId.Id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var update = ref updates[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetEvents();
var componentUpdate = new ComponentUpdate(schemaUpdate);
Serialization.SerializeUpdate(update.Update, schemaUpdate);
serializedMessages.AddComponentUpdate(componentUpdate, update.EntityId.Id);
Expand All @@ -75,8 +73,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var ev = ref events[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetFields();
var componentUpdate = new ComponentUpdate(schemaUpdate);
var obj = schemaUpdate.GetEvents().AddObject(1);
global::Improbable.Gdk.Tests.ComponentsWithNoFields.Empty.Serialization.Serialize(ev.Event.Payload, obj);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var update = ref updates[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetEvents();
var componentUpdate = new ComponentUpdate(schemaUpdate);
Serialization.SerializeUpdate(update.Update, schemaUpdate);
serializedMessages.AddComponentUpdate(componentUpdate, update.EntityId.Id);
Expand All @@ -88,8 +86,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var ev = ref events[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetFields();
var componentUpdate = new ComponentUpdate(schemaUpdate);
var obj = schemaUpdate.GetEvents().AddObject(1);
global::Improbable.Gdk.Tests.NonblittableTypes.FirstEventPayload.Serialization.Serialize(ev.Event.Payload, obj);
Expand All @@ -105,8 +101,6 @@ public void Serialize(MessagesToSend messages, SerializedMessagesToSend serializ
{
ref readonly var ev = ref events[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetFields();
var componentUpdate = new ComponentUpdate(schemaUpdate);
var obj = schemaUpdate.GetEvents().AddObject(2);
global::Improbable.Gdk.Tests.NonblittableTypes.SecondEventPayload.Serialization.Serialize(ev.Event.Payload, obj);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public static WrappedTask<RedirectedProcessResult, AssemblyConfig> UploadAsync(A
config.AssemblyName,
"--project_name",
config.ProjectName,
"--json_output"
"--json_output",
"--enable_pre_upload_check=false",
};

if (config.ShouldForceUpload)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ namespace <#= qualifiedNamespace #>
{
ref readonly var update = ref updates[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetEvents();
var componentUpdate = new ComponentUpdate(schemaUpdate);
Serialization.SerializeUpdate(update.Update, schemaUpdate);
serializedMessages.AddComponentUpdate(componentUpdate, update.EntityId.Id);
Expand All @@ -92,8 +90,6 @@ namespace <#= qualifiedNamespace #>
{
ref readonly var ev = ref events[i];
var schemaUpdate = new SchemaComponentUpdate(ComponentId);
// TODO: UTY-1858 - remove this workaround.
schemaUpdate.GetFields();
var componentUpdate = new ComponentUpdate(schemaUpdate);
var obj = schemaUpdate.GetEvents().AddObject(<#= ev.EventIndex #>);
<#= ev.FqnPayloadType #>.Serialization.Serialize(ev.Event.Payload, obj);
Expand Down