Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ijabbott committed Sep 21, 2023
1 parent ae38836 commit 6b1c04e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ defmodule Andi.Event.EventHandlerTest do
DateTime.utc_now(),
-9 * 3600 * 24,
:second
),
),
:second
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ defmodule AndiWeb.DatasetLiveViewTest do
refute Enum.empty?(Floki.find(table_row, ".dataset__status--success"))
end

test "shows partial success when there is not a current message error on the dataset and there is an error in the last 7 days", %{conn: conn} do
test "shows partial success when there is not a current message error on the dataset and there is an error in the last 7 days", %{
conn: conn
} do
dataset = TDG.create_dataset(%{})
{:ok, andi_dataset} = Datasets.update(dataset)
current_time = DateTime.utc_now()
Expand Down
3 changes: 2 additions & 1 deletion apps/forklift/lib/forklift/data_writer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,15 @@ defmodule Forklift.DataWriter do
write_timing <-
Data.Timing.new(@instance_name, "presto_insert_time", write_start, write_end) do
if ingestion_complete? do

DataMigration.compact(dataset, ingestion_id, extraction_start_time)

event_data = create_event_log_data(dataset.id, ingestion_id)
Brook.Event.send(@instance_name, event_log_published(), :forklift, event_data)
IO.inspect("test test")

ingestion_complete_data =
create_ingestion_complete_data(dataset.id, ingestion_id, length(data_to_write), extraction_start_time)

IO.inspect(ingestion_complete_data, label: "extraction count")
Brook.Event.send(@instance_name, ingestion_complete(), :forklift, ingestion_complete_data)
IO.inspect("huh")
Expand Down
4 changes: 3 additions & 1 deletion apps/forklift/test/unit/forklift/data_writer_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ defmodule Forklift.DataWriterTest do
payload: end_of_data()
)

fake_data = [TDG.create_data(%{"test1" => "test1Data"}), TDG.create_data(%{"test2" => "test2Data"}), end_of_data] |> IO.inspect(label: "fake data")
fake_data =
[TDG.create_data(%{"test1" => "test1Data"}), TDG.create_data(%{"test2" => "test2Data"}), end_of_data]
|> IO.inspect(label: "fake data")

message_count = length(fake_data) - 1

Expand Down

0 comments on commit 6b1c04e

Please sign in to comment.