Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e6dcca4
New command: dbt show
aranke Mar 22, 2023
f0ad043
merge main
aranke Mar 22, 2023
eab733f
merge main
aranke Mar 24, 2023
d726061
migrate classes to google proto
aranke Mar 24, 2023
bc09cd7
make proto_types
aranke Mar 24, 2023
f28af9c
fix test_events
aranke Mar 24, 2023
2bcb790
get most tests working
aranke Mar 24, 2023
e0db983
write couple tests for interactive preview
aranke Mar 24, 2023
45a7f1a
Merge branch 'main' into command_show
aranke Mar 24, 2023
3133d22
more fixing and refactoring
aranke Mar 24, 2023
09bec45
get everything except ephemeral models working
aranke Mar 24, 2023
e845b37
remove debug print
aranke Mar 24, 2023
ea6b2b0
fix test_events
aranke Mar 24, 2023
f25b44b
preview ephemeral nodes
aranke Mar 24, 2023
2ff263d
add changelog
aranke Mar 24, 2023
b3cc37d
fix style issue in requires.py
aranke Mar 24, 2023
9a6baa9
Address comments from Jerco
aranke Mar 28, 2023
3f36494
Restore core/dbt/cli/requires.py
Mar 28, 2023
f885193
Merge branch 'main' into command_show
aranke Mar 28, 2023
aac83b5
remove numbers from log
aranke Mar 28, 2023
ac008e0
test agate table for length
aranke Mar 28, 2023
5c96420
use table instead of limit_table
aranke Mar 28, 2023
ffc66bd
don't keep null in seed
aranke Mar 28, 2023
e20af84
remove flaky tests
aranke Mar 28, 2023
0bec7c4
don't test json formatting via string
aranke Mar 28, 2023
310ddf3
simplify show tests
aranke Mar 29, 2023
05fcd34
Fire events for excluded nodes
aranke Apr 4, 2023
b576018
merge from main
aranke Apr 4, 2023
c5d4f11
fix proto_types
aranke Apr 4, 2023
b1f29c1
rename: node -> result
aranke Apr 4, 2023
06fd124
fix if/else, log @ debug
aranke Apr 4, 2023
4309fac
fix args lookup
aranke Apr 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
merge main
  • Loading branch information
aranke committed Mar 22, 2023
commit f0ad0434363610ff5e35883b48c4ea7c280eb32a
16 changes: 16 additions & 0 deletions core/dbt/events/proto_types.py

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

13 changes: 13 additions & 0 deletions core/dbt/events/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1806,6 +1806,19 @@ message CompiledNodeJsonMsg {
CompiledNodeJson data = 2;
}

// Q039
message CommandCompleted {
string command = 1;
bool success = 2;
google.protobuf.Timestamp completed_at = 3;
float elapsed = 4;
}

message CommandCompletedMsg {
EventInfo info = 1;
CommandCompleted data = 2;
}

// W - Node testing

// Skipped W001
Expand Down
10 changes: 10 additions & 0 deletions core/dbt/events/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,16 @@ def message(self) -> str:
return json.dumps({"node": self.node_name, "compiled": self.compiled}, indent=2)


@dataclass
class CommandCompleted(DebugLevel, pt.CommandCompleted):
def code(self):
return "Q039"

def message(self) -> str:
status = "succeeded" if self.success else "failed"
return f"Command `{self.command}` {status} at {self.completed_at} after {self.elapsed:0.2f} seconds"


# =======================================================
# W - Node testing
# =======================================================
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.