From 9f9508d82107770424ec3e9ec4e841353049b6d6 Mon Sep 17 00:00:00 2001 From: hunicus <93150691+hunicus@users.noreply.github.com> Date: Fri, 24 Jun 2022 13:55:26 -0400 Subject: [PATCH 1/7] Fix typo in docker docs --- docker/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/README.md b/docker/README.md index 286201548..14b80c19e 100644 --- a/docker/README.md +++ b/docker/README.md @@ -235,7 +235,7 @@ Corresponding `docker-compose.yml` overrides: DATABASE_HOST: "" DATABASE_PORT: "" DATABASE_DATABASE: "" - DATABASE_USERAME: "" + DATABASE_USERNAME: "" DATABASE_PASSWORD: "" ... ``` From 3f75b4c235cdeda4a7ff1eb6312b70a82235dc2d Mon Sep 17 00:00:00 2001 From: Felipe Knorr Kuhn <100320+knorrium@users.noreply.github.com> Date: Fri, 24 Jun 2022 21:51:13 -0700 Subject: [PATCH 2/7] Skip tests when the ops labeled is used --- .github/workflows/cypress.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 369b101ff..ae17a8749 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -3,6 +3,7 @@ name: Cypress Tests on: [push, pull_request] jobs: cypress: + if: "!contains(github.event.pull_request.labels.*.name, 'ops')" runs-on: ${{ matrix.os }} strategy: fail-fast: false From 77e0e98517f5a1b71065e347c9cf9b66741f310f Mon Sep 17 00:00:00 2001 From: Felipe Knorr Kuhn <100320+knorrium@users.noreply.github.com> Date: Fri, 24 Jun 2022 21:56:08 -0700 Subject: [PATCH 3/7] Update test triggers --- .github/workflows/cypress.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index ae17a8749..918434a93 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -1,6 +1,8 @@ name: Cypress Tests -on: [push, pull_request] +on: + pull_request: + types: [ opened, review_requested, synchronize ] jobs: cypress: if: "!contains(github.event.pull_request.labels.*.name, 'ops')" From 43fe03d7b3874fa6b77efa156118d99e7298348a Mon Sep 17 00:00:00 2001 From: Mononaut Date: Fri, 24 Jun 2022 20:06:48 +0000 Subject: [PATCH 4/7] Fix block visualization color for <1 sat/vb txs --- frontend/src/app/components/block-overview-graph/tx-view.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/components/block-overview-graph/tx-view.ts b/frontend/src/app/components/block-overview-graph/tx-view.ts index 5093f480b..03718d79d 100644 --- a/frontend/src/app/components/block-overview-graph/tx-view.ts +++ b/frontend/src/app/components/block-overview-graph/tx-view.ts @@ -140,9 +140,8 @@ export default class TxView implements TransactionStripped { } getColor(): Color { - let feeLevelIndex = feeLevels.slice().reverse().findIndex((feeLvl) => (this.feerate || 1) >= feeLvl); - feeLevelIndex = feeLevelIndex >= 0 ? feeLevels.length - feeLevelIndex : feeLevelIndex; - return hexToColor(mempoolFeeColors[feeLevelIndex - 1] || mempoolFeeColors[mempoolFeeColors.length - 1]); + const feeLevelIndex = feeLevels.findIndex((feeLvl) => Math.max(1, this.feerate) < feeLvl) - 1; + return hexToColor(mempoolFeeColors[feeLevelIndex] || mempoolFeeColors[mempoolFeeColors.length - 1]); } } From 7b13cdaa313c1b7be18f738e4b8afdac0863104a Mon Sep 17 00:00:00 2001 From: nymkappa Date: Sat, 25 Jun 2022 19:06:26 +0200 Subject: [PATCH 5/7] Fixes the minium tx fee bug introduced in ecbd18087b267ba61b74477c973281b740edaf30 --- backend/src/api/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/common.ts b/backend/src/api/common.ts index d1c8cecbb..1dc9f66ea 100644 --- a/backend/src/api/common.ts +++ b/backend/src/api/common.ts @@ -114,7 +114,7 @@ export class Common { totalFees += tx.bestDescendant.fee; } - tx.effectiveFeePerVsize = Math.max(Common.isLiquid() ? 0.1 : 1, totalFees / (totalWeight / 4)); + tx.effectiveFeePerVsize = Math.max(0, totalFees / (totalWeight / 4)); tx.cpfpChecked = true; return { From cd93b721fa9c9d1cbf0b1a672523b3b9fb5bfec8 Mon Sep 17 00:00:00 2001 From: nymkappa Date: Mon, 27 Jun 2022 00:15:11 +0200 Subject: [PATCH 6/7] Fix js crash when loading faq - fix crash when switching tabs with active fragment --- .../app/docs/api-docs/api-docs.component.ts | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/docs/api-docs/api-docs.component.ts b/frontend/src/app/docs/api-docs/api-docs.component.ts index 323eb1ba6..260a701ea 100644 --- a/frontend/src/app/docs/api-docs/api-docs.component.ts +++ b/frontend/src/app/docs/api-docs/api-docs.component.ts @@ -34,13 +34,21 @@ export class ApiDocsComponent implements OnInit, AfterViewInit { private route: ActivatedRoute, ) { } + ngAfterContentChecked() { + if (this.faqTemplates) { + this.faqTemplates.forEach((x) => this.dict[x.type] = x.template); + } + this.desktopDocsNavPosition = ( window.pageYOffset > 182 ) ? "fixed" : "relative"; + } + ngAfterViewInit() { const that = this; - this.faqTemplates.forEach((x) => this.dict[x.type] = x.template); setTimeout( () => { if( this.route.snapshot.fragment ) { this.openEndpointContainer( this.route.snapshot.fragment ); - document.getElementById( this.route.snapshot.fragment ).scrollIntoView(); + if (document.getElementById( this.route.snapshot.fragment )) { + document.getElementById( this.route.snapshot.fragment ).scrollIntoView(); + } } window.addEventListener('scroll', function() { that.desktopDocsNavPosition = ( window.pageYOffset > 182 ) ? "fixed" : "relative"; @@ -90,14 +98,17 @@ export class ApiDocsComponent implements OnInit, AfterViewInit { } targetId = element.hash.substring(1); } - if( this.route.snapshot.fragment === targetId ) { + if( this.route.snapshot.fragment === targetId && document.getElementById( targetId )) { document.getElementById( targetId ).scrollIntoView(); } this.openEndpointContainer( targetId ); } openEndpointContainer( targetId ) { - const tabHeaderHeight = document.getElementById( targetId + "-tab-header" ).scrollHeight; + let tabHeaderHeight = 0; + if (document.getElementById( targetId + "-tab-header" )) { + tabHeaderHeight = document.getElementById( targetId + "-tab-header" ).scrollHeight; + } if( ( window.innerWidth <= 992 ) && ( ( this.whichTab === 'rest' ) || ( this.whichTab === 'faq' ) ) && targetId ) { const endpointContainerEl = document.querySelector( "#" + targetId ); const endpointContentEl = document.querySelector( "#" + targetId + " .endpoint-content" ); From 9880c492a4c6844de4085ae0d21da5b0d57403d5 Mon Sep 17 00:00:00 2001 From: Felipe Knorr Kuhn <100320+knorrium@users.noreply.github.com> Date: Sun, 3 Jul 2022 03:29:09 -0700 Subject: [PATCH 7/7] Ignore pushes to the ops branches --- .github/workflows/cypress.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 918434a93..22031b5db 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -3,6 +3,8 @@ name: Cypress Tests on: pull_request: types: [ opened, review_requested, synchronize ] + branches-ignore: + - 'ops/**' jobs: cypress: if: "!contains(github.event.pull_request.labels.*.name, 'ops')"