Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 2f3821f0

Přidáno uživatelem Vojtěch Bartička před asi 2 roky(ů)

Set annotation state to in progress on tag add

Zobrazit rozdíly:

Backend/Core/Services/AnnotationService/AnnotationServiceEF.cs
777 777
                }
778 778
            }
779 779

  
780
            if (annotation.State == EState.NEW)
781
            {
782
                annotation.State = EState.IN_PROGRESS;
783
            }
784

  
780 785
            AnnotationTag annotationTag = new()
781 786
            {
782 787
                Id = Guid.NewGuid(),
......
796 801
                {
797 802
                    annotationTag.Sentiment = ETagSentiment.NEUTRAL;
798 803
                }
799
                
804

  
800 805
                // If for the same annotation exists a tag with same position and length and of the same type, ignore
801
                if (context.AnnotationTags.Any(at => 
806
                if (context.AnnotationTags.Any(at =>
802 807
                at.Position == annotationTag.Position &&
803 808
                at.Length == annotationTag.Length &&
804 809
                at.Annotation == annotation &&
......
818 823
                {
819 824
                    annotationTag.Sentiment = ETagSentiment.NEUTRAL;
820 825
                }
821
                
822
                if (context.AnnotationTags.Any(at => 
826

  
827
                if (context.AnnotationTags.Any(at =>
823 828
                at.Position == annotationTag.Position &&
824 829
                at.Length == annotationTag.Length &&
825 830
                at.Annotation == annotation &&

Také k dispozici: Unified diff