Comments (6)
We had a company-wide hackathon last week, which is why there's been no movement on that PR. I expect it'll get reviewed and released at some point this week.
from realm-dotnet.
➤ PM Bot commented:
Jira ticket: RNET-1143
from realm-dotnet.
Hi @Scorter, thanks for reporting this.
Would it be possible for you to post here your models? If you prefer not to make them public we can figure something out.
from realm-dotnet.
Of course @papafe, first I will show you the old version.
Old version:
public partial class OrderServiceEntity : IRealmObject
{
[PrimaryKey, Required]
public string PrimaryKey { get; set; } // UserId_Id
public int Id { get; set; }
public int? Equipment { get; set; }
public IList<OrderServiceProcedureEntity> Procedures { get; }
public EditionEntity EditionValue { get; set; }
public EditionEntity EditionOrigin { get; set; }
public AttachmentsEntity Attachments { get; set; }
public IList<WorkedHourEntity> WorkedHours { get; }
public IList<ChecklistExecutionEntity> Checklists { get; }
public CalibrationExecutionEntity Calibration { get; set; }
public SignatureEntity SignatureValue { get; set; }
public SignatureEntity SignatureOrigin { get; set; }
public IList<int> StandardsValue { get; }
public IList<int> StandardsOrigin { get; }
public DateTimeOffset? ConclusionDate { get; internal set; }
public string FinalizationSyncedState { get; set; }
public bool HasDiverged<T>(T origin, T value) => !EqualityComparer<T>.Default.Equals(origin, value);
public bool HasDiverged<T>(IList<T> origin, IList<T> value) => !value.SequenceEqual(origin);
}
public partial class CalibrationExecutionEntity : IEmbeddedObject
{
/// <summary> <see cref="CMMS.CalibrationState"/> </summary>
public string CalibrationState { get; set; }
public int OrderServiceId { get; set; }
public int Requestor { get; set; }
public int Equipment { get; set; }
// Dropdowns
public int? ExecutingTechnician { get; set; }
public int? TechnicalResponsable { get; set; }
public int? Procedure { get; set; }
// Date Fields
public DateTimeOffset? CreationDate { get; set; }
public DateTimeOffset? EmissionDate { get; set; }
public DateTimeOffset? ValidityDate { get; set; }
// Text Fields
public string RequesterResponsible { get; set; } // Review this field
public string Observations { get; set; }
public string Local { get; set; }
// Numeric Fields
public float Temperature { get; set; }
public float TemperatureUncertainty { get; set; }
public float Humidity { get; set; }
public float HumidityUncertainty { get; set; }
public IList<CalibrationTablePageExecutionEntity> TablePages { get; }
}
public partial class CalibrationTablePageExecutionEntity : IEmbeddedObject
{
public string Title { get; set; }
// Dropdown
public int? Standard { get; set; }
public int ReliabilityFactor { get; set; }
public int? StandardCertificateTab { get; set; }
public int AcceptanceCriteria { get; set; }
// Numeric
public float? StandardResolution { get; set; }
public float? EquipmentResolution { get; set; }
public float? UsageMin { get; set; }
public float? UsageMax { get; set; }
public float? CapacityMin { get; set; }
public float? CapacityMax { get; set; }
public string UnitOfMeasurement { get; set; }
public float? MaxError { get; set; }
public IList<CalibrationTableRowExecutionEntity> Rows { get; }
}
public partial class CalibrationTableRowExecutionEntity : IEmbeddedObject
{
public float? Nominal { get; set; }
public IList<float?> MeasuredValues { get; }
}
New version where is the migration to be done, transforming the "Nominal" and "MeasuredValues" fields from float? for string:
public partial class OrderServiceEntity : IRealmObject
{
[PrimaryKey, Required]
public string PrimaryKey { get; set; } // UserId_Id
public int Id { get; set; }
public int? Equipment { get; set; }
public IList<OrderServiceProcedureEntity> Procedures { get; }
public EditionEntity EditionValue { get; set; }
public EditionEntity EditionOrigin { get; set; }
public AttachmentsEntity Attachments { get; set; }
public IList<WorkedHourEntity> WorkedHours { get; }
public IList<ChecklistExecutionEntity> Checklists { get; }
public CalibrationExecutionEntity Calibration { get; set; }
public SignatureEntity SignatureValue { get; set; }
public SignatureEntity SignatureOrigin { get; set; }
public IList<int> StandardsValue { get; }
public IList<int> StandardsOrigin { get; }
public DateTimeOffset? ConclusionDate { get; internal set; }
public string FinalizationSyncedState { get; set; }
public bool HasDiverged<T>(T origin, T value) => !EqualityComparer<T>.Default.Equals(origin, value);
public bool HasDiverged<T>(IList<T> origin, IList<T> value) => !value.SequenceEqual(origin);
}
public partial class CalibrationExecutionEntity : IEmbeddedObject
{
/// <summary> <see cref="CMMS.CalibrationState"/> </summary>
public string CalibrationState { get; set; }
public int OrderServiceId { get; set; }
public int Requestor { get; set; }
public int Equipment { get; set; }
// Dropdowns
public int? ExecutingTechnician { get; set; }
public int? TechnicalResponsable { get; set; }
public int? Procedure { get; set; }
// Date Fields
public DateTimeOffset? CreationDate { get; set; }
public DateTimeOffset? EmissionDate { get; set; }
public DateTimeOffset? ValidityDate { get; set; }
// Text Fields
public string RequesterResponsible { get; set; } // Review this field
public string Observations { get; set; }
public string Local { get; set; }
// Numeric Fields
public float Temperature { get; set; }
public float TemperatureUncertainty { get; set; }
public float Humidity { get; set; }
public float HumidityUncertainty { get; set; }
public IList<CalibrationTablePageExecutionEntity> TablePages { get; }
}
public partial class CalibrationTablePageExecutionEntity : IEmbeddedObject
{
public string Title { get; set; }
// Dropdown
public int? Standard { get; set; }
public int ReliabilityFactor { get; set; }
public int? StandardCertificateTab { get; set; }
public int AcceptanceCriteria { get; set; }
// Numeric
public string? StandardResolution { get; set; }
public string? EquipmentResolution { get; set; }
public float? UsageMin { get; set; }
public float? UsageMax { get; set; }
public float? CapacityMin { get; set; }
public float? CapacityMax { get; set; }
public string UnitOfMeasurement { get; set; }
public float? MaxError { get; set; }
public IList<CalibrationTableRowExecutionEntity> Rows { get; }
}
public partial class CalibrationTableRowExecutionEntity : IEmbeddedObject
{
public string Nominal { get; set; }
public IList<string?> MeasuredValues { get; }
}
Remembering that the error occurs specifically in the "MeasuredValues" field in the CalibrationTableRowExecutionEntity class. Thanks a lot for the help!
from realm-dotnet.
I can reproduce this. Looking into it.
from realm-dotnet.
Hi @nirinchev, thanks for your help and solving this. Can you tell me when this pull request will be reviewed and this fix will be available?
from realm-dotnet.
Related Issues (20)
- Crash: Realm.SyncSession is only valid for synchronized Realms HOT 6
- Realm.DeleteRealm() creates lock file if Realm doesn't exist HOT 2
- Change passing of tests on CI HOT 3
- Very slow deletion, multiple objects HOT 9
- Add tests for sync schema migration HOT 1
- Fix equality comparison for collections in mixed HOT 1
- Realm Obfuscation (Unity + Local Database) HOT 16
- Add tests for notifications with collections in mixed HOT 1
- Fix `SyncMigrationTests.Migration_FailsWithFutureVersion` HOT 1
- Follow up on progress notification HOT 1
- App.CurrentUser doesn't become `null` after anonymous user logout HOT 2
- Compacting a Realm results in an upgrade prompt in Realm Studio HOT 1
- Encrypted Realm created on Android won't open on Windows HOT 5
- Trying to open a particular Realm DB file throws the following exception - "Upgrading from file format version 22 to 24 D:\a\realm-dotnet\realm-dotnet\wrappers\realm-core\src\realm/util/encrypted_file_mapping.hpp:180: [realm-core-14.5.1] Assertion failed: local_ndx < m_page_state.size() with (local_ndx, m_page_state.size(), size_t(addr), size_t(m_addr), m_page_shift) = [85, 1, 2331762327552, 2331762294784, 16] <backtrace not supported on this platform>" HOT 9
- SDKs should not consume stitch_ prefixed fields HOT 1
- IRealmCollection SubscribeForNotifications not working!!! HOT 6
- Add support for Migration.FindInNewRealm HOT 1
- RealmResults (from Realm live queries) no longer notify UI observers HOT 5
- ToDictionary(Tkey, Filter) not filter HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from realm-dotnet.