nwaku/tests/v2
Sanaz Taheri Boshrooyeh ddf93814fe
Persisting Waku message timestamp & implementing DB migration & convert receiver timestamp data type to float64 (#607)
* adds timestamp to waku message store impl

* stores timestamp as int64

* adds untitest

* stores timestamp as seq of bytes

* minor

* re-orders unittest

* changes receiver timestamp to float64

* unit test for receiver timestamps

* adds comments

* reorder a few lines

* updates changelog

* more updates on changelog

* WIP

* WIP

* adds migration

* more debug messages

* passes the path to the migration scripts from message store module

* adds migration result type

* replaces migrationScripts with migrationScriptsResult

* adds path calculation to the message store

* removes some tests binary file

* removes redundant imports

* comments out user_version assignment in sqlite  init

* more descriptive err messages

* clean up test file

* more info logs

* minor code format

* removes a todo

* minor updates

* remove a binary file

* unit tests for migration utils

* adds split script

* integrates split query to handle scripts with multiple commands

* updates migration script for v1

* updates the v1 migration script

* update user version

* updates script

* fixes a few bugs on the splitScript

* more debug logs

* adds float64 parameter support to sqlite3

* change in timestamp type in the script

* deletes float64 toBytes utils

* enables storage of timestamp as a real number in the sqlite db

* bump up script index

* comment edits

* removes migrate unit test

* adds todo and docstring

* updates changelog

* removes an unused item in .gitignore

* minor

* updates changelog

* organizes imports

* cleans up imports

* WIP

* updates script


fixes a few bugs on the splitScript


more debug logs


adds float64 parameter support to sqlite3


change in timestamp type in the script


deletes float64 toBytes utils

* edits migration util test

* remove an empty test file

* includes migration utils tests in

* deletes unused codes

* tides up imports

* adds range based filter to the filterMigrationScripts

* renames procs: removes Migration

* tides up imports

* edits docstring

* edits docstring

* edits docstring

* removes unused imports

* more clean up

* groups std imports

* updates changelog

* adds docstring for setUserVersion

* adds unittest for the migrate

* Update waku/v2/node/storage/message/waku_message_store.nim

Co-authored-by: RichΛrd <info@richardramos.me>

* Update waku/v2/node/storage/sqlite.nim

Co-authored-by: RichΛrd <info@richardramos.me>

* Update waku/v2/node/storage/sqlite.nim

Co-authored-by: RichΛrd <info@richardramos.me>

* removes split scripts

* fixes a naming issue

* fixes a bug

* fixes a typo

* adds a log re updated user_version

* fixes a proc naming mismatch

* fixes naming mismatch

* more descriptive var names

* adds migration script of the first user version

* moves migration to after persistMessages flag is checked

* deletes unused comment

* fixes a bug

* brings back split script

* adds unit tests for split scripts

* runs scripts one command at a time

* deletes a commented line

* relocates the migrate proc to sqlite.nim

* adds unit test for filter scripts

* adds filterScripts unittest testing varying zero-prefixed user versions

* minor

Co-authored-by: RichΛrd <info@richardramos.me>
2021-06-16 13:23:55 -07:00
..
00002_test.up.sql Persisting Waku message timestamp & implementing DB migration & convert receiver timestamp data type to float64 (#607) 2021-06-16 13:23:55 -07:00
membershipContract.txt Rln relay/membership contract (#359) 2021-02-04 12:10:25 -08:00
poseidonHasher.txt Rln relay/membership contract (#359) 2021-02-04 12:10:25 -08:00
test_jsonrpc_waku.nim Update submodules (#594) 2021-06-09 16:37:08 +02:00
test_message_store.nim Persisting Waku message timestamp & implementing DB migration & convert receiver timestamp data type to float64 (#607) 2021-06-16 13:23:55 -07:00
test_migration_utils.nim Persisting Waku message timestamp & implementing DB migration & convert receiver timestamp data type to float64 (#607) 2021-06-16 13:23:55 -07:00
test_peer_manager.nim Update submodules (#594) 2021-06-09 16:37:08 +02:00
test_peer_storage.nim Add persistent backoff for peers (#497) 2021-04-21 11:36:56 +02:00
test_rln_wrappers.nim Nim wrappers for Rln lib (Key and Params generation) (#373) 2021-02-10 12:51:41 -08:00
test_utils.nim Rln relay/membership contract (#359) 2021-02-04 12:10:25 -08:00
test_waku.nim Bump submodules (#363) 2021-02-02 13:33:59 +02:00
test_waku_bridge.nim Duplicate filtering for bridge (#556) 2021-05-20 18:03:56 +02:00
test_waku_filter.nim Fix redundant use of content topics (#528) 2021-05-05 09:34:40 +01:00
test_waku_keepalive.nim Add ping protocol support and use for keep-alive (#621) 2021-06-15 10:55:47 +02:00
test_waku_lightpush.nim Lightpush protocol cont (#506) 2021-04-24 12:56:37 +08:00
test_waku_pagination.nim Handling initial paging requests over message history of size one (#479) 2021-04-12 10:29:09 -07:00
test_waku_payload.nim Bump chronos and fix exception tracking issues (#436) 2021-03-26 10:52:04 +01:00
test_waku_rln_relay.nim Make rln optional (dependencies and compilation) (#602) 2021-06-08 11:56:32 -07:00
test_waku_store.nim Ft-store: Peer management (#548) 2021-05-19 12:28:09 -07:00
test_waku_swap.nim Add mode to waku swap (#601) 2021-06-15 10:06:36 +08:00
test_waku_swap_contracts.nim Better error handling with Results from interactions with swap-contracts-module (#393) 2021-02-25 10:47:48 +08:00
test_wakunode.nim Update submodules (#594) 2021-06-09 16:37:08 +02:00
test_web3.nim Improvement/bridge improvements (#429) 2021-03-23 10:04:51 +02:00
utils.nim Update submodules (#594) 2021-06-09 16:37:08 +02:00