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

Connect visual reflow via HTTP to headless browser instance

    XMLWordPrintable

Details

    • High
    • Show
      Before updating see https://confluence.translate5.net/display/CON/translate5+5.8.0+-+needed+visualreview+to+docker+migration
    • Hide
      * Changed usage of headless Browser for the visual to use a docker-image
      * Added own Worker for the Text-Reflow Conversion
      * Legacy Cleanup: Changed fallback-implementation for visuals, where the text-reflow fails to use the translate5 standard scroller & icon library. This fixes issues with missing annotation-icons in those cases
      Show
      * Changed usage of headless Browser for the visual to use a docker-image * Added own Worker for the Text-Reflow Conversion * Legacy Cleanup: Changed fallback-implementation for visuals, where the text-reflow fails to use the translate5 standard scroller & icon library. This fixes issues with missing annotation-icons in those cases

    Description

      problem

      In a dockerized environment all services must be usable via network, same for the reflow via headless browser.

      solution

      • Change the usage of the headless browser used for reflow, so that it can be reached via HTTP instead of plain file access.
      • Suggestion: the existing path config is evaluated, if it is a URL, the HTTP based approach is used, if not then the local one.
      • As discussed the data must be accessible via local URL access. Doable as symlink from data to public task dir.
      • Here keep in mind, that the whole data dir may be located somewhere else.
      • Also the URL for that access from the browser must be separatly configurable, similar as the "runtimeOptions.worker.server" config
      • So that new URL config defaults to runtimeOptions.worker.server (with the same "runtimeOptions.server.protocol" and "runtimeOptions.server.name" fallback applied)
      • format should be as for worker config: SCHEME://HOST:PORT

      Attachments

        Issue Links

          Activity

            People

              axelbecher Axel Becher
              tlauria Thomas Lauria
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: