Skip to content

Commit

Permalink
Merge branch 'bugfix/IJMP-1992-Uss-children-are-not-refreshed-if-refr…
Browse files Browse the repository at this point in the history
…esh-on-parent' into 'release/v2.0.1'

IJMP-1992-Uss-children-are-not-refreshed-if-refresh-on-parent

See merge request ijmp/for-mainframe!599
  • Loading branch information
ATsikhamirau committed Oct 29, 2024
2 parents b93118b + 9a18867 commit 19a08a9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package eu.ibagroup.formainframe.dataops.fetch

import com.intellij.ide.util.treeView.AbstractTreeNode
import com.intellij.openapi.components.service
import com.intellij.openapi.progress.ProcessCanceledException
import com.intellij.openapi.progress.ProgressIndicator
import com.intellij.openapi.vfs.VirtualFile
Expand All @@ -24,6 +23,7 @@ import eu.ibagroup.formainframe.config.connect.ConnectionConfigBase
import eu.ibagroup.formainframe.dataops.DataOpsManager
import eu.ibagroup.formainframe.dataops.Query
import eu.ibagroup.formainframe.dataops.RemoteQuery
import eu.ibagroup.formainframe.dataops.UnitRemoteQueryImpl
import eu.ibagroup.formainframe.dataops.exceptions.CallException
import eu.ibagroup.formainframe.dataops.services.ErrorSeparatorService
import eu.ibagroup.formainframe.utils.castOrNull
Expand Down Expand Up @@ -223,7 +223,8 @@ abstract class RemoteFileFetchProviderBase<Connection : ConnectionConfigBase, Re
}
}

refreshCacheOfCollidingQuery(query, files)
//TODO: the only known evidence to use refresh of colliding query is related to BatchedQuery
query.castOrNull(UnitRemoteQueryImpl::class.java) ?: refreshCacheOfCollidingQuery(query, files)

cache[query] = files
cacheState[query] = CacheState.FETCHED
Expand Down

0 comments on commit 19a08a9

Please sign in to comment.