From 9064b72abecdf2e509b4a118ffc790bc8b8bb972 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Wed, 12 Jun 2019 15:53:15 +0300 Subject: [PATCH 1/8] remove pending transaction count --- .../controllers/pending_transaction_controller.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/controllers/pending_transaction_controller.ex b/apps/block_scout_web/lib/block_scout_web/controllers/pending_transaction_controller.ex index 95ffe8aa22..c8a52c3596 100644 --- a/apps/block_scout_web/lib/block_scout_web/controllers/pending_transaction_controller.ex +++ b/apps/block_scout_web/lib/block_scout_web/controllers/pending_transaction_controller.ex @@ -52,8 +52,7 @@ defmodule BlockScoutWeb.PendingTransactionController do def index(conn, _params) do render(conn, "index.html", - current_path: current_path(conn), - pending_transaction_count: Chain.pending_transaction_count() + current_path: current_path(conn) ) end From ee0f704c5fe21e41b595b0084e7bc73fe356a843 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Wed, 12 Jun 2019 15:57:04 +0300 Subject: [PATCH 2/8] mix format --- .../controllers/pending_transaction_controller.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/controllers/pending_transaction_controller.ex b/apps/block_scout_web/lib/block_scout_web/controllers/pending_transaction_controller.ex index c8a52c3596..f0f9626f89 100644 --- a/apps/block_scout_web/lib/block_scout_web/controllers/pending_transaction_controller.ex +++ b/apps/block_scout_web/lib/block_scout_web/controllers/pending_transaction_controller.ex @@ -51,9 +51,7 @@ defmodule BlockScoutWeb.PendingTransactionController do end def index(conn, _params) do - render(conn, "index.html", - current_path: current_path(conn) - ) + render(conn, "index.html", current_path: current_path(conn)) end defp get_pending_transactions_and_next_page(options) do From 286fe63b62dc59b70afce145a98002ecab12814b Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Wed, 12 Jun 2019 15:59:59 +0300 Subject: [PATCH 3/8] add CHANGELOG entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1c4814ac3..3558e227e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ - [#2123](https://github.com/poanetwork/blockscout/pull/2123) - fix coins percentage view - [#2119](https://github.com/poanetwork/blockscout/pull/2119) - fix map logging - [#2130](https://github.com/poanetwork/blockscout/pull/2130) - fix navigation +- [#2149](https://github.com/poanetwork/blockscout/pull/2149) - remove pending transaction count ### Chore - [#2127](https://github.com/poanetwork/blockscout/pull/2127) - use previouse chromedriver version From bce04b067b0a73d20c25aa51f8ae0f86ccee9a44 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Wed, 12 Jun 2019 16:12:12 +0300 Subject: [PATCH 4/8] remove pending transaction test --- .../controllers/pending_transaction_controller_test.exs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/apps/block_scout_web/test/block_scout_web/controllers/pending_transaction_controller_test.exs b/apps/block_scout_web/test/block_scout_web/controllers/pending_transaction_controller_test.exs index d535b309f8..d632154294 100644 --- a/apps/block_scout_web/test/block_scout_web/controllers/pending_transaction_controller_test.exs +++ b/apps/block_scout_web/test/block_scout_web/controllers/pending_transaction_controller_test.exs @@ -37,15 +37,6 @@ defmodule BlockScoutWeb.PendingTransactionControllerTest do refute hd(json_response(conn, 200)["items"]) =~ to_string(dropped_replaced.hash) end - test "returns a count of pending transactions", %{conn: conn} do - insert(:transaction) - - conn = get(conn, pending_transaction_path(BlockScoutWeb.Endpoint, :index)) - - assert html_response(conn, 200) - assert 1 == conn.assigns.pending_transaction_count - end - test "works when there are no transactions", %{conn: conn} do conn = get(conn, pending_transaction_path(conn, :index)) From efb74a5d5a39a7161e1ca6ccb03ac07fc9a141a3 Mon Sep 17 00:00:00 2001 From: saneery Date: Wed, 12 Jun 2019 17:26:43 +0300 Subject: [PATCH 5/8] hide dropdown menu then other networks list is empty --- .../lib/block_scout_web/templates/layout/_topnav.html.eex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex index de88489330..73a92c7cfc 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex @@ -77,7 +77,7 @@