Skip to content

Commit

Permalink
fix(dashboard): make hashMapping of dispatcher invisible (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
xx01cyx authored Mar 18, 2022
1 parent 49aa92c commit dd006ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rust/meta/src/dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ <h1 class="flex-auto leading-6 font-semibold text-sky-500 dark:text-sky-400">
<div id="message-${mvId}" class="w-full flex flex-row"></div>
</div>`

const dispatcherNode = (node) => (({ hashMapping, ...o }) => o)(node)

/// Remove `input` from node object
const exprNode = (actorNode) => (({ input, ...o }) => o)(actorNode)

Expand Down Expand Up @@ -423,7 +425,7 @@ <h1 class="flex-auto leading-6 font-semibold text-sky-500 dark:text-sky-400">
const selectedActors = actors.actors.filter(actor => fragmentIdOf(actor) == fragmentId)
const actorIds = selectedActors.map(actor => actor.actorId)
if (d.data.operatorId == "dispatcher") {
const nodes = selectedActors.map(actor => ({ dispatcher: actor.dispatcher, downstreamActorId: actor.downstreamActorId }))
const nodes = selectedActors.map(actor => ({ dispatcher: dispatcherNode(actor.dispatcher), downstreamActorId: actor.downstreamActorId }))
showInfo(actorIds, selectedActors, nodes)
} else {
findInfo(actorIds, selectedActors.map(actor => actor.nodes), d.data.operatorId, (actorIds, nodes) => showInfo(actorIds, selectedActors, nodes))
Expand Down

0 comments on commit dd006ec

Please sign in to comment.