Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-3928

change logic of content protection rules

    • Medium
    • Hide
      after deploy of code command should be run:
      `t5 content-protection:language-rules-hashes:refresh`
      Show
      after deploy of code command should be run: `t5 content-protection:language-rules-hashes:refresh`
    • Changed logic of ContentProtection rules to become active

      Problem

      Right now for all content protection rules that are

      1. active in the general rules tab and
      2. have a corresponding input rule for a given source language (input tab)

      the protection rule is active and a warning is given to the user that no valid output rule has been defined.

      Exception: "Keep as is" rules, for those no warning was given, as no explicit output rule is needed

      Solution

      Change behaviour for all rules except "keep as is" rules

      For rule to be applied in process of Content Protection 3 requirements should be met:

      1. Rule is active in Content Recognition Rules tab
      2. For this rule and source language exists record in Active Input Rules
      3. For Active Input Rules above and target language exists record in Active Output Rules

      Exception is Content Recognition Rule with Keep as is flag set to true. This rules do not require Active Output Rule as we not transforming content in any way in this case.

       

          [TRANSLATE-3928] change logic of content protection rules

          There are no comments yet on this issue.

            sanya@mittagqi.com Sanya Mikhliaiev
            sylviaschumacher Sylvia Schumacher
            Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: