GithubHelp home page GithubHelp logo

Comments (6)

nirinchev avatar nirinchev commented on May 27, 2024 1

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.

sync-by-unito avatar sync-by-unito commented on May 27, 2024

➤ PM Bot commented:

Jira ticket: RNET-1143

from realm-dotnet.

papafe avatar papafe commented on May 27, 2024

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.

Scorter avatar Scorter commented on May 27, 2024

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.

nirinchev avatar nirinchev commented on May 27, 2024

I can reproduce this. Looking into it.

from realm-dotnet.

Scorter avatar Scorter commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.