Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-11524

Full Investigation and Design Plan for Updating Cached Artifacts

    XMLWordPrintable

Details

    • % %
    • ?
    • 0
    • 0% 0%

    Description

      (Migrated from https://github.com/syndesisio/syndesis/issues/3606)

      Author: phantomjinx
      Assignees: unassigned
      When a connection and an integration are created, there can exist at least 3 copies of the connection in the system:

      • The connection stored in the data store and accessible via the DataManager;
      • The connection cached in the draft integration (assumed saved-as-draft);
      • The connection cached in the copy of the deployed integration

      The problem with the multiple copies is that it is possible for 1 component to be updated with new metadata whilst the other elements remain using the old data. For example:
      1. Create a gmail connection, specifying the OAuth Client credentials in the settings;
      2. Create an integration based on the gmail connection;
      3. Publish the integration;
      4. Change the gmail connection settings;

      At this point, it is possible that the connection can be edited to update its cached metadata. However, this is not certain and observations have shown this does not always occur. Likewise, editing the integration is supposed to update its cached connection metadata yet this does not always occur either. A tell-tale sign is the warning that now gets flagged on the integration:

      Unable to find source-code formatter for language: a. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
       connection associated with this integration has been modified. To incorporate the changes, please edit the integration.

      A systematic investigation should be conducted to find all the points where updates occur then events should be fired to signal all cached copies, where applicable, should be synchronized.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-hbraun Heiko Braun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: