From 9e135c857378385d2ae379136765edf09c05940d Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Mon, 11 Dec 2023 09:51:34 +0200 Subject: [PATCH 1/5] Add exception for database is locked error --- src/error-manager/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/error-manager/index.js b/src/error-manager/index.js index 38258707..c5ce975f 100644 --- a/src/error-manager/index.js +++ b/src/error-manager/index.js @@ -83,7 +83,8 @@ const _isLogSkipped = (log) => { str.includes('ERR_INTERNET_DISCONNECTED') || // Skip error when can't get code signature on mac str.includes('Could not get code signature') || - str.includes('ERR_BFX_API_SERVER_IS_NOT_AVAILABLE') + str.includes('ERR_BFX_API_SERVER_IS_NOT_AVAILABLE') || + str.includes('database is locked') ) ) } From 9ac18f5375d460ce0e578dd96bb5860213298d4c Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Mon, 11 Dec 2023 10:02:09 +0200 Subject: [PATCH 2/5] Add exception for network timeout error --- src/error-manager/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/error-manager/index.js b/src/error-manager/index.js index c5ce975f..f8479831 100644 --- a/src/error-manager/index.js +++ b/src/error-manager/index.js @@ -84,7 +84,8 @@ const _isLogSkipped = (log) => { // Skip error when can't get code signature on mac str.includes('Could not get code signature') || str.includes('ERR_BFX_API_SERVER_IS_NOT_AVAILABLE') || - str.includes('database is locked') + str.includes('database is locked') || + str.includes('network timeout') ) ) } From 51376ec9f533087c453bc8f6a630e0fbedb6c104 Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Tue, 12 Dec 2023 12:57:24 +0200 Subject: [PATCH 3/5] Bump version up to v4.16.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2f8dea9e..e3a0968f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bfx-report-electron", - "version": "4.15.0", + "version": "4.16.0", "repository": "https://github.com/bitfinexcom/bfx-report-electron", "description": "Reporting tool", "author": "bitfinex.com", From df71053919b6cc8f8c8b9d7ba419d9d6f4e8babb Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Tue, 12 Dec 2023 13:00:42 +0200 Subject: [PATCH 4/5] Add changelog for v4.16.0 --- CHANGELOG.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8daabf0b..cfbc0b6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [4.16.0] - 2023-12-13 + +### Added + +- Added the `start` param to the `Summary by Asset` to be able to select a period more than `30d`. PR: [bfx-reports-framework#342](https://github.com/bitfinexcom/bfx-reports-framework/pull/342) +- Added exchange volume and trading fee values to the the `Summary by Asset`. PR: [bfx-reports-framework/pull/344](https://github.com/bitfinexcom/bfx-reports-framework/pull/344) +- Added exceptions for the error modal window. It should cover the follow cases: `database is locked` and `network timeout`. PR: [bfx-report-electron#285](https://github.com/bitfinexcom/bfx-report-electron/pull/285) +- Implemented `ETH2P (ETH2Pending)`, `ETH2R (ETH2Rewards)` and `ETH2U (ETH2Unstaking)` availability in the `Symbol` selector. PR: [bfx-report-ui#740](https://github.com/bitfinexcom/bfx-report-ui/pull/740) +- Implemented dynamic selectable date range support for the `Summary by Asset` section. PR: [bfx-report-ui#741](https://github.com/bitfinexcom/bfx-report-ui/pull/741) +- Implemented representation of `Volume (eligible for fee tier calculation) in the last 30 days` in the `Account Fees` table of the `Summary` page. PR: [bfx-report-ui#743](https://github.com/bitfinexcom/bfx-report-ui/pull/743) +- Implemented displaying the selected period as a subtitle in the `Summary by Asset` section. PR: [bfx-report-ui#745](https://github.com/bitfinexcom/bfx-report-ui/pull/745) + +### Changed + +- Considered the requested `start` time point instead of the existing one in the `ledgers` for the `Account Balance`. The idea is to show users the Account Balance started from the wallet snapshot of the start time point. PR: [bfx-reports-framework#341](https://github.com/bitfinexcom/bfx-reports-framework/pull/341) +- Removed the `Profits` column from the `Summary by Asset` table temporally. PR: [bfx-report-ui#744](https://github.com/bitfinexcom/bfx-report-ui/pull/744) +- Actualized columns for the `Summary by Asset` section. PR: [bfx-report-ui#746](https://github.com/bitfinexcom/bfx-report-ui/pull/746) + +### Fixed + +- Fixed `Account Balance` unrealized profit. The issue is in passing the correct timestamp for currency conversion of PL values of daily positions snapshot. PR: [bfx-reports-framework#340](https://github.com/bitfinexcom/bfx-reports-framework/pull/340) +- Fixed initialization requests order for all reports according to the proposals to prevent received data inconsistency in some cases. PR: [bfx-report-ui#742](https://github.com/bitfinexcom/bfx-report-ui/pull/742) + +### Security + +- Used `max` and `min` utils from the `lib-js-util-base` lib instead of the `lodash`. PRs: [bfx-reports-framework#343](https://github.com/bitfinexcom/bfx-reports-framework/pull/343), [lib-js-util-base#19](https://github.com/bitfinexcom/lib-js-util-base/pull/19) + ## [4.15.0] - 2023-11-29 ### Added From 8c88992b05eab1d48b67ac4b48c79b990020dd5f Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Wed, 13 Dec 2023 15:42:21 +0200 Subject: [PATCH 5/5] Update sub-modules --- bfx-report-ui | 2 +- bfx-reports-framework | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bfx-report-ui b/bfx-report-ui index c707a10f..ad73b589 160000 --- a/bfx-report-ui +++ b/bfx-report-ui @@ -1 +1 @@ -Subproject commit c707a10f3b064fb1ecff263ea7e7a2efc3167fad +Subproject commit ad73b589b065caba5c352c0da6fdeae37e7a038e diff --git a/bfx-reports-framework b/bfx-reports-framework index 1c67784d..0f2e2076 160000 --- a/bfx-reports-framework +++ b/bfx-reports-framework @@ -1 +1 @@ -Subproject commit 1c67784d7470a9876f84637f03ddbecb58354e7a +Subproject commit 0f2e20764e2a376141b9c016ea27e691b7c5749f