Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Feb 28, 2025
1 parent a2010ce commit 49d7311
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,9 @@ export function SharedLinearPileupDisplayMixin(
{
featureId: f,
sessionId,
layoutId: getContainingView(self).id,

// @ts-expect-error
layoutId: getContainingTrack(self).id,
rendererType: 'PileupRenderer',
},
)) as { feature: SimpleFeatureSerialized | undefined }
Expand Down Expand Up @@ -462,7 +464,9 @@ export function SharedLinearPileupDisplayMixin(
{
featureId: f,
sessionId,
layoutId: getContainingView(self).id,

// @ts-expect-error
layoutId: getContainingTrack(self).id,
rendererType: 'PileupRenderer',
},
)) as { feature: SimpleFeatureSerialized | undefined }
Expand Down Expand Up @@ -672,14 +676,14 @@ export function SharedLinearPileupDisplayMixin(
self.setFeatureUnderMouse(undefined)
} else {
const sessionId = getRpcSessionId(self)
const view = getContainingView(self)
const { feature } = (await session.rpcManager.call(
sessionId,
'CoreGetFeatureDetails',
{
featureId,
sessionId,
layoutId: view.id,
// @ts-expect-error
layoutId: getContainingTrack(self).id,
rendererType: 'PileupRenderer',
},
)) as { feature: SimpleFeatureSerialized | undefined }
Expand Down
10 changes: 8 additions & 2 deletions plugins/alignments/src/LinearPileupDisplay/doAfterAttach.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { getContainingView, getSession } from '@jbrowse/core/util'
import {
getContainingTrack,
getContainingView,
getSession,
} from '@jbrowse/core/util'
import { getRpcSessionId } from '@jbrowse/core/util/tracks'
import { isAlive } from 'mobx-state-tree'

Expand Down Expand Up @@ -68,7 +72,9 @@ export function doAfterAttach(model: {
adapterConfig,
rendererType: rendererType.name,
sessionId: getRpcSessionId(model),
layoutId: view.id,

// @ts-expect-error
layoutId: getContainingTrack(model).id,
timeout: 1_000_000,
statusCallback: (arg: string) => {
model.setMessage(arg)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { readConfObject } from '@jbrowse/core/configuration'
import {
assembleLocString,
getContainingDisplay,
getContainingView,
getContainingTrack,
getSession,
getViewParams,
makeAbortableReaction,
Expand Down Expand Up @@ -283,7 +283,9 @@ export function renderBlockData(
readConfObject(config)

const sessionId = getRpcSessionId(display)
const layoutId = getContainingView(display).id
// @ts-expect-error
const layoutId = getContainingTrack(display).id

const cannotBeRenderedReason = display.regionCannotBeRendered(self.region)

return {
Expand Down

0 comments on commit 49d7311

Please sign in to comment.