Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release version to master #353

Merged
merged 109 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
6056e50
Add pdf service detection method
ZIMkaRU Jan 8, 2024
d25d78b
Rework api methods for report file generation
ZIMkaRU Jan 8, 2024
f790bc9
Add GrcPDFAvailabilityError class
ZIMkaRU Jan 8, 2024
a44cd99
Rework service argsv options
ZIMkaRU Jan 8, 2024
5579b12
Rework get-local-csv-folder-paths helper
ZIMkaRU Jan 8, 2024
d78f32c
Rework generate-report-file module
ZIMkaRU Jan 8, 2024
db6cb00
Expand gitignore
ZIMkaRU Jan 8, 2024
10e34d1
Rename getCsvArgs helper to getReportFileArgs
ZIMkaRU Jan 10, 2024
92ff88a
Rename FindMethodToGetCsvFileError class to FindMethodToGetReportFile…
ZIMkaRU Jan 10, 2024
a7f0c14
Rework ReportFileJobData module
ZIMkaRU Jan 10, 2024
02301f9
Change isAddedUniqueEndingToReportFileName config name
ZIMkaRU Jan 11, 2024
3690607
Rename remoteReportUrn argv option
ZIMkaRU Jan 11, 2024
9bc2747
Rename caller name for report file writer
ZIMkaRU Jan 11, 2024
1983f29
Refactor moveFileToLocalStorage helper
ZIMkaRU Jan 11, 2024
df2897e
Rework params schema for support pdf
ZIMkaRU Jan 17, 2024
a5459ac
Rework params checker for support pdf
ZIMkaRU Jan 17, 2024
085d7b8
Add ability to require pdf for multi-export
ZIMkaRU Jan 18, 2024
00c1e4e
Add isPDFRequired flag to param schema
ZIMkaRU Jan 18, 2024
86f018e
Add ability to set pdf ext for report processor
ZIMkaRU Jan 18, 2024
bc095cf
Move report-file-ext-name getter into separate helper
ZIMkaRU Jan 18, 2024
ac6b4dc
Set correct ext name to complete file name
ZIMkaRU Jan 18, 2024
f9e97d4
Rework report files metadata
ZIMkaRU Jan 18, 2024
224d0be
Add helper to get content mime type
ZIMkaRU Jan 19, 2024
5d93cea
Add ability to upload pdf to s3
ZIMkaRU Jan 19, 2024
622d209
Improve email translation
ZIMkaRU Jan 19, 2024
b1f4722
Add temp pdf to gitignore
ZIMkaRU Jan 19, 2024
f4e272d
Rename method tester for getting report file
ZIMkaRU Jan 19, 2024
068c627
Rework test cases to use non-deprecated methods
ZIMkaRU Jan 19, 2024
5643545
Add mock rest:ext:pdf
ZIMkaRU Jan 22, 2024
f352ea5
Fix param schema for multi export
ZIMkaRU Jan 23, 2024
d9c742b
Implement pdf writer service
ZIMkaRU Jan 23, 2024
9d4bbca
Inject pdf writer service to di
ZIMkaRU Jan 23, 2024
75d9d1d
Use pdf writer in report file processor
ZIMkaRU Jan 23, 2024
8a030f0
Add common translater for pug view templates
ZIMkaRU Jan 24, 2024
78b56db
Add common language normalizer for translations
ZIMkaRU Jan 24, 2024
8e59510
Use common translater for email view template
ZIMkaRU Jan 24, 2024
7ed8bf6
Add base translations for pdf writer
ZIMkaRU Jan 24, 2024
08040e0
Add ability to translate templater for pdf writer
ZIMkaRU Jan 24, 2024
0da7fe9
Add base template for pdf writer
ZIMkaRU Jan 25, 2024
1897c0a
Add template for main endpoints for pdf writer
ZIMkaRU Jan 25, 2024
7e63a21
Add available template file names
ZIMkaRU Jan 25, 2024
2931686
Add translations
ZIMkaRU Jan 25, 2024
51e8ea7
Add template rendering flow for pdf
ZIMkaRU Jan 25, 2024
426a5ff
Add root folder path to di
ZIMkaRU Jan 26, 2024
33d6b26
Add ability to write res obj to stream for fax report pdf
ZIMkaRU Jan 26, 2024
30b38b9
Rework pdf creator to be able to inherit templates in framework
ZIMkaRU Jan 26, 2024
6e95e3a
Add bfx logo to base pdf template
ZIMkaRU Jan 26, 2024
0735f11
Improve base pdf template
ZIMkaRU Jan 26, 2024
6f77bb7
Improve main pdf template
ZIMkaRU Jan 26, 2024
f17e82b
Add main pdf template styles
ZIMkaRU Jan 26, 2024
27e9b0c
Add pagination for pdf
ZIMkaRU Jan 29, 2024
eeb1b1d
Add pdf table rendering for common reports
ZIMkaRU Jan 29, 2024
a46692e
Pass report columns to pdf templates
ZIMkaRU Jan 29, 2024
f9b3260
Add common pdf styles for table page-breaking rendering
ZIMkaRU Jan 29, 2024
9205362
Add metadata to complete file name getter response
ZIMkaRU Jan 29, 2024
650e62b
Add report name to main pdf template
ZIMkaRU Jan 29, 2024
d3a28f7
Add timestamp to pdf from common complete file name getter
ZIMkaRU Jan 29, 2024
0911c5a
Improve report name color
ZIMkaRU Jan 29, 2024
6c38d57
Fix readable report name for pdf
ZIMkaRU Jan 29, 2024
748bf56
Add margins between tables
ZIMkaRU Jan 30, 2024
677a0e5
Add small font size for complicated tables
ZIMkaRU Jan 30, 2024
41d7926
Format data for nested objects for report files
ZIMkaRU Jan 30, 2024
ac867c6
Add text-align modificators
ZIMkaRU Jan 30, 2024
3267836
Fix table responsiveness for pdf
ZIMkaRU Jan 31, 2024
533e8ab
Add ability to set table width by content
ZIMkaRU Jan 31, 2024
f5e1dbb
Uppercase content title for pdf report template
ZIMkaRU Jan 31, 2024
6a5935f
Improve table margins representation for pdf template
ZIMkaRU Jan 31, 2024
a1a44dc
Fix multiple report file export for pdf
ZIMkaRU Feb 1, 2024
d2e2bfe
Add Inter font-family files
ZIMkaRU Feb 2, 2024
828ee34
Add font css file template
ZIMkaRU Feb 2, 2024
9adba7a
Inject custom font family as base64 for pdf
ZIMkaRU Feb 2, 2024
2fd2d90
Include custom font styles in base pug template
ZIMkaRU Feb 2, 2024
04bfb1d
Use Inter font family for pdf
ZIMkaRU Feb 2, 2024
d4c385b
Add Copyright rule at bottom of every page
ZIMkaRU Feb 2, 2024
3e94a89
Add ability to overwrite column order for pdf
ZIMkaRU Feb 5, 2024
96c5ddf
Rework templates to support statement details mixin
ZIMkaRU Feb 5, 2024
79bd1c4
Implement statement-details-content block for pdf
ZIMkaRU Feb 5, 2024
6ae314b
Fix regular font-weight
ZIMkaRU Feb 5, 2024
28c5f36
Speed up font rendering
ZIMkaRU Feb 5, 2024
7a8cc22
Add ability to show end timestamp for pdf snapshots
ZIMkaRU Feb 6, 2024
4e4c3d8
Add translations for pdf footer
ZIMkaRU Feb 6, 2024
5e495a6
Add translations for pdf statement details
ZIMkaRU Feb 6, 2024
6b81a66
Fix margins for pdf page breaks
ZIMkaRU Feb 6, 2024
4413060
Make pdf buffer from received data
ZIMkaRU Feb 6, 2024
5c68454
Fix handling csv string in method name for back compatibility
ZIMkaRU Feb 7, 2024
dae5092
Rework pdf templates to support electron api
ZIMkaRU Feb 8, 2024
f46bd77
Rework pdf styles to support electron api
ZIMkaRU Feb 8, 2024
2967a2f
Add support for html file ext for pdf temp file generation
ZIMkaRU Feb 9, 2024
1be16b4
Add test cases for report file generations
ZIMkaRU Feb 12, 2024
52a9fda
Add test coverage for pdf reports
ZIMkaRU Feb 12, 2024
5b6d45c
Fix default language translation
ZIMkaRU Feb 12, 2024
0dc82d5
Fix default translation for non-found lang
ZIMkaRU Feb 13, 2024
1da7550
Apply test coverage for getTickersHistoryFile
ZIMkaRU Feb 13, 2024
cb91dfc
Merge pull request #347 from ZIMkaRU/feature/add-support-for-pdf-reports
ezewer Feb 20, 2024
4d2917c
Add detection bfx auth error
ZIMkaRU Feb 20, 2024
8328e73
Merge pull request #348 from ZIMkaRU/bugfix/add-detection-bfx-auth-error
ezewer Feb 21, 2024
3eaaad1
Set header/footer height into html-pdf lib
ZIMkaRU Feb 29, 2024
b632197
Move statement details section under logo for pdf reports
ZIMkaRU Feb 29, 2024
f1c50d7
Normalize font size in base template
ZIMkaRU Feb 29, 2024
8886ac2
Fix header height consideration
ZIMkaRU Feb 29, 2024
1fbd11a
Improve statement details content placing
ZIMkaRU Mar 1, 2024
222d8aa
Fix common-content-header for phantomjs rendering
ZIMkaRU Mar 1, 2024
35a3e39
Merge pull request #349 from ZIMkaRU/feature/move-statement-details-s…
ezewer Mar 4, 2024
e06210c
Bump version up to 4.9.0
ZIMkaRU Mar 5, 2024
84a51f1
Set 90sec timeout for grc bfx reqests
ZIMkaRU Mar 5, 2024
83506bb
Replace С Cyrillic letter "Es" with C
ezewer Mar 6, 2024
3743a36
Merge pull request #352 from bitfinexcom/fix-isCompress
ezewer Mar 6, 2024
04a2892
Merge pull request #351 from ZIMkaRU/bugfix/set-90sec-timeout-for-grc…
ezewer Mar 6, 2024
ba9e55b
Merge pull request #350 from ZIMkaRU/feature/release-version
ezewer Mar 6, 2024
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ logs/*
db/*
!db/.gitkeep
csv/
report-files/
logs
package-lock.json
workers/loc.api/queue/temp/*.csv
workers/loc.api/queue/temp/*.pdf
workers/loc.api/queue/temp/*.zip
4 changes: 2 additions & 2 deletions config/service.report.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"signedUrlExpireTime": 28800
},
"isSpamRestrictionMode": true,
"isAddedUniqueEndingToCsvName": false,
"isСompress": true,
"isAddedUniqueEndingToReportFileName": false,
"isCompress": true,
"isLoggerDisabled": false
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bfx-report",
"version": "4.8.2",
"version": "4.9.0",
"description": "Reporting tool",
"main": "worker.js",
"license": "Apache-2.0",
Expand Down
26 changes: 13 additions & 13 deletions test/2-api-filter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const {
createMockRESTv2SrvWithDate
} = require('./helpers/helpers.mock-rest-v2')
const {
testMethodOfGettingCsv
testMethodOfGettingReportFile
} = require('./helpers/helpers.tests')

process.env.NODE_CONFIG_DIR = path.join(__dirname, 'config')
Expand Down Expand Up @@ -578,7 +578,7 @@ describe('API filter', () => {
{
args: {
...baseArgs,
method: 'getLedgersCsv',
method: 'getLedgersFile',
params: {
...baseParams,
symbol: ['BTC'],
Expand All @@ -591,7 +591,7 @@ describe('API filter', () => {
{
args: {
...baseArgs,
method: 'getLedgersCsv',
method: 'getLedgersFile',
params: {
...baseParams,
symbol: ['BTC'],
Expand All @@ -604,7 +604,7 @@ describe('API filter', () => {
{
args: {
...baseArgs,
method: 'getLedgersCsv',
method: 'getLedgersFile',
params: {
...baseParams,
symbol: ['BTC'],
Expand All @@ -617,7 +617,7 @@ describe('API filter', () => {
{
args: {
...baseArgs,
method: 'getTradesCsv',
method: 'getTradesFile',
params: {
...baseParams,
symbol: ['tBTCUSD', 'tETHUSD'],
Expand Down Expand Up @@ -645,7 +645,7 @@ describe('API filter', () => {
}
})

it('it should be successfully performed by the getLedgersCsv method', async function () {
it('it should be successfully performed by the getLedgersFile method', async function () {
this.timeout(20000)

const procPromise = queueToPromise(processorQueue)
Expand All @@ -656,7 +656,7 @@ describe('API filter', () => {
.type('json')
.send({
auth,
method: 'getLedgersCsv',
method: 'getLedgersFile',
params: {
symbol: ['BTC'],
end,
Expand All @@ -673,10 +673,10 @@ describe('API filter', () => {
.expect('Content-Type', /json/)
.expect(200)

await testMethodOfGettingCsv(procPromise, aggrPromise, res)
await testMethodOfGettingReportFile(procPromise, aggrPromise, res)
})

it('it should be successfully performed by the getMultipleCsv method', async function () {
it('it should be successfully performed by the getMultipleFile method', async function () {
this.timeout(20000)

const procPromise = queueToPromise(processorQueue)
Expand All @@ -687,13 +687,13 @@ describe('API filter', () => {
.type('json')
.send({
auth,
method: 'getMultipleCsv',
method: 'getMultipleFile',
params: {
email,
language: 'ru',
multiExport: [
{
method: 'getTradesCsv',
method: 'getTradesFile',
symbol: ['tBTCUSD', 'tETHUSD'],
end,
start,
Expand All @@ -707,7 +707,7 @@ describe('API filter', () => {
}
},
{
method: 'getTickersHistoryCsv',
method: 'getTickersHistoryFile',
symbol: 'BTC',
end,
start,
Expand All @@ -723,6 +723,6 @@ describe('API filter', () => {
.expect('Content-Type', /json/)
.expect(200)

await testMethodOfGettingCsv(procPromise, aggrPromise, res)
await testMethodOfGettingReportFile(procPromise, aggrPromise, res)
})
})
18 changes: 9 additions & 9 deletions test/3-report-signature.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const {
createMockRESTv2SrvWithDate
} = require('./helpers/helpers.mock-rest-v2')
const {
testMethodOfGettingCsv
testMethodOfGettingReportFile
} = require('./helpers/helpers.tests')

const signature = `-----BEGIN PGP SIGNATURE-----
Expand Down Expand Up @@ -79,7 +79,7 @@ describe('Signature', () => {
} catch (err) { }
})

it('it should be successfully performed by the getMultipleCsv method', async function () {
it('it should be successfully performed by the getMultipleFile method', async function () {
this.timeout(60000)

const procPromise = queueToPromise(processorQueue)
Expand All @@ -90,21 +90,21 @@ describe('Signature', () => {
.type('json')
.send({
auth,
method: 'getMultipleCsv',
method: 'getMultipleFile',
params: {
email,
isSignatureRequired: true,
multiExport: [
{
method: 'getTradesCsv',
method: 'getTradesFile',
symbol: ['tBTCUSD', 'tETHUSD'],
end,
start,
limit: 1000,
timezone: 'America/Los_Angeles'
},
{
method: 'getTickersHistoryCsv',
method: 'getTickersHistoryFile',
symbol: 'BTC',
end,
start,
Expand All @@ -117,10 +117,10 @@ describe('Signature', () => {
.expect('Content-Type', /json/)
.expect(200)

await testMethodOfGettingCsv(procPromise, aggrPromise, res)
await testMethodOfGettingReportFile(procPromise, aggrPromise, res)
})

it('it should be successfully performed by the getLedgersCsv method', async function () {
it('it should be successfully performed by the getLedgersFile method', async function () {
this.timeout(60000)

const procPromise = queueToPromise(processorQueue)
Expand All @@ -131,7 +131,7 @@ describe('Signature', () => {
.type('json')
.send({
auth,
method: 'getLedgersCsv',
method: 'getLedgersFile',
params: {
symbol: ['BTC'],
end,
Expand All @@ -146,7 +146,7 @@ describe('Signature', () => {
.expect('Content-Type', /json/)
.expect(200)

await testMethodOfGettingCsv(procPromise, aggrPromise, res)
await testMethodOfGettingReportFile(procPromise, aggrPromise, res)
})

it('it should be successfully performed by the verifyDigitalSignature method', async function () {
Expand Down
Loading
Loading