HAfAH merge requestshttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests2024-01-12T13:05:32Zhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/100Bump haf submodule to haf!4232024-01-12T13:05:32ZMateusz ŻebrakBump haf submodule to haf!423Requires:
- hive!1173
- haf!423
Related:
- https://gitlab.syncad.com/hive/hivemind/-/merge_requests/634Requires:
- hive!1173
- haf!423
Related:
- https://gitlab.syncad.com/hive/hivemind/-/merge_requests/634Mateusz ŻebrakMateusz Żebrakhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/85Bump haf submodule to haf!3342023-09-28T08:44:16ZMateusz ŻebrakBump haf submodule to haf!334Requires:
* schemas!67
* https://gitlab.syncad.com/hive/test-tools/-/merge_requests/165
* hive!1037
* https://gitlab.syncad.com/hive/haf/-/merge_requests/334
Replaces: !84Requires:
* schemas!67
* https://gitlab.syncad.com/hive/test-tools/-/merge_requests/165
* hive!1037
* https://gitlab.syncad.com/hive/haf/-/merge_requests/334
Replaces: !84Mateusz ŻebrakMateusz Żebrakhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/64Minor fixes in account_history_api2023-03-27T18:07:32ZKrzysztof Mochockikmochocki@syncad.comMinor fixes in account_history_api- reference to proper views (not irreversibble tales as before)
- remove unused function- reference to proper views (not irreversibble tales as before)
- remove unused functionKrzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/62Add new type of exception to python and postgrest version of HAfAH2023-02-09T13:44:34ZKrzysztof Mochockikmochocki@syncad.comAdd new type of exception to python and postgrest version of HAfAHKrzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/49Add block_api to postgrest with benchmark and pattern tests2022-11-15T15:59:56ZKrzysztof Mochockikmochocki@syncad.comAdd block_api to postgrest with benchmark and pattern testsKrzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/51Add in run script parametrization of postgres url for postgrest and help2022-10-24T15:46:43ZKrzysztof Mochockikmochocki@syncad.comAdd in run script parametrization of postgres url for postgrest and helpKrzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/43`hive_api.get_version` fixes2022-07-04T15:30:52ZKrzysztof Mochockikmochocki@syncad.com`hive_api.get_version` fixesFix setting and acquiring version by both applications.
In case of [python version](https://gitlab.syncad.com/hive/HAfAH/-/jobs/312211#L625):
```
2022-06-08 12:36:18,124 - performance - ERROR - service is not responding properly to `hiv...Fix setting and acquiring version by both applications.
In case of [python version](https://gitlab.syncad.com/hive/HAfAH/-/jobs/312211#L625):
```
2022-06-08 12:36:18,124 - performance - ERROR - service is not responding properly to `hive_api.get_version` call: `{'msg': 'Expecting value', 'doc': 'jsonrpc=2.0&id=0&method=hive_api.get_version', 'pos': 0, 'end': None, 'lineno': 1, 'colno': 1, 'endlineno': None, 'endcolno': None}`
```
and [postgrest](https://gitlab.syncad.com/hive/HAfAH/-/jobs/312212#L623):
```
2022-06-08 12:32:22,727 - performance - ERROR - service is not responding properly to `hive_api.get_version` call: `{'hint': 'If a new function was created in the database with this name and parameters, try reloading the schema cache.', 'message': 'Could not find the hafah_endpoints.home(id, jsonrpc, method) function in the schema cache'}`
```Krzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/31Add benchmark tests for CI2022-06-08T12:25:27ZKrzysztof Mochockikmochocki@syncad.comAdd benchmark tests for CIKrzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/37Add `get_version` endpoint and version logging2022-06-07T08:49:58ZKrzysztof Mochockikmochocki@syncad.comAdd `get_version` endpoint and version loggingBoth postgREST and python has `hafah.get_version` endpoint whih returns commit hash of current setupBoth postgREST and python has `hafah.get_version` endpoint whih returns commit hash of current setupKrzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/24Responses are more compact2022-06-01T09:01:44ZKrzysztof Mochockikmochocki@syncad.comResponses are more compactin relation to https://gitlab.syncad.com/hive/HAfAH/-/issues/18in relation to https://gitlab.syncad.com/hive/HAfAH/-/issues/18Krzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/36Fixes in python HAfAH responses2022-06-01T08:56:02ZKrzysztof Mochockikmochocki@syncad.comFixes in python HAfAH responsescloses https://gitlab.syncad.com/hive/HAfAH/-/issues/28
related to https://gitlab.syncad.com/hive/HAfAH/-/issues/27
- fixes invalid behaviour of HAfAH for malformed transaction hashes in `get_transaction`
- fixes invalid defaults for f...closes https://gitlab.syncad.com/hive/HAfAH/-/issues/28
related to https://gitlab.syncad.com/hive/HAfAH/-/issues/27
- fixes invalid behaviour of HAfAH for malformed transaction hashes in `get_transaction`
- fixes invalid defaults for filters in `get_account_history`
- fixes invalid processing of NULL and 0 on SQL site for `get_account_history` and `enu_virtual_ops`
- adds more pattern testsKrzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/28Change isolation level from READ UNCOMMITTED to AUTOCOMMIT2022-05-31T17:42:57ZKrzysztof Mochockikmochocki@syncad.comChange isolation level from READ UNCOMMITTED to AUTOCOMMITfixes https://gitlab.syncad.com/hive/HAfAH/-/issues/25
Db status during load test after fixes from this MR:
![image](/uploads/c480b68a6ba80bf9ff67e37ef0a944ae/image.png)fixes https://gitlab.syncad.com/hive/HAfAH/-/issues/25
Db status during load test after fixes from this MR:
![image](/uploads/c480b68a6ba80bf9ff67e37ef0a944ae/image.png)Krzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/33Add support for call style2022-05-24T13:09:25ZKrzysztof Mochockikmochocki@syncad.comAdd support for call styleAdded flag `--call-style` for `performance_test.py` scriptAdded flag `--call-style` for `performance_test.py` scriptKrzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/26single script for performance testing2022-04-29T06:31:06ZKrzysztof Mochockikmochocki@syncad.comsingle script for performance testingScript `tests/performance_test.py` simplifies whole process of benchmarking
- [x] run HAfAH and benchmarks from script
- [x] process and display summary basing on output from both applications, or just benchmark output (less verbose)
- ...Script `tests/performance_test.py` simplifies whole process of benchmarking
- [x] run HAfAH and benchmarks from script
- [x] process and display summary basing on output from both applications, or just benchmark output (less verbose)
- [x] auto managment of CSV files
- [x] fix support for direct SQL calls via jmeter
- [x] remove old scripts
- [x] update README.md with usageKrzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/27Adjust handling of transaction hashes2022-04-22T13:45:34ZKrzysztof Mochockikmochocki@syncad.comAdjust handling of transaction hashesrelated to: https://gitlab.syncad.com/hive/haf/-/merge_requests/107related to: https://gitlab.syncad.com/hive/haf/-/merge_requests/107Krzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/22Simplify filter resolving and remove unnecessary join in get_ops_in_block2022-04-11T11:49:52ZKrzysztof Mochockikmochocki@syncad.comSimplify filter resolving and remove unnecessary join in get_ops_in_blockChanged way of resolving, by removing NUMERIC and using variation of [Kernighan method](https://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetKernighan)
removed trailing spacesChanged way of resolving, by removing NUMERIC and using variation of [Kernighan method](https://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetKernighan)
removed trailing spacesKrzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/14Moved limit-related assertions to SQL functions2022-03-31T14:09:03ZKrzysztof Mochockikmochocki@syncad.comMoved limit-related assertions to SQL functionsSQL functions a will raise exeption if given limit is invalid
Type of _LIMIT has to be changed, so exception messages generated by SQL, matches theese in patternsSQL functions a will raise exeption if given limit is invalid
Type of _LIMIT has to be changed, so exception messages generated by SQL, matches theese in patternsKrzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/20Move implementation of filter processing from python to postgres + log perfor...2022-03-18T19:11:28ZKrzysztof Mochockikmochocki@syncad.comMove implementation of filter processing from python to postgres + log performanceIf proper log level is not set, additional serialization is omittedIf proper log level is not set, additional serialization is omittedKrzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/15Direct SQL serialization2022-03-16T23:05:42ZKrzysztof Mochockikmochocki@syncad.comDirect SQL serializationAdded SQL functions that returns proper json
condenser_api:
- [x] condenser_api.get_transaction
- [x] condenser_api.get_ops_in_block
- [x] condenser_api.get_account_history
account_history_api:
- [x] account_history_api.get_transact...Added SQL functions that returns proper json
condenser_api:
- [x] condenser_api.get_transaction
- [x] condenser_api.get_ops_in_block
- [x] condenser_api.get_account_history
account_history_api:
- [x] account_history_api.get_transaction
- [x] account_history_api.get_ops_in_block
- [x] account_history_api.get_account_history
- [x] account_history_api.enum_virtual_ops
Addresses issue https://gitlab.syncad.com/hive/HAfAH/-/issues/15
This is also prerequisite for next stage of PostgREST integation (which will mostly reuse here done implementations).
rebased onto: https://gitlab.syncad.com/hive/HAfAH/-/merge_requests/11Krzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.comhttps://gitlab.syncad.com/hive/HAfAH/-/merge_requests/11refactoring: removed obsolete code2022-03-03T19:56:31ZKrzysztof Mochockikmochocki@syncad.comrefactoring: removed obsolete coderemoved dead python code
rebased onto: https://gitlab.syncad.com/hive/HAfAH/-/merge_requests/10
@bwrona @Trelaremoved dead python code
rebased onto: https://gitlab.syncad.com/hive/HAfAH/-/merge_requests/10
@bwrona @TrelaKrzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.com