Skip to content

Commit

Permalink
use DisplayableEvent in dagit log viewer (#8323)
Browse files Browse the repository at this point in the history
Summary:
There are a bunch of duplicate fields in the logger query that exist on a shared interface - use that interface instead.

Test Plan:
View structured log viewer on a run before and after this PR, no changes
  • Loading branch information
gibsondan committed Jun 10, 2022
1 parent 3a1d95b commit ab62a16
Show file tree
Hide file tree
Showing 11 changed files with 2,739 additions and 2,714 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions js_modules/dagit/packages/core/src/graphql/schema.graphql

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 6 additions & 21 deletions js_modules/dagit/packages/core/src/runs/LogsRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,24 +104,21 @@ export const LOGS_ROW_STRUCTURED_FRAGMENT = gql`
level
stepKey
}
... on MaterializationEvent {
assetKey {
path
}
... on DisplayableEvent {
label
description
metadataEntries {
...MetadataEntryFragment
}
}
... on ObservationEvent {
... on MaterializationEvent {
assetKey {
path
}
label
description
metadataEntries {
...MetadataEntryFragment
}
... on ObservationEvent {
assetKey {
path
}
}
... on RunFailureEvent {
Expand Down Expand Up @@ -166,9 +163,6 @@ export const LOGS_ROW_STRUCTURED_FRAGMENT = gql`
...MetadataEntryFragment
}
}
metadataEntries {
...MetadataEntryFragment
}
}
... on StepExpectationResultEvent {
expectationResult {
Expand All @@ -191,23 +185,14 @@ export const LOGS_ROW_STRUCTURED_FRAGMENT = gql`
... on HandledOutputEvent {
outputName
managerKey
metadataEntries {
...MetadataEntryFragment
}
}
... on LoadedInputEvent {
inputName
managerKey
upstreamOutputName
upstreamStepKey
metadataEntries {
...MetadataEntryFragment
}
}
... on EngineEvent {
metadataEntries {
...MetadataEntryFragment
}
engineError: error {
...PythonErrorFragment
}
Expand Down

0 comments on commit ab62a16

Please sign in to comment.