Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-3562

[RN] Che ignores changes to devfile.yaml and che-editor.yaml after pushing to a git repository (because che-server URLFetcher sometimes caches its results)

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 3.3.0.GA
    • 3.3.0.GA
    • docs
    • False
    • None
    • False
    • Release Notes
    • Hide
      = {prod-short} fetches latest devfile.yaml and che-editor.yaml in remote Git repositories

      With this update, {prod-short} fetches the latest versions of the `devfile.yaml` and `che-editor.yaml` files in the remote Git repository when you use the URL for that repository to start a new workspace.
      Show
      = {prod-short} fetches latest devfile.yaml and che-editor.yaml in remote Git repositories With this update, {prod-short} fetches the latest versions of the `devfile.yaml` and `che-editor.yaml` files in the remote Git repository when you use the URL for that repository to start a new workspace.
    • Enhancement
    • Done

    Description

      Synced from Eclipse Che issue

      https://github.com/eclipse/che/issues/21184

      Is your enhancement related to a problem? Please describe

      I’m always frustrated when…Che uses the old version of a devfile.yaml, not the one I have modified a few seconds ago on github.com.

      That can be reproduced starting a workspace from a GitHub repository, pushing a devfile.yaml change, deleting the existing workspace and starting a new one with the same exact factory URL and within a 5 minutes time frame.

      The problem can also be reproduced test che-server /scm/resolver API using swagger: for 5 minutes, any new request will return the old devfile.yaml or che-editor.yaml, even if you have pushed some changes in the meantime.

      Describe the solution you'd like

      Che-sever /scm/resolver endpoint should return the updated file, not a cached version.

      Release Notes Text

      Che ignores changes to devfile.yaml and che-editor.yaml after pushing to a git repository (because che-server URLFetcher sometimes caches its results)

      Attachments

        Issue Links

          Activity

            People

              rhn-ecs-pkovar Petr Kovar (Inactive)
              jiralint.codeready Bot Codeready
              Max Leonov Max Leonov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: