lash
c0534ede1b
Strip scheme from connstring in gdbm
2025-01-15 00:32:56 +00:00
lash
24e729d275
Fix untidy go mod
2025-01-15 00:11:11 +00:00
lash
ae6e2a99c5
upgrade vise dep
2025-01-15 00:09:14 +00:00
lash
7ca3974371
Enable fs, mem in storageservice
2025-01-15 00:08:44 +00:00
lash
adbfab3964
Enable conndata fs, mem
2025-01-14 18:57:04 +00:00
lash
5228aef088
Add mem storage service
2025-01-13 21:33:25 +00:00
lash
5bf0a0e858
remove session package
2025-01-13 10:31:42 +00:00
lash
f13dab9a45
Remove docker stuff
2025-01-12 15:54:57 +00:00
lash
3f8e08151a
Add debug string for db type in menuhandler
2025-01-12 15:35:44 +00:00
lash
9e4c65c8b4
Correct storage service interface signature
2025-01-12 12:13:25 +00:00
lash
611c5a8dfc
Rename session handler to request handler
2025-01-12 10:40:23 +00:00
lash
dcf777bf08
Fix missing err in config
2025-01-12 10:24:50 +00:00
lash
ec4ad6e44b
Move out config
2025-01-12 09:37:40 +00:00
lash
5b312f9569
Move out common, util, debug, storage to sarafu-vise
2025-01-12 07:59:03 +00:00
lash
2d89db3a37
Rename http source file
2025-01-11 22:38:38 +00:00
lash
6d8992fe38
Remove remaining devtools cmds
2025-01-11 22:33:03 +00:00
lash
5cffbe5cd8
Remove lang devtool
2025-01-11 22:31:21 +00:00
lash
b28a047777
Remove dialoguss reference
2025-01-11 22:29:08 +00:00
lash
2ea51d88d8
Factor out adminstore
2025-01-11 22:21:09 +00:00
lash
2e0e854c4b
Remove last internal package
2025-01-11 21:47:57 +00:00
lash
c93a07832d
Move out API services related code
2025-01-11 16:31:06 +00:00
lash
46bf21b7b8
Remove commented code
2025-01-11 15:16:14 +00:00
lash
dff662663d
Rehabilitate http server test
2025-01-11 08:37:10 +00:00
lash
977d14c529
Properly isolate http session handler
2025-01-11 08:33:52 +00:00
lash
fd6e5caf53
Remove persister chainer for menu handler
2025-01-11 08:08:52 +00:00
lash
840c22ca89
Factor out session handler, introduce entry handler
2025-01-11 08:01:48 +00:00
lash
f939a20543
Remove vise code
2025-01-11 07:23:15 +00:00
lash
8387644019
Export http package
2025-01-10 20:39:36 +00:00
lash
c535938dbc
Move out remaining local handler dependent code
2025-01-10 20:31:34 +00:00
lash
b60d2648ea
Rehabilitate until localhandler
2025-01-10 14:04:23 +00:00
lash
85ede15613
Merge branch 'master' into lash/purify-max
2025-01-10 13:46:52 +00:00
b11f11b5fa
Merge pull request 'refactor: rename files to snake_case' ( #268 ) from konstantinmds/ussd:refactor/148-convert-files-to-snake-case into master
...
Reviewed-on: urdt/ussd#268
2025-01-10 14:40:58 +01:00
3d35a5de78
rename files to snake case
2025-01-10 13:43:49 +01:00
a19ace85f8
refactor: rename files to snake_case
2025-01-10 13:41:23 +01:00
lash
a7a8a482ab
Rehabilitate go test running
2025-01-10 12:03:37 +00:00
lash
d8e7c443b5
Add gettext in exported storage service
2025-01-10 11:54:59 +00:00
lash
5216a9383e
Add service mock missing
2025-01-10 11:49:47 +00:00
lash
6cd639fd19
Add missing pgxpool module
2025-01-10 11:44:15 +00:00
lash
a7ca280964
Merge branch 'master' into lash/purify-max
2025-01-10 11:40:49 +00:00
8f5ed0cd4f
Merge pull request 'postgres-switch-for-tests' ( #255 ) from postgres-switch-for-tests into master
...
Reviewed-on: urdt/ussd#255
2025-01-10 12:07:07 +01:00
lash
f1664a43a8
Rename module, export storage, testutil
2025-01-10 10:53:27 +00:00
c29abfe21e
Merge branch 'master' into postgres-switch-for-tests
2025-01-10 13:43:16 +03:00
9a6d8e5158
Refactored the code to switch between postgres and gdbm, with db cleanup
2025-01-10 13:41:05 +03:00
lash
9ca5091692
Merge branch 'master' into lash/purify-max
2025-01-10 08:56:59 +00:00
db431c750e
Merge pull request 'copy-language-code' ( #264 ) from copy-language-code into master
...
Reviewed-on: urdt/ussd#264
2025-01-10 09:53:17 +01:00
2b9c6d641e
Merge branch 'master' into copy-language-code
2025-01-10 11:06:32 +03:00
lash
b9712098ef
Fix remaining conflict diff
2025-01-09 13:49:50 +00:00
lash
bcf1965a6c
Merge branch 'master' into lash/purify-max
2025-01-09 13:48:39 +00:00
3747f87a7c
test language code saving
2025-01-09 15:11:29 +03:00
1f0568df32
Merge pull request 'Implement connstring handling' ( #247 ) from lash/purify-more into master
...
Reviewed-on: urdt/ussd#247
2025-01-09 13:03:28 +01:00
lash
24c513d4f0
Merge branch 'master' into lash/purify-more
2025-01-09 12:02:17 +00:00
b3fd6f5c1a
Merge pull request 'Rename handler/ussd package' ( #254 ) from konstantinmds/ussd:refactor/24-rename-ussd-to-application into master
...
Reviewed-on: urdt/ussd#254
2025-01-09 13:01:19 +01:00
73eb765408
persist selected language code
2025-01-09 13:14:46 +03:00
f660f6c19a
add key to hold selected langauge code
2025-01-09 13:04:11 +03:00
3fccfaab61
Replace the connStr if it is not set
2025-01-09 13:01:28 +03:00
lash
b50a51df9b
Implement postgres schema
2025-01-09 07:42:09 +00:00
lash
df8c9aab0c
Rehabilitate tests
2025-01-08 22:27:19 +00:00
lash
ddefdd7fb3
Merge branch 'lash/purify-more' into postgres-switch-for-tests
2025-01-08 22:05:12 +00:00
5734011f96
refactor: rename ussd package to application ( #24 )
...
- Rename internal/handlers/ussd directory to application
- Update all imports and references to use new package name
2025-01-08 13:40:00 +01:00
lash
379d98ccd5
Merge branch 'master' into lash/purify-more
2025-01-08 12:32:11 +00:00
f40e11c267
Merge pull request 'account-pin-block-v2' ( #256 ) from account-pin-block-v2 into master
...
Reviewed-on: urdt/ussd#256
2025-01-08 13:30:39 +01:00
b698f08136
chore: add space after punctuation
2025-01-08 15:27:10 +03:00
4d7589ad95
Merge branch 'master' into lash/purify-more
2025-01-08 13:07:50 +01:00
efdb52bccd
chore: add space after punctuation
2025-01-08 14:54:58 +03:00
2ff9fed3c5
chore: rename countIncorrectPINAttempts to incrementIncorrectPINAttempts
2025-01-08 14:54:57 +03:00
477b4cf8f6
chore : rename remainingPINAttempts to currentWrongPinAttemptsCount
2025-01-08 14:54:57 +03:00
ed6651697a
chore : add variable description to AllowedPINAttempts
2025-01-08 14:54:56 +03:00
c359d99075
Merge branch 'master' into account-pin-block-v2
2025-01-08 10:00:46 +01:00
8d477356f3
update tests
2025-01-08 11:47:55 +03:00
7f3294a8a2
update tests
2025-01-08 11:47:41 +03:00
4b5f08e25e
Merge branch 'master' into postgres-switch-for-tests
2025-01-08 11:06:15 +03:00
ea9cab930e
cleanup the generated test data for the schema
2025-01-08 10:59:22 +03:00
a37f6e6da3
pass the dbschema in the context
2025-01-08 10:57:58 +03:00
f59c3a53ef
allow the BuildConnStr to be accessed by different packages
2025-01-08 10:56:59 +03:00
81c3378ea6
use a flag to pass the schema to the context
2025-01-08 10:55:43 +03:00
46a6d2bc6e
create a schema if it does not exist and use it in the connection
2025-01-08 10:37:47 +03:00
lash
721f80d0f2
Repalce missing context
2025-01-08 07:34:22 +00:00
f49e54a562
Merge pull request 'Space after comma' ( #259 ) from lash/helpcomma into master
...
Reviewed-on: urdt/ussd#259
2025-01-08 07:57:18 +01:00
lash
5081b6d4ce
Space after comma
2025-01-08 06:48:35 +00:00
4d72ae0313
add handler showing a message for a blocked account
2025-01-08 09:30:51 +03:00
4fe64a7747
show message for a blocked account
2025-01-08 09:29:00 +03:00
3004698d5b
add a message for a blocked account
2025-01-08 09:28:31 +03:00
50c7ff1046
register handler to show blocked account message
2025-01-08 09:27:45 +03:00
07b061a68b
remove blocked account templates
2025-01-08 09:26:53 +03:00
6339f0c2e5
Merge branch 'master' into lash/purify-more
2025-01-07 17:58:19 +01:00
lash
1fa830f286
Add auth conn string to ssh, use connstr for execs
2025-01-07 13:51:26 +00:00
64fba91670
catch blocked account
2025-01-07 14:38:44 +03:00
c15958a1ad
reset incorrect pin attempts on correct entry
2025-01-07 14:32:44 +03:00
ee442daefa
add blocked account node
2025-01-07 14:03:53 +03:00
656052dc74
Merge pull request 'trim any leading whitespace in the input' ( #258 ) from send-input-fix into master
...
release / docker (push) Has been cancelled
Reviewed-on: urdt/ussd#258
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
2025-01-07 10:33:20 +01:00
6c5873da6f
trim any leading whitespace in the input
2025-01-07 12:15:15 +03:00
11d30583a4
map content of reset_incorrect and catch blocked account
2025-01-07 10:50:30 +03:00
f83f539046
add node to show remaining pin attempts
2025-01-07 10:48:59 +03:00
562bd4fa24
check for incorrect pin
2025-01-06 22:54:31 +03:00
90df0eefc3
add value for allowed number of PIN attempts
2025-01-06 22:53:59 +03:00
b37f2a0a11
add flag for when an account has been blocked
2025-01-06 21:06:54 +03:00
68e4c9af03
add key for incorrect pin attempts
2025-01-06 21:00:34 +03:00
c12e867ac3
add a db flag to specify the database of choice
2025-01-06 15:06:25 +03:00
79de0a9092
pass the base directory to load the .env file
2025-01-06 14:54:04 +03:00
3ee15497a5
specify the base directory for loading the .env file
2025-01-06 14:50:39 +03:00
lash
e09e324a50
Merge branch 'lash/purify-more' into lash/purify-max
2025-01-06 09:03:30 +00:00
lash
599815c343
Fix remaining conflict in cmd cli
2025-01-06 09:00:41 +00:00
lash
462c0d7677
Merge branch 'master' into lash/purify-more
2025-01-06 08:59:42 +00:00
80b96e9bf6
Merge pull request 'Add gettext capability to template and menu resources' ( #239 ) from lash/gettext into master
...
Reviewed-on: urdt/ussd#239
2025-01-06 09:49:53 +01:00
b5561decd1
Merge branch 'master' into lash/gettext
2025-01-06 09:48:33 +01:00
lash
02823fd64e
Merge branch 'lash/ssh-fixes' into lash/purify-more
2025-01-06 08:47:49 +00:00
lash
cd575c2edb
Merge remote-tracking branch 'urdt' into lash/purify-more
2025-01-06 08:46:01 +00:00
f3d4f35718
Merge pull request 'Factor out db dump formatting' ( #243 ) from lash/dump-format into master
...
Reviewed-on: urdt/ussd#243
2025-01-06 09:44:29 +01:00
52787bdb4d
Merge branch 'master' into lash/dump-format
2025-01-06 09:42:26 +01:00
lash
f8d8f265f1
Merge upstream
2025-01-06 08:40:50 +00:00
lash
9371b52f3e
Merge branch 'lash/ssh-fixes' into lash/purify-max
2025-01-06 08:39:40 +00:00
lash
563000ec15
Merge branch 'lash/purify-more' into lash/purify-max
2025-01-06 08:38:05 +00:00
824d39908b
ci: fix missing ssh dir
2025-01-06 11:19:36 +03:00
lash
52fd1eced2
Enable env, config, db in ssh
2025-01-06 08:11:37 +00:00
a312ea5b84
feat: inject build string in ssh binary, expose default ssh port
2025-01-06 11:09:51 +03:00
lash
5c7a535288
Merge branch 'lash/purify-more' into lash/ssh-fixes
2025-01-06 07:55:40 +00:00
4836162f40
ci: add ssh build
2025-01-06 10:51:20 +03:00
lash
cc2f7b41df
Merge branch 'master' into lash/purify-more
2025-01-06 07:50:55 +00:00
lash
d39740a09a
Edit ssh cli help text
2025-01-06 07:41:24 +00:00
lash
2024cc96e2
Bring up-to-date with refactor
2025-01-06 07:22:58 +00:00
lash
d2d878d5d7
Merge branch 'master' into lash/ssh-4
2025-01-06 07:12:00 +00:00
c995143543
Merge pull request 'log-session-id-at-sessionid' ( #251 ) from log-session-id-at-sessionid into master
...
Reviewed-on: urdt/ussd#251
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
2025-01-06 08:01:20 +01:00
44570e20ef
remove unused context key :- at-session-id
2025-01-06 09:59:47 +03:00
362eb209ef
add SessionId to context key
2025-01-06 09:54:28 +03:00
c69d3896f1
pass context as an argument,rename context keys
2025-01-06 08:52:53 +03:00
974af6b2a7
pass context as an argument
2025-01-06 08:50:53 +03:00
lash
bb4037e73f
Add languages env example
2025-01-05 21:25:09 +00:00
lash
739fd90dfd
Expose httpmocks
2025-01-05 21:04:21 +00:00
lash
6789c4f550
Export handlers
2025-01-05 11:17:58 +00:00
lash
437f73827d
Rehabilitate all tets
2025-01-05 09:54:19 +00:00
lash
f0a4a0df61
Correct package name in errors, add state store getter
2025-01-05 07:19:25 +00:00
lash
bd604219b8
WIP Factor out request, errors
2025-01-04 22:27:46 +00:00
lash
51b6fc0dde
Remove unused methods in storage interfaces, improve logs
2025-01-04 21:13:39 +00:00
lash
cc9760125a
Remove unnecessary connection chain step
2025-01-04 21:02:08 +00:00
lash
3a9f3fa373
Update env example
2025-01-04 20:54:51 +00:00
lash
89c21847b9
Improve error message
2025-01-04 20:52:49 +00:00
lash
450dfa02cc
Refactor to use conndata as menustorageservice conn arg
2025-01-04 20:36:18 +00:00
lash
f61e65f4fe
Rename accountservice testservice source file
2025-01-04 13:24:14 +00:00
lash
a4d6cef9c0
Remove commented code
2025-01-04 13:21:31 +00:00
lash
2992f7ae8e
Update executables with new conn str
2025-01-04 13:19:30 +00:00
lash
dc61d05584
WIP revert connstr gdbm to dir only, add file as table spec
2025-01-04 12:16:28 +00:00
lash
83857026d3
Merge branch 'master' into lash/dump-format
2025-01-04 10:00:25 +00:00
lash
349051b5ef
Merge branch 'master' into lash/gettext
2025-01-04 09:59:26 +00:00
47b5ff0435
Merge pull request 'Improve separation of concerns in all modules, phase 1' ( #246 ) from lash/purify into master
...
Reviewed-on: urdt/ussd#246
2025-01-04 10:56:17 +01:00
lash
e92e498726
Merge branch 'lash/purify' into lash/purify-more
2025-01-04 09:46:18 +00:00
lash
25867cf05e
Rehabilitate voucher test
2025-01-04 09:42:36 +00:00
lash
c3cbe1cd92
Add connstr to last executable
2025-01-04 09:41:24 +00:00
lash
418080d093
Merge branch 'lash/purify' into lash/purify-more
2025-01-04 09:38:23 +00:00
lash
2e30739ec9
Implement connstr
2025-01-04 09:37:12 +00:00
d5a2680500
make context accessible
2025-01-04 12:02:45 +03:00
lash
dc1674ec55
WIP add connection string parser
2025-01-04 08:40:43 +00:00
lash
d950b10b50
Move prefix db spec to separate package
2025-01-04 08:37:28 +00:00
lash
bcb3ab905e
Move db related to own package
2025-01-04 08:09:18 +00:00
lash
3ed9caf16d
Factor out request parsers
2025-01-04 08:02:44 +00:00
lash
86464c31d2
Merge branch 'master' into lash/purify
2025-01-04 07:57:54 +00:00
5ee10d8e14
Merge pull request 'logs-at-sessionid' ( #245 ) from logs-at-sessionid into master
...
release / docker (push) Has been cancelled
Reviewed-on: urdt/ussd#245
2025-01-04 08:56:09 +01:00
62f3681b9e
define context keysessionid using go-vise --withcontext
2025-01-04 10:40:26 +03:00
3ce1435591
extract session id from africastalking request
2025-01-04 10:38:25 +03:00
f65c458daa
update go-vise.
2025-01-04 10:35:59 +03:00
lash
67007fcd48
Factor out gdbm package
2025-01-04 07:35:28 +00:00
lash
f1b258fa6d
Factor out at code
2025-01-04 07:29:22 +00:00
lash
daec816a3e
Move store devtools location
2025-01-03 17:21:52 +00:00
lash
ac0c43cb43
Factor out formatting method
2025-01-03 17:18:23 +00:00
lash
9013cc3618
Improve error messages
2025-01-03 15:10:20 +00:00
lash
056d056613
Add language source and template file generator
2025-01-03 14:43:08 +00:00
lash
e581ec4771
Merge tag 'v0.8.0-beta.4' into lash/gettext
2025-01-03 10:29:17 +00:00
lash
e16b7445e8
Move arg var to same spot as other runners
2025-01-03 10:28:27 +00:00
lash
1b12f0ba5f
Add po language alternative to all runners
2025-01-03 10:00:52 +00:00
d2fce05461
Merge pull request 'fix: language change' ( #242 ) from language-change-fix into master
...
release / docker (push) Has been cancelled
Reviewed-on: urdt/ussd#242
2025-01-03 09:30:27 +01:00
68ac237449
Merge branch 'master' into language-change-fix
2025-01-03 09:28:48 +01:00
162e6c1934
fix: language change
2025-01-03 11:26:56 +03:00
8bd025f2b2
Merge pull request 'hash-pin' ( #235 ) from hash-pin into master
...
release / docker (push) Has been cancelled
Reviewed-on: urdt/ussd#235
2025-01-03 09:25:26 +01:00
9d6e25e184
revert to previous state for the adminstore
2025-01-03 11:24:24 +03:00
c26f5683f6
removed second unused argument
2025-01-03 11:17:09 +03:00
91dc9ce82f
tests: add sample pin/hash pair from migration dataset
2025-01-03 11:10:07 +03:00
0fe48a30fa
Merge branch 'master' into hash-pin
2025-01-03 06:58:41 +03:00
lash
c1e0617bb3
Update go-vise
2025-01-02 21:13:06 +00:00
lash
6723884103
Update go-vise
2025-01-02 21:02:01 +00:00
lash
b888af446d
update govise
2025-01-02 18:49:16 +00:00
lash
43b2c3b78d
Rehabilitate gettext resource
2025-01-02 18:13:37 +00:00
lash
d67853f6d9
Merge branch 'master' into lash/gettext
2025-01-02 14:53:18 +00:00
58edfa01a2
Merge pull request 'menu-primary-selectors' ( #237 ) from menu-primary-selectors into master
...
release / docker (push) Has been cancelled
Reviewed-on: urdt/ussd#237
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
2025-01-02 15:50:42 +01:00
3830c12a57
update tests
2025-01-02 17:42:03 +03:00
f1fd690a7b
update expected content
2025-01-02 17:37:26 +03:00
lash
06230dc557
Add todo comment
2025-01-02 14:31:13 +00:00
491b7424a9
point to the correct ./devtools/admin_numbers directory
2025-01-02 16:01:19 +03:00
29ce4b83bd
added tests for HashPIN and VerifyPIN
2025-01-02 15:22:07 +03:00
ca8df5989a
updated expected age in test
2025-01-02 15:15:52 +03:00
82b4365d16
hash the PIN in TestAuthorize
2025-01-02 14:38:22 +03:00
98db85511b
hash the PIN in the ResetOthersPin function
2025-01-02 14:37:45 +03:00
99a4d3ff42
verify the PIN input against the hashed PIN
2025-01-02 13:51:57 +03:00
d95c7abea4
return if the PIN is not a match, and hash the PIN before saving it
2025-01-02 13:45:18 +03:00
fd1ac85a1b
add code to Hash and Verify the PIN
2025-01-02 13:43:38 +03:00
c899c098f6
updated the expected age
2025-01-02 13:20:01 +03:00
5ca6a74274
move PIN test to the common package
2025-01-02 13:18:49 +03:00
48d63fb43f
added pin.go to contain all PIN related functionality
2025-01-02 13:16:38 +03:00
lash
6ee2c88fe2
Implement gettext spec in local vm cmd
2025-01-02 09:39:49 +00:00
e666c58644
start primary selectors with 1
2025-01-02 12:17:28 +03:00
e980586910
chore: repeat same node on invalid menu choice
2025-01-02 12:15:57 +03:00
ffd5be1f1f
add quit option on view profile
2025-01-02 12:12:52 +03:00
ed1aeecf7d
Merge pull request 'Legible dumper' ( #232 ) from lash/dump-key-prefix into master
...
release / docker (push) Has been cancelled
Reviewed-on: urdt/ussd#232
2024-12-31 09:56:04 +01:00
3b69f3d38d
Merge branch 'master' into lash/dump-key-prefix
2024-12-31 09:55:40 +01:00
lash
cd58f5ae33
Upgrade govise
2024-12-31 08:55:25 +00:00
7a535f796a
output the value as a string
2024-12-31 11:41:04 +03:00
7c4c73125e
Merge pull request 'force-restart-state' ( #223 ) from force-restart-state into master
...
Reviewed-on: urdt/ussd#223
2024-12-31 09:34:44 +01:00
lash
c7dbe1d88f
Remove obsolete subprefix strings
2024-12-31 08:30:08 +00:00
4ea52bf3fb
removed unused code
2024-12-31 11:16:43 +03:00
be2ea3a2f0
removed the non-working restart_state devtool
2024-12-31 10:51:29 +03:00
8217ea8fdc
Merge branch 'master' into force-restart-state
2024-12-31 05:06:26 +03:00
3c73fc7188
added a test for the Init func with the different states
2024-12-31 05:05:39 +03:00
1311a0cab9
use the 'send_with_invite' test group in the menu traversal test
2024-12-31 02:36:28 +03:00
lash
3bcd48e5a7
Update govise
2024-12-30 19:58:34 +00:00
lash
0e12c0ee4e
Add prefix for dumper, format base dump key for pg
2024-12-30 19:35:45 +00:00
3caee98cdb
Merge pull request 'mixed-languages' ( #228 ) from mixed-languages into master
...
Reviewed-on: urdt/ussd#228
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
2024-12-30 09:07:13 +01:00
db7c9bf56d
chore: add colon to enhance formatting.
2024-12-30 08:07:39 +03:00
0a332ec501
chore: ensure swahili language translation.
2024-12-30 08:05:36 +03:00
90367fe53e
Merge pull request 'profile-update-fix' ( #226 ) from profile-update-fix into master
...
Reviewed-on: urdt/ussd#226
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
2024-12-28 16:20:32 +01:00
50c006546c
added code to reset the state and persist it
2024-12-28 13:21:03 +03:00
e8c171a82e
Merge branch 'master' into force-restart-state
2024-12-28 11:46:15 +03:00
58a60f2c81
update expected age in test
2024-12-28 08:51:38 +03:00
0820e1b9f2
Merge branch 'master' into profile-update-fix
2024-12-28 06:30:14 +01:00
46edf2b819
remove
...
redundant catch on pin entry
2024-12-27 16:13:36 +03:00
11eb61ba35
repeat same node on invalid selection
2024-12-27 16:11:09 +03:00
813b92af78
Merge pull request 'issue-205: added comments for menu handlers methods.' ( #218 ) from konstantinmds/ussd:dev/issue-205 into master
...
Reviewed-on: urdt/ussd#218
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
2024-12-27 12:58:00 +01:00
5579991d66
guard profile update after being set
2024-12-27 10:07:05 +03:00
f4f4fdd3ac
issue-205:
...
added comments for menu handlers methods and changed function name to better fit function workings.
2024-12-25 15:59:28 +01:00
be215d3f75
set the code to an empty byte for it to move to the top node
2024-12-20 12:26:07 +03:00
235af3519d
Merge pull request 'add-space-after-colon' ( #211 ) from add-space-after-colon into master
...
release / docker (push) Has been cancelled
Reviewed-on: urdt/ussd#211
2024-12-19 11:35:13 +01:00
1292851226
rename the function to ReplaceSeparatorFunc
2024-12-19 13:32:39 +03:00
dfd0a0994b
Merge branch 'master' into force-restart-state
2024-12-18 22:39:20 +03:00
97fcdda12f
Merge branch 'master' into add-space-after-colon
2024-12-18 22:30:41 +03:00
055c2db790
use a common mockReplaceSeparator func
2024-12-18 22:25:47 +03:00
ecfdab47a8
updated test
2024-12-18 22:21:52 +03:00
fda68231ea
use the replaceSeparator func to format the generated menus
2024-12-18 21:59:09 +03:00
d08afff443
add the replaceSeparator func and pass it to the Handler struct
2024-12-18 21:56:37 +03:00
17ba6a06ba
remove the MenuSeparator from the context
2024-12-18 21:49:42 +03:00
dbd59a4023
Merge pull request 'add link to terms page' ( #217 ) from link-terms-and-conditions into master
...
Reviewed-on: urdt/ussd#217
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
2024-12-18 07:45:48 +01:00
5534706189
reset the state when input is nil
2024-12-17 17:58:08 +03:00
5428626c3f
cleaned up the restart_state
2024-12-17 17:56:56 +03:00
9b33117cb1
add space on expected content
2024-12-17 16:02:35 +03:00
70b2fa4ac2
add spacing after link
2024-12-17 15:46:28 +03:00
fd6ff86579
add link to terms and conditions as expected content
2024-12-17 15:24:15 +03:00
549782f230
add link to terms page
2024-12-17 15:12:38 +03:00
8cf4848b45
Merge pull request 'Userstore dumper tool' ( #153 ) from lash/store-dumper into master
...
release / docker (push) Has been cancelled
Reviewed-on: urdt/ussd#153
2024-12-14 13:02:48 +01:00
9f6c0a1111
Merge branch 'master' into lash/store-dumper
2024-12-14 13:02:38 +01:00
lash
1ab49647f6
Upgrade vise
2024-12-14 12:02:13 +00:00
lash
8d4d8a48e0
Fix compile errors, test errors
2024-12-14 11:56:31 +00:00
7aea2af9a1
updated tests
2024-12-13 11:44:04 +03:00
5cd791aae7
use the MenuSeparator
2024-12-13 11:43:47 +03:00
df5e5f1a4b
properly format the vouchers
2024-12-13 11:40:39 +03:00
64c1fe5276
set the separator as a var and add it to the context
2024-12-13 11:38:10 +03:00
f38ea59569
set the separator as a config and not an arg
2024-12-13 01:10:46 +03:00
6cc285d1e8
add the custom separator to the menu
2024-12-12 21:12:25 +03:00
0d7f7aaca1
use latest commits from go-vise
2024-12-12 21:09:48 +03:00
f8ea2daa73
initialize the restart state devtool
2024-12-12 19:55:01 +03:00
lash
c820e89cb7
Segment tx userdata types, add internals docs
2024-12-11 19:13:13 +00:00
e05f8e7291
update to the latest go-vise changes
2024-12-11 19:46:52 +03:00
2383e8ead3
updated failed menuhandler_test
2024-12-11 19:35:04 +03:00
1a4ee0d3e1
updated the description of the GetTransactionsList function
2024-12-11 19:32:41 +03:00
6f3b30e2fe
Capitalize statement details and add a space after the colon
2024-12-11 19:31:17 +03:00
b1e4b63c6a
Add a space after the colon for vouchers
2024-12-11 19:28:53 +03:00
3129e8210e
Capitalize the transfer statement details
2024-12-11 19:25:38 +03:00
5d8de80a18
Write the error in the response
2024-12-11 18:58:50 +03:00
lash
604c16ec90
Habilitate store dumper
2024-12-08 22:48:39 +00:00
lash
a3e821fb16
Clarify gen cmd example with reverse public key lookup
2024-12-08 21:57:53 +00:00
lash
890f50704f
Add documentation comments for db subprefix types
2024-12-08 21:21:48 +00:00
lash
3416fdf50c
Add keyinfo restore
2024-12-07 23:06:03 +00:00
43892f0d8c
Merge pull request 'profile-edit-traverse' ( #199 ) from profile-edit-traverse into master
...
release / docker (push) Has been cancelled
Reviewed-on: urdt/ussd#199
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
2024-12-05 16:37:37 +01:00
8e6b1e6f52
Merge branch 'master' into profile-edit-traverse
2024-12-05 18:34:29 +03:00
lash
ff943a125c
Merge branch 'master' into lash/store-dumper
2024-12-05 15:30:29 +00:00
9cbbdff993
chore: use profileDataKeys as an array
2024-12-05 18:25:51 +03:00
316358765d
Merge pull request 'data-items-cleanup' ( #203 ) from data-items-cleanup into master
...
Reviewed-on: urdt/ussd#203
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
2024-12-05 16:03:50 +01:00
14737b5f12
Removed redundant naming of transfer related data
2024-12-05 17:58:51 +03:00
caff27b43d
Replace IntToBytes(value int) and ToBytes() with a single ToBytes() function
2024-12-05 17:50:40 +03:00
589a94216b
Use the DATATYPE_USERDATA as the prefix for the NewSubPrefixDb func
2024-12-05 17:02:26 +03:00
a659fb06fa
Added a function to convert int to []byte
2024-12-05 16:58:03 +03:00
f733fe5636
Start the sub prefix data at 256 (0x0100)
2024-12-05 16:31:47 +03:00
18423fcd9c
updated the name of the voucher related data
2024-12-05 16:26:56 +03:00
72a3681767
add test data.
2024-12-05 16:03:08 +03:00
160ccbb220
read test file from test run arg
2024-12-05 14:05:32 +03:00
22f96363ba
add test files
2024-12-05 14:04:56 +03:00
3e7f90733e
update test names
2024-12-05 12:22:29 +03:00
321f038c7c
iterate over a map for the set profile items
2024-12-05 10:52:45 +03:00
7a9de79aae
return nil with error
2024-12-04 21:07:11 +03:00
862830e9de
renamed internal/storage/db.go -> internal/storage/sub_prefix_db.go for clarity
2024-12-04 20:59:46 +03:00
bc0e536d3d
updated failing tests
2024-12-04 20:55:03 +03:00
82884a75a3
Merge branch 'master' into data-items-cleanup
2024-12-04 20:45:38 +03:00
93c44861e0
Use numeric prefixes
2024-12-04 20:42:47 +03:00
4ecfc9de38
removed DATATYPE_USERSUB and replaced with DATATYPE_USERDATA
2024-12-04 20:38:52 +03:00
a84c3e0852
update menu traversal test data
2024-12-04 09:46:16 +03:00
8efed966a0
set flag when location is set
2024-12-04 09:08:47 +03:00
e7c4b5bca7
update tests
2024-12-04 09:08:25 +03:00
ed632248c5
add doc lines and check for back naviagtions
2024-12-04 08:30:07 +03:00
5c202741d6
add handler for catching back navigations
2024-12-04 08:20:43 +03:00
c5ebdbf85b
catch back navigations
2024-12-04 08:20:09 +03:00
c4282a870e
add flag to catch back navigations
2024-12-04 08:19:20 +03:00
91cd6077ce
Merge branch 'master' into profile-edit-traverse
2024-12-03 22:25:47 +03:00
c0ed6fa9c8
catch incorrect pin entries
2024-12-03 21:43:24 +03:00
22c9c3e0f0
Merge pull request 'minor-bug-fixes' ( #177 ) from minor-bug-fixes into master
...
Reviewed-on: urdt/ussd#177
2024-12-03 18:18:23 +01:00
a709d24520
Merge branch 'master' into minor-bug-fixes
2024-12-03 18:16:19 +01:00
e56138e416
Merge pull request 'Clear persister from handler in outer code aswell' ( #200 ) from lash/persister-freakout into master
...
Reviewed-on: urdt/ussd#200
2024-12-03 17:18:11 +01:00
lash
d516584d90
Clear persister from handler in outer code aswell
2024-12-03 16:16:53 +00:00
b420a9bba0
set flag if profile data is set
2024-12-03 17:41:06 +03:00
a20ab79355
explicit reload save gender
2024-12-03 17:38:20 +03:00
e0ec15b272
allow sequential profile edit
2024-12-03 14:40:57 +03:00
9e998f9a29
add a zero pad value to unfilled profile item
2024-12-03 14:37:55 +03:00
1c7c0af712
catch next unset profile item
2024-12-03 14:36:48 +03:00
d40a4a171f
formatted code
2024-12-03 14:12:47 +03:00
ba430a5849
add a separate function to handle ConstructName
2024-12-03 14:10:05 +03:00
0f21b01813
resolved error in the TestViewVoucher
2024-12-03 13:37:00 +03:00
10586baf0d
resolved error in the TestCheckBalance
2024-12-03 13:35:14 +03:00
e979742424
resolved error in the TestValidateRecipient
2024-12-03 13:32:18 +03:00
ff3f049226
updated the CheckAliasAddress mock
2024-12-03 13:31:30 +03:00
13b45c49da
Merge branch 'master' into minor-bug-fixes
2024-12-03 12:58:26 +03:00
a72fb08dc8
allow sequential profile edit
2024-12-03 11:20:35 +03:00
944fa89b3c
add profile holder struct
2024-12-03 11:19:38 +03:00
48e1b02e0e
allow all item profile edit
2024-12-02 20:50:21 +03:00
3e0bbe5ffe
add handler to update profile items
2024-12-02 20:35:56 +03:00
fd586d09c3
add required profile edit flags
2024-12-02 20:35:04 +03:00
lash
c2a4efde2b
Merge branch 'master' into lash/store-dumper
2024-12-02 15:39:29 +00:00
b615c27cf6
Merge pull request 'trigger-balance-reload' ( #193 ) from trigger-balance-reload into master
...
release / docker (push) Has been cancelled
Reviewed-on: urdt/ussd#193
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
2024-12-02 16:36:26 +01:00
22e870b3e5
Merge branch 'master' into trigger-balance-reload
2024-12-02 16:36:08 +01:00
da462346f9
Merge pull request 'Always reset persister in handler' ( #194 ) from lash/no-persister-deadlock into master
...
Reviewed-on: urdt/ussd#194
2024-12-02 16:17:36 +01:00
lash
406bd84875
Always reset persister in handler
2024-12-02 14:53:18 +00:00
lash
c9deca1180
change userdata prefix on subprefix debug
2024-12-02 14:36:33 +00:00
419cd185fc
Merge branch 'master' into minor-bug-fixes
2024-12-02 15:25:34 +03:00
7976e237ca
Merge pull request 'voucher-details' ( #179 ) from voucher-details into master
...
Reviewed-on: urdt/ussd#179
Reviewed-by: Alfred Kamanda <alfredkamandamw@gmail.com>
2024-12-02 11:43:30 +01:00
19ec8f0817
Merge branch 'master' into voucher-details
2024-12-02 13:32:32 +03:00
ef3a3d6717
updated the TestGetVoucherDetails
2024-12-02 13:30:33 +03:00
c2019267d1
capitalize the voucher descriptions
2024-12-02 13:26:46 +03:00
0091fbcabb
fix: looped navigation
2024-12-02 09:03:04 +03:00
lash
6d4f3109f8
Consolidate subtyp and typ debug
2024-12-01 23:12:58 +00:00
lash
35cf3a1cd1
Add debug label test, capability debug flag
2024-12-01 18:41:28 +00:00
lash
1a782c1db9
Add debug package
2024-12-01 17:32:06 +00:00
lash
3d2ca606ca
Merge branch 'master' into lash/store-dumper
2024-12-01 16:34:10 +00:00
aa7497573e
removed unused code
2024-11-30 15:29:28 +03:00
54c1fe51ef
update the active voucher data when checking the current vouchers
2024-11-30 15:28:21 +03:00
7a86b2ad3b
updated the UpdateVoucherData description
2024-11-30 15:26:13 +03:00
6b23c284e5
check vouchers before checking the balance
2024-11-30 15:24:14 +03:00
aab6660edd
Capitalize menu items
2024-11-29 15:39:27 +03:00
c46f41e25f
Format the balance to 2 decimal places
2024-11-29 14:47:22 +03:00
00c0445eed
show name without depending on family name being set
2024-11-28 11:42:47 +03:00
c8c6b05b8a
Merge branch 'master' into minor-bug-fixes
2024-11-26 15:31:45 +03:00
08ff1056d7
Validate aliases, addresses and phone numbers in the send menu ( #176 )
...
release / docker (push) Has been cancelled
- Update the phone number regex
- Check whether the recipient is a valid phone number, alias or address
Reviewed-on: urdt/ussd#176
Co-authored-by: alfred-mk <alfredmwaik@gmail.com>
Co-committed-by: alfred-mk <alfredmwaik@gmail.com>
2024-11-26 07:24:57 +01:00
0f4a7e900f
Merge pull request 'feat: upgrade go-vise dep, minor cleanups to go.mod' ( #182 ) from sohail/upgrade-deps into master
...
Reviewed-on: urdt/ussd#182
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
2024-11-26 07:02:07 +01:00
2d6c434bde
feat: upgrade go-vise dep, minor cleanups to go.mod
...
* added stub for Dump()
2024-11-25 09:56:24 +03:00
f5d2644031
Merge pull request 'account-statement' ( #126 ) from account-statement into master
...
Reviewed-on: urdt/ussd#126
2024-11-22 19:24:08 +01:00
09b4fa2860
Merge branch 'master' into account-statement
2024-11-22 19:23:59 +01:00
a748c1b6b2
chore: fix old reference
2024-11-22 11:53:13 +03:00
a17cf78d29
Merge remote-tracking branch 'refs/remotes/origin/minor-bug-fixes' into minor-bug-fixes
2024-11-22 11:35:57 +03:00
9847433e0a
use _ for back navigation
2024-11-22 11:30:13 +03:00
7ce50398d1
use the language translation instead of hardcoded eng
2024-11-21 15:54:00 +03:00
e30bc177e9
fixed typo and added a new translation
2024-11-21 15:52:07 +03:00
b9ff467c0c
use the correct balance
2024-11-21 15:51:04 +03:00
1174500e3f
add test for voucher details
2024-11-21 15:19:36 +03:00
07df450b3c
include labels to define the symbol and balance while selecting a voucher
2024-11-21 15:15:15 +03:00
b8d938d3aa
add voucher details
2024-11-21 13:04:19 +03:00
d1e9340ea9
add voucher details
2024-11-21 13:03:43 +03:00
8925e26c4c
refactor check for valid yob
2024-11-21 11:25:47 +03:00
9b89462797
add function to check validity of provided yob
2024-11-21 11:21:16 +03:00
51bad64a51
Merge branch 'master' into account-statement
2024-11-20 19:00:14 +03:00
7880294c6f
set eng as default language
2024-11-20 17:14:25 +03:00
451b15fb6b
explicit set_language reload
2024-11-20 17:13:14 +03:00
d20700ca74
fix size limit error
2024-11-20 16:39:50 +03:00
9cf1cbe425
add swahili translation for catch node
2024-11-20 16:36:18 +03:00
212cd48249
debug: postgres conn string
release / docker (push) Has been cancelled
2024-11-19 17:53:06 +03:00
7adc0c9c08
fix: Dockerfile to include .env
release / docker (push) Has been cancelled
2024-11-19 17:25:20 +03:00
0a19a6c48b
fix: github ci spec
release / docker (push) Has been cancelled
2024-11-19 17:18:13 +03:00
66b5843b0d
feat: dockerfile and github based CI build for Africastalking variant ( #174 )
...
## Summary
* fixed missing error handler in main
* add injectable build string in main
* add (dynamically linked) docker build
* add github CI workflow
* add extra but useful dev files in dev folder
* closes #93
## Notes
* We'll move to a self-hosted CI runner once it is installed on Gitea.
Reviewed-on: urdt/ussd#174
Co-authored-by: Mohammed Sohail <sohailsameja@gmail.com>
Co-committed-by: Mohammed Sohail <sohailsameja@gmail.com>
2024-11-19 15:15:24 +01:00
df89fe69e1
return to the main node
2024-11-19 17:09:59 +03:00
9498242901
removed debug statement
2024-11-19 16:27:19 +03:00
eab6dbd74c
Check if index is within range
2024-11-19 16:23:35 +03:00
6159686a8e
update function comment
2024-11-19 16:21:55 +03:00
1d82bc2261
added transactions functions
2024-11-19 16:07:28 +03:00
bfcdd79f33
view single statement
2024-11-19 16:04:46 +03:00
d49b68597c
check transactions and catch when none exist
2024-11-19 16:03:54 +03:00
1d9f4fc13e
added statement related flags
2024-11-19 15:50:19 +03:00
6fa0d8e2ff
Merge branch 'master' into account-statement
2024-11-19 10:33:09 +03:00
109a2a2020
Merge pull request 'menu-balances' ( #173 ) from menu-balances into master
...
Reviewed-on: urdt/ussd#173
Reviewed-by: Alfred Kamanda <alfredkamandamw@gmail.com>
2024-11-19 08:18:43 +01:00
bc6d8098f3
updated the failed test
2024-11-19 10:15:34 +03:00
01e75e9217
update test
2024-11-18 17:30:34 +03:00
f2b17880ba
check community and my balance separately
2024-11-18 17:30:09 +03:00
1d4f116079
community balance str
2024-11-18 17:23:59 +03:00
44c52b6ed7
rename fetch_custodial_balances -> fetch_community_balance
2024-11-18 17:23:36 +03:00
454f67b317
show balance based on current voucher
2024-11-18 17:21:04 +03:00
e1506a3dcf
show a placehlolder community balance
2024-11-18 17:20:12 +03:00
b22a4adec1
Merge pull request 'updated send node' ( #172 ) from send-node into master
...
Reviewed-on: urdt/ussd#172
2024-11-18 14:19:42 +01:00
1ba90a8b78
updated the test
2024-11-16 14:52:24 +03:00
5dd4f2a3fb
scale down the balance according to the decimals
2024-11-16 14:52:02 +03:00
b40ad78294
add the GetVoucherDetails function
2024-11-15 21:03:57 +03:00
11bb194f26
add a struct to access the tokenDetails
2024-11-15 21:03:29 +03:00
c0ccdce0a9
add the voucher details node
2024-11-15 21:02:44 +03:00
7d16b710d8
set the TokenDecimals as int to match the API response
2024-11-15 20:50:07 +03:00
c8fc32a4e7
cleaned up models
2024-11-15 18:50:06 +03:00
baeb5e0ccb
use a single doRequest and updated the structs for TokenHoldings and Transfers
2024-11-15 18:37:20 +03:00
51bf2534b8
use a single bearer token
2024-11-15 18:35:49 +03:00
d3fae34290
modified the send node traversal
2024-11-15 13:24:54 +03:00
1a77092ccb
updated the menuhandler tests
2024-11-15 13:12:30 +03:00
36846c2587
added TestReadTransactionData
2024-11-15 12:13:09 +03:00
222d801ecc
added TestParseAndScaleAmount
2024-11-15 11:49:47 +03:00
1a0b4deab3
added the TransactionData struct to organiza the data
2024-11-15 09:20:19 +03:00
cb13b09291
remove commented code
2024-11-15 08:42:44 +03:00
de5ecc5fe7
add the tokens functionality to the common package
2024-11-14 21:21:04 +03:00
5773305785
parse data and initialize a transaction
2024-11-14 20:10:48 +03:00
7985b20200
added message string for failed transaction
2024-11-14 20:09:50 +03:00
c34906cb1f
added the TokenTransfer functionality and mocks
2024-11-14 20:02:48 +03:00
c10e1a6a1b
added the TokenTransferResponse model
2024-11-14 19:36:30 +03:00
fabcccfa60
added the tokenTransfer url
2024-11-14 19:35:44 +03:00
f3e3badff6
save the entire voucher data when setting the default voucher
2024-11-14 17:31:17 +03:00
9d2d01e3e2
save the recipient number in DATA_TEMPORARY_VALUE
2024-11-14 17:30:13 +03:00
93df6a6a08
validate recipients and invite valid ones
2024-11-14 14:59:39 +03:00
8c13e44a15
Merge pull request 'profile-edit-show' ( #171 ) from profile-edit-show into master
...
Reviewed-on: urdt/ussd#171
Reviewed-by: Alfred Kamanda <alfredkamandamw@gmail.com>
2024-11-14 09:27:42 +01:00
345dfbaa21
Merge remote-tracking branch 'refs/remotes/origin/profile-edit-show' into profile-edit-show
2024-11-14 11:01:42 +03:00
381e581e8e
add terminal logs
2024-11-14 11:00:12 +03:00
94d2e8203f
reload verify yob
2024-11-14 10:53:20 +03:00
f9e51618c5
remove extra line
2024-11-14 10:29:22 +03:00
f97ad2a262
use 1 for retry
2024-11-14 10:25:42 +03:00
59b14301ad
Merge branch 'master' into profile-edit-show
2024-11-14 10:08:25 +03:00
8b097a4395
Merge pull request 'log directly to the terminal' ( #170 ) from terminal-logs into master
...
Reviewed-on: urdt/ussd#170
2024-11-14 08:01:59 +01:00
fd2486b5cf
Merge branch 'terminal-logs' into profile-edit-show
2024-11-13 21:04:40 +03:00
f9f25d898b
use logg
2024-11-13 19:00:27 +03:00
b6b3ef83a4
updated the comment to match the functionality
2024-11-13 18:02:02 +03:00
d7232a53ef
use the bearer token
2024-11-13 16:16:32 +03:00
047bf0e12e
updated the env example
2024-11-13 16:15:37 +03:00
09f61eb64d
log all errors from the hander
2024-11-13 15:19:45 +03:00
abdb17640b
add terminal logs
2024-11-12 10:36:08 +03:00
9af7b775a7
log directly to the terminal
2024-11-11 16:32:17 +03:00
97741b113b
Merge branch 'master' into profile-edit-show
2024-11-11 11:03:01 +03:00
0bb444cd50
Merge pull request 'updated README' ( #169 ) from readme-documentation into master
...
Reviewed-on: urdt/ussd#169
2024-11-08 22:23:57 +01:00
1d07d7fb1d
updated README
2024-11-08 20:35:17 +03:00
a3e5aab6c4
Merge pull request 'Africastalking POST route' ( #168 ) from africastalking-endpoint into master
...
Reviewed-on: urdt/ussd#168
2024-11-08 17:25:46 +01:00
9ebfb643aa
remove unused import
2024-11-08 17:28:20 +03:00
0aad21a52c
Merge branch 'master' into profile-edit-show
2024-11-08 17:21:27 +03:00
68d1628546
replace - with: Not provided
2024-11-08 17:19:41 +03:00
f4f95b3292
add some spacing
2024-11-08 17:15:27 +03:00
574807d254
set the africastalking POST route using env
2024-11-08 16:52:19 +03:00
256ed6491b
Merge pull request 'http-logs' ( #167 ) from http-logs into master
...
Reviewed-on: urdt/ussd#167
2024-11-08 12:51:30 +01:00
7a02ffcf0c
Merge pull request 'log-file' ( #166 ) from log-file into http-logs
...
Reviewed-on: urdt/ussd#166
2024-11-08 08:09:15 +01:00
dcd8fce59a
add log on create account
2024-11-08 10:07:06 +03:00
64a7b49218
Remove unused Warning logger
2024-11-08 00:21:11 +03:00
1bcbb2079e
Removed unused variable
2024-11-08 00:17:02 +03:00
e63468433e
Merge branch 'http-logs' into log-file
2024-11-08 00:14:34 +03:00
9c972ffa6b
add specific log files per binary
2024-11-07 16:46:12 +03:00
a11776e1b3
ignore .log files
2024-11-07 16:41:38 +03:00
6ac9ac29d8
add simple http logging
2024-11-07 16:41:08 +03:00
fc8915ea33
add http logging
2024-11-07 16:35:58 +03:00
cc36ddcb6d
add handler for showing the currently set profile information
2024-11-07 12:02:03 +03:00
f3388aef31
use _ for back
2024-11-07 11:59:12 +03:00
4e170b25e2
show currently set profile information
2024-11-07 11:58:58 +03:00
3e258a35fa
show currently set profile information
2024-11-07 11:58:25 +03:00
f66609bbae
add helper for getting db key from string
2024-11-07 09:18:11 +03:00
ebdc7b200a
register handler for getting current profile information
2024-11-07 09:16:49 +03:00
29e1e912d7
use edit prefix on each profile edit node
2024-11-06 17:52:22 +03:00
308f3327d0
use edit prefix on each profile edit information
2024-11-06 17:48:50 +03:00
46b2b354fd
Merge pull request 'swahili-templates-menu' ( #158 ) from swahili-templates-menu into master
...
Reviewed-on: urdt/ussd#158
Reviewed-by: Alfred Kamanda <alfredkamandamw@gmail.com>
2024-11-05 11:29:07 +01:00
7676cfd40c
Merge branch 'master' into swahili-templates-menu
2024-11-05 13:25:49 +03:00
4e350aa25a
update test data file
2024-11-05 10:49:08 +03:00
584d02db29
Merge branch 'master' into lash/store-dumper
2024-11-05 00:19:06 +01:00
859de0513a
Merge pull request 'api-error-fix' ( #161 ) from api-error-fix into master
...
Reviewed-on: urdt/ussd#161
2024-11-05 00:18:04 +01:00
266d3d06c3
Check the flag_no_active_voucher before proceeding
2024-11-04 17:56:25 +03:00
92ea3df4aa
Removeearly return statement
2024-11-04 17:38:55 +03:00
c46c31ea36
ensure swahili translation
2024-11-04 16:06:33 +03:00
5937c6bf5c
Merge branch 'master' into lash/store-dumper
2024-11-04 13:56:44 +01:00
da91eed9d4
add retry menu option
2024-11-04 15:55:58 +03:00
e2b28a31b2
Merge pull request 'lash/export-to-term' ( #157 ) from lash/export-to-term into master
...
Reviewed-on: urdt/ussd#157
2024-11-04 13:54:58 +01:00
88b50c5dd7
Remove admin number defination in env example
2024-11-04 15:52:03 +03:00
43a1208cce
Merge branch 'master' into lash/export-to-term
2024-11-04 15:38:53 +03:00
2b865a365b
add back option to view address
2024-11-04 15:24:51 +03:00
c77558689a
ensure swahlili menu template
2024-11-04 15:24:22 +03:00
a9641fd70d
ensure swahili menu template
2024-11-04 15:24:01 +03:00
lash
2c30ccc405
Add voucherdata call to test accountservices
2024-11-04 02:23:30 +00:00
lash
7189235bee
Remove unused data type
2024-11-03 15:14:17 +00:00
lash
0506a8c452
Add voucherdata endpoint
2024-11-03 14:34:26 +00:00
lash
a237b615f2
Export models package
2024-11-03 01:44:57 +00:00
lash
dae12ac498
Separate subprefix db export
2024-11-02 23:41:08 +00:00
lash
1d77ad98dc
Expose subprefix db
2024-11-02 23:33:52 +00:00
lash
10b3083647
WIP Add db dumper tool
2024-11-02 20:29:32 +00:00
lash
3a8a5f40ba
Add test service placeholders for fetchtransactions
2024-11-02 16:42:50 +00:00
lash
14bc11f4bd
Add transaction getter
2024-11-02 16:38:29 +00:00
lash
e29a24b376
Add missing models files
2024-11-02 15:46:46 +00:00
lash
35a090ef42
Merge branch 'pre-mock-remove' into lash/export-to-term
2024-11-02 14:00:16 +00:00
2587882eae
Merge pull request 'pin-reset' ( #139 ) from pin-reset into pre-mock-remove
...
Reviewed-on: urdt/ussd#139
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
2024-11-02 14:54:19 +01:00
24d4b8478e
Merge pull request 'Remove db mocks' ( #152 ) from remove-db-mocks into master
...
Reviewed-on: urdt/ussd#152
2024-11-02 13:44:03 +01:00
476a69fe1b
Update menuhandler tests to use the memdb instead of dbmocks
2024-11-02 03:22:33 +03:00
c52f8312e4
Remove the dbmock and userdbmock
2024-11-02 03:21:38 +03:00
6dbe74d12b
use single temporary value
2024-11-01 16:46:09 +03:00
332074375a
wrap in devtools/admin
2024-11-01 16:44:54 +03:00
5e4a9e7567
Merge branch 'master' into pin-reset
2024-11-01 16:26:29 +03:00
cfe3e526df
Remove the subprefixdbmock
2024-11-01 13:17:45 +03:00
eb2c73dce1
remove unused setadmin store
2024-11-01 11:51:50 +03:00
7e448f739a
change fs store path to root
2024-11-01 09:35:48 +03:00
0014693ba8
remove guard pin option
2024-11-01 06:39:37 +03:00
lash
9a528cfd14
Clean up messily failed conflict resolution
2024-11-01 03:17:01 +00:00
lash
8cc46d2782
Merge branch 'master' into lash/export-to-term
2024-10-31 22:58:36 +00:00
45945ae9c5
Merge pull request 'Consolidate temp data storage' ( #150 ) from consolidate-temp-data-storage into master
...
Reviewed-on: urdt/ussd#150
2024-10-31 23:47:04 +01:00
d7ea8fa651
Use the DATA_TEMPORARY_VALUE for the user data
2024-11-01 01:10:58 +03:00
e75aa2c1f7
Merge branch 'master' into consolidate-temp-data-storage
2024-11-01 00:45:32 +03:00
63eed81d3d
Merge branch 'master' into consolidate-temp-data-storage
2024-11-01 00:44:15 +03:00
f4ca4454ea
use a single DATA_TEMPORARY_VALUE for the PIN and voucher data
2024-11-01 00:42:23 +03:00
lash
bb1a846cb3
Merge remote-tracking branch 'origin/master' into lash/ssh-4
2024-10-31 20:52:09 +00:00
2704069e74
Merge branch 'master' into pin-reset
2024-10-31 21:09:48 +03:00
7d1a04f089
remove from root
2024-10-31 21:01:24 +03:00
53fa6f64ce
define structure of json
2024-10-31 21:01:01 +03:00
7fa38340dd
add command to initialize a list of admin numbers
2024-10-31 21:00:41 +03:00
7aab3cff8c
remove seed
2024-10-31 21:00:16 +03:00
299534ccf1
define seed as a command in the devtool
2024-10-31 20:59:51 +03:00
b2655b7f11
remove seed from executable
2024-10-31 20:59:11 +03:00
5abe9b78cc
attach an admin store for the phone numbers
2024-10-31 20:11:26 +03:00
12825ae08a
setup adminstore in the local handler service
2024-10-31 20:10:46 +03:00
ac0b4b2ed1
pass context
2024-10-31 20:08:30 +03:00
5f666382ab
Merge pull request 'profile-update-pin-check' ( #149 ) from profile-update-pin-check into master
...
Reviewed-on: urdt/ussd#149
2024-10-31 16:06:47 +01:00
ce917d9e89
update tests
2024-10-31 17:05:06 +03:00
3ce25d0e14
Merge branch 'master' into profile-update-pin-check
2024-10-31 16:42:30 +03:00
8fe8ff540b
Merge branch 'master' into pin-reset
2024-10-31 16:38:28 +03:00
0b4bf58107
resolved failing tests due to tempData
2024-10-31 16:31:29 +03:00
lash
4bf56c525f
Export voucher related code
2024-10-31 13:19:44 +00:00
lash
33bba73a65
Merge branch 'master' into lash/export-to-term
2024-10-31 12:45:53 +00:00
074345fcf9
Merge pull request 'voucher-data' ( #138 ) from voucher-data into master
...
Reviewed-on: urdt/ussd#138
2024-10-31 13:44:18 +01:00
lash
a17150962e
Merge remote-tracking branch 'origin/lash/export-to-term' into lash/export-to-term
2024-10-31 12:39:48 +00:00
lash
3ae75b27a5
WIP replaced check account method but traversal crashes
2024-10-31 12:38:31 +00:00
lash
b2d180e8eb
WIP Trying to clean up account status check
2024-10-31 12:15:07 +00:00
e6a369dcdd
remove unused code
2024-10-31 14:44:42 +03:00
lash
b9c56b04ce
Remove obsolete track account status code
2024-10-31 11:43:27 +00:00
b8bbd88078
retain the temporary data for it to be overwritten
2024-10-31 14:26:28 +03:00
d25128287e
update profile information on individual node
2024-10-31 14:21:22 +03:00
c45fcda2f1
remove back option check,protect profile data update
2024-10-31 14:20:04 +03:00
211cc1f775
perform profile update in individual update node
2024-10-31 14:19:12 +03:00
981f7ca4f6
add keys to for holding temporary profile info
2024-10-31 14:14:50 +03:00
05ed236e03
add node to update individual profile information
2024-10-31 14:14:10 +03:00
bab3f673eb
Removed unused model
2024-10-31 14:13:21 +03:00
767a3cd64c
remove pin guard menu option
2024-10-31 09:38:51 +03:00
c4078c5280
remove extra spaces
2024-10-31 09:21:46 +03:00
lash
dc198215b1
Remove commented code
2024-10-31 02:03:29 +00:00
lash
a48170321c
Finish refactor result models
2024-10-31 01:51:36 +00:00
lash
1e638238ed
WIP refactor models usage
2024-10-31 01:28:37 +00:00
lash
4e81e2d869
Adapt voucher changes to package exports
2024-10-30 21:09:45 +00:00
d434194021
catch incorrect pin entry
2024-10-30 23:21:15 +03:00
c6ca3f6be4
fix sink error
2024-10-30 22:32:38 +03:00
8093eae61a
use 0 instead of 1 for back
2024-10-30 21:26:52 +03:00
833d52a558
remove print message
2024-10-30 21:26:11 +03:00
8262e14198
Merge branch 'master' into pin-reset
2024-10-30 21:10:12 +03:00
a31cac4e50
Merge branch 'master' into voucher-data
2024-10-30 18:46:21 +03:00
8b399781e8
make the VoucherMetadata more descriptive
2024-10-30 18:40:03 +03:00
caafe495be
use the dataserviceapi structs
2024-10-30 18:30:55 +03:00
66b34eaea4
get the ussd-data-service package
2024-10-30 18:21:49 +03:00
ea4c6d9314
check for phone number validity
2024-10-30 18:01:43 +03:00
7c823e07ca
move to root node after on back
2024-10-30 18:01:20 +03:00
41585f831c
move catch and load to next node
2024-10-30 18:00:38 +03:00
d93a26f9b0
remove function exec after HALT
2024-10-30 17:58:52 +03:00
lash
ff26ccc545
Expose api interface
2024-10-30 13:09:15 +00:00
lash
72c688b885
Merge branch 'master' into lash/export-to-term
2024-10-30 12:02:37 +00:00
lash
14648fec6c
Edit comment
2024-10-30 12:02:16 +00:00
cf523e30f8
update handler in test
2024-10-30 14:50:31 +03:00
888d3befe9
add actual pin reset functionality
2024-10-30 14:50:12 +03:00
017691a40c
define structure for admin numbers
2024-10-30 14:41:14 +03:00
dc418771a7
attach an admin store for phone numbers
2024-10-30 14:33:48 +03:00
c2068db050
update handler functions
2024-10-30 14:33:22 +03:00
c42b1cd66b
provide required handler functions and admin store
2024-10-30 14:32:01 +03:00
b404ae95fb
setup an admin store based on fs
2024-10-30 14:30:38 +03:00
adaa0c63ef
Extract common db operations for the test
2024-10-30 14:12:42 +03:00
843b0d1e7e
Merge pull request 'Add reverse sessionid address lookup' ( #146 ) from lash/reverse-session into master
...
Reviewed-on: urdt/ussd#146
2024-10-30 10:35:55 +01:00
lash
c95b97cb14
Export user data store
2024-10-30 01:45:38 +00:00
lash
dd764a2e24
Export db datatypes,tools
2024-10-30 01:28:55 +00:00
lash
cb997159f7
Add reverse sessionid address lookup
2024-10-30 00:59:59 +00:00
7241cdbfcb
Updated the tests
2024-10-30 00:53:13 +03:00
0480c02633
Moved voucher related functions to the utils package
2024-10-30 00:52:23 +03:00
0a97f610a4
catch unregistred number
2024-10-29 22:23:22 +03:00
5a0563df94
group regex,check for valid number against the regex
2024-10-29 22:17:43 +03:00
7597b96dae
remove catch for unregistered number
2024-10-29 22:16:34 +03:00
f37483e2f0
use _ for back navigation
2024-10-29 22:15:31 +03:00
d0ad6395b5
add check for unregistered phone numbers
2024-10-29 17:35:42 +03:00
106983a394
use explicit back to node
2024-10-29 17:35:01 +03:00
91b85af11a
add reset unregistered number
2024-10-29 17:34:34 +03:00
534d756318
catch unregistred phone numbers
2024-10-29 17:18:39 +03:00
6998c30dd1
add node to handle unregistered phone numbers
2024-10-29 17:18:01 +03:00
449f90c95b
add flag to catch unregistred numbers
2024-10-29 17:17:03 +03:00
e96c874300
repeat same node on invalid option input
2024-10-29 15:02:40 +03:00
b35460d3c1
Merge branch 'master' into pin-reset
2024-10-29 14:35:17 +03:00
124049c924
add admin number defination in env
2024-10-29 14:32:17 +03:00
5fd3eb3c29
set admin privilege flag
2024-10-29 14:28:58 +03:00
d83962c0ba
load admin numbers defined in the .env
2024-10-29 14:26:24 +03:00
41da099933
remove the admin flag,setup an admin store
2024-10-29 13:24:13 +03:00
c9bb93ede6
create a simple admin store for phone numbers
2024-10-29 13:15:41 +03:00
ca13d9155c
replace _ with explicit back node
2024-10-29 13:15:22 +03:00
e338ce0025
load and reload only after input
2024-10-29 13:14:49 +03:00
03c32fd265
Merge branch 'master' into voucher-data
2024-10-28 18:40:37 +03:00
727f54ee57
Merge pull request 'tests-refactor' ( #137 ) from tests-refactor into master
...
Reviewed-on: urdt/ussd#137
2024-10-28 16:28:41 +01:00
b97965193b
add pin reset for others handling
2024-10-28 16:37:23 +03:00
aec0abb2b6
setup an admin flag
2024-10-28 16:34:33 +03:00
2c361e5b96
Added tests related to the vouchers list
2024-10-28 16:30:13 +03:00
131f3bcf46
Added the prefixDb to the Handlers struct~
2024-10-28 16:27:24 +03:00
520f5abdcd
Added the subPrefixDb mock
2024-10-28 16:23:44 +03:00
5d294b663c
Added the PrefixDb interface
2024-10-28 16:21:31 +03:00
26073c8000
define handler functions required to reset others pin
2024-10-28 15:49:20 +03:00
e4c2f644f3
define a key to hold number during pin reset
2024-10-28 15:47:56 +03:00
3de46cef5e
setup pin reset nodes
2024-10-28 15:45:08 +03:00
0cc0bdf9f7
add pin reset for others nodes
2024-10-28 15:19:35 +03:00
72d5c186dd
add admin privilege flag
2024-10-28 15:18:40 +03:00
dc782d87a8
Updated the TestSetVoucher
2024-10-28 11:20:06 +03:00
ddae746b9d
formatted code
2024-10-28 11:07:59 +03:00
4e1b2d5ddb
update account services
2024-10-25 18:01:52 +03:00
d8800a665d
Merge branch 'master' into tests-refactor
2024-10-25 17:48:40 +03:00
6c3ff0e9db
Merge branch 'master' into voucher-data
2024-10-25 17:37:08 +03:00
3ef64271e7
Store and retrieve the voucher decimals and contract address
2024-10-25 17:24:09 +03:00
2dee47404d
Merge pull request 'menu-voucherlist' ( #101 ) from menu-voucherlist into master
...
Reviewed-on: urdt/ussd#101
2024-10-25 15:59:46 +02:00
3792bfdc1f
run mod tidy
2024-10-25 09:38:09 +03:00
a0e97cfe5b
remove test account service implementation
2024-10-25 09:37:16 +03:00
a3be98c514
update test account service
2024-10-25 09:36:43 +03:00
2b34b3a75c
Merge branch 'master' into tests-refactor
2024-10-25 09:14:16 +03:00
b4454f7517
Added context to FetchVouchers
2024-10-24 20:44:29 +03:00
d9c660b8ea
Merge branch 'master' into menu-voucherlist
2024-10-24 20:39:43 +03:00
d113ea82fd
Add dynamic send_amount and session_id
2024-10-24 20:21:28 +03:00
a92c640cb7
Updated tests
2024-10-24 18:15:54 +03:00
728815f0c6
Include the active symbol in the send menu
2024-10-24 17:50:37 +03:00
6b5d3f74d1
Merge pull request 'api-context' ( #127 ) from api-context into master
...
Reviewed-on: urdt/ussd#127
2024-10-24 16:45:37 +02:00
bee9ad5ff5
Merge remote-tracking branch 'refs/remotes/origin/api-context' into api-context
2024-10-24 17:39:11 +03:00
6e7b46666e
ensure mod match with master
2024-10-24 17:34:42 +03:00
383f074cae
update method signatures
2024-10-24 17:32:08 +03:00
d678a639b8
Merge branch 'master' into api-context
2024-10-24 17:07:11 +03:00
453fea569a
Merge pull request 'api-structs' ( #117 ) from api-structs into master
...
Reviewed-on: urdt/ussd#117
2024-10-24 15:53:46 +02:00
5c75e35fe0
Delete coverage.html
...
delete cover.html
2024-10-24 15:45:52 +02:00
cff50538fa
Delete cover.out
...
delete cover.out
2024-10-24 15:45:29 +02:00
69a4530269
Delete services/registration/locale/swa/default.mo
...
remove dev file
2024-10-24 15:41:47 +02:00
db19e38717
Merge remote-tracking branch 'refs/remotes/origin/api-structs' into api-structs
2024-10-24 16:37:07 +03:00
c796bbdcfc
correct create endpoint
2024-10-24 16:36:09 +03:00
2b34a0900c
check for status code and unmarshal on errResponse
2024-10-24 16:35:53 +03:00
e15bac98a5
Merge branch 'master' into menu-voucherlist
2024-10-24 16:31:49 +03:00
ee9a683eb0
Merge branch 'master' into menu-voucherlist
2024-10-24 16:30:44 +03:00
9274e585bd
Merge branch 'master' into menu-voucherlist
2024-10-24 16:26:32 +03:00
57a49819f4
Merge branch 'master' into api-structs
2024-10-24 16:22:41 +03:00
abc01b7cee
change to local setup endpoint
2024-10-24 16:21:34 +03:00
d19c20a9d7
Merge branch 'master' into api-structs
2024-10-24 15:19:06 +02:00
0c6144d262
Merge pull request 'send-menu-update' ( #131 ) from send-menu-update into master
...
Reviewed-on: urdt/ussd#131
2024-10-24 15:15:11 +02:00
ec4e44a27c
Merge branch 'master' into send-menu-update
2024-10-24 15:58:59 +03:00
69eb57f794
Merge branch 'master' into api-context
2024-10-24 14:51:25 +02:00
2347d64acc
Merge pull request 'check-balance-update' ( #132 ) from check-balance-update into master
...
Reviewed-on: urdt/ussd#132
2024-10-24 14:50:59 +02:00
39c0560abe
Updated the test
2024-10-24 15:21:48 +03:00
75459f852b
Return the full balance string
2024-10-24 15:12:57 +03:00
6200728435
Updated the menuhander test
2024-10-24 14:45:15 +03:00
579b46db65
Replace the public key with the sessionId
2024-10-24 14:34:12 +03:00
f99486c190
correct import
2024-10-24 12:07:00 +03:00
57a07af8ca
correct import
2024-10-24 12:06:44 +03:00
5692440099
move to testutil
2024-10-24 12:05:27 +03:00
651969668f
move to testutil
2024-10-24 12:05:11 +03:00
f3a028f1fc
move to testutil
2024-10-24 12:03:32 +03:00
9f2d57ea03
update tests
2024-10-24 10:10:14 +03:00
d74a4cc33b
update service mock method signatures
2024-10-24 10:10:03 +03:00
308ca99fb0
remove reload account creation
2024-10-24 10:02:32 +03:00
08e709f1b3
check for error responses
2024-10-24 10:02:15 +03:00
9bc9d04a49
use errresponse and okresponse for deserialization
2024-10-24 10:00:38 +03:00
a553731f02
Cleaned up code
2024-10-23 17:45:41 +03:00
fc0043e3f6
Adde the transactions node
2024-10-23 14:52:15 +03:00
d41ba79ae4
Adde the check_statement node
2024-10-23 14:51:59 +03:00
f36847d966
Added a placeholder function to get transactions
2024-10-23 14:51:17 +03:00
4011597d9c
Check specific db error
2024-10-23 14:02:13 +03:00
176473aa26
Rename prefix to vouchers
2024-10-23 13:54:42 +03:00
b41e52af63
pass context.Context
2024-10-23 12:45:54 +03:00
fb32dde136
run go mod tidy
2024-10-23 12:45:10 +03:00
1e6cf6a33a
run mod tidy
2024-10-23 11:08:51 +03:00
2725323f16
Merge branch 'master' into tests-refactor
2024-10-23 11:06:10 +03:00
5f1ee396d8
Fix PIN being requested twice
2024-10-23 06:35:19 +03:00
5f2c6cce16
add required track endpoint
2024-10-22 21:36:28 +03:00
3179ec1f62
add local track endpoint
2024-10-22 21:35:52 +03:00
b9a63f3c6f
merge dep
2024-10-22 21:30:48 +03:00
1d255372b2
Merge branch 'master' into api-structs
2024-10-22 21:05:51 +03:00
306666a15e
load and reload after halt
2024-10-22 20:37:30 +03:00
e05dbb4885
check for back option
2024-10-22 20:36:58 +03:00
637e107525
Merge branch 'master' into menu-voucherlist
2024-10-22 17:10:51 +03:00
59d0446020
Merge pull request 'postgres-switch' ( #113 ) from postgres-switch into master
...
Reviewed-on: urdt/ussd#113
2024-10-22 16:04:56 +02:00
f37ec13c75
polish code
2024-10-22 16:31:29 +03:00
0547bc7e5f
added send menu test with dynamic max_amount
2024-10-22 14:24:22 +03:00
02cb75f97a
increase the size to resolve sink error
2024-10-21 17:14:59 +03:00
9c75942b0b
chore: remove commented code
2024-10-21 16:54:16 +03:00
5909659fa9
Use dynamic balance
2024-10-21 16:52:07 +03:00
eaac771722
move into testtag package
2024-10-21 16:48:24 +03:00
f3a5178de7
update imports
2024-10-21 16:47:43 +03:00
549d09890b
update imports
2024-10-21 16:47:25 +03:00
4a9ef6b5f2
move test account service to testutil
2024-10-21 16:47:00 +03:00
961d8d1a5c
update package import
2024-10-21 16:46:29 +03:00
a904cdbf44
move driver to testutil
2024-10-21 16:45:06 +03:00
3af943f77c
move account service tags switch to test tags package
2024-10-21 16:44:02 +03:00
14455f65cb
move account service to testutil
2024-10-21 16:43:24 +03:00
0c08654df3
move driver to testutil
2024-10-21 16:42:57 +03:00
acd0af25c6
catch api call error
2024-10-21 11:11:04 +03:00
66d2e2e838
add custodial api structs
2024-10-21 11:10:42 +03:00
4beeb9986a
use importable api structs
2024-10-21 11:10:23 +03:00
d81bc0eefb
use importable api structs
2024-10-21 11:10:01 +03:00
5b0a383513
use importable api structs
2024-10-21 11:09:37 +03:00
367d3f0593
remove manually added api.go file
2024-10-21 11:07:32 +03:00
415c807464
include the Database in context
2024-10-21 09:22:07 +03:00
9f562fe53e
use postgres directly from go-vise
2024-10-19 23:06:58 +03:00
3bf2045f15
added FetchVouchers to the TestAccountService
2024-10-19 16:07:40 +03:00
aced3e4fc3
Merge branch 'master' into menu-voucherlist
2024-10-19 15:38:54 +03:00
fb0d2db156
Merge branch 'master' into postgres-switch
2024-10-19 15:28:59 +03:00
a40fc37da4
implement postgres for the state store
2024-10-19 15:27:23 +03:00
f13f5996c1
remove thread abstraction from postgres
2024-10-19 14:51:41 +03:00
00a2beae50
rename file
2024-10-19 13:41:19 +03:00
25bc7006a4
show a balance of 0 and prevent sending when no voucher exists
2024-10-18 18:31:40 +03:00
f643aa4d14
update tests
2024-10-18 17:37:04 +03:00
b8860478b6
implement expected structs
2024-10-18 17:36:51 +03:00
847b91ca9e
Merge branch 'menu-api-errors' into api-structs
2024-10-18 17:15:05 +03:00
353e24de33
define api structs
2024-10-18 17:04:43 +03:00
1c57c95d93
use api structs
2024-10-18 17:04:02 +03:00
128a354b34
use api structs
2024-10-18 17:03:48 +03:00
81c4189c8e
update tests
2024-10-18 17:02:08 +03:00
b8e12e5215
update api endpoints
2024-10-18 17:01:21 +03:00
113f1a5b34
Merge pull request 'menu-traversal-v2' ( #115 ) from menu-traversal-v2 into master
...
Reviewed-on: urdt/ussd#115
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
2024-10-18 15:38:56 +02:00
4f04362835
pass error description to error response
2024-10-17 16:08:18 +03:00
fd8bfae8c7
updated the vise version to include the updated column
2024-10-17 15:35:35 +03:00
eea3be3a39
resolve failing test
2024-10-17 13:49:56 +03:00
849a950fbc
Merge branch 'master' into menu-voucherlist
2024-10-17 13:44:31 +03:00
6727bd3769
polished code
2024-10-17 12:55:47 +03:00
9f8fcf1ed0
attach account service to handler
2024-10-17 12:54:11 +03:00
4a599b902d
define transaction
2024-10-17 12:49:51 +03:00
a759f47c8e
Merge branch 'master' into postgres-switch
2024-10-17 12:49:28 +03:00
d181c34946
update handler and move transaction struct to models
2024-10-17 12:49:28 +03:00
4968cdff37
switch to postgres once the flag is set
2024-10-17 12:47:57 +03:00
bfa6eac4c2
define a test account service
2024-10-17 12:47:44 +03:00
1aeb18379c
added a db flag and Database to the context
2024-10-17 12:46:20 +03:00
667a21d950
pass account service as a param
2024-10-17 12:37:15 +03:00
4416c008fc
add menu traversal tests
2024-10-17 12:36:24 +03:00
0a7389a71d
explicitly reset authorize flag
2024-10-17 12:36:02 +03:00
383e64776d
chore: change pin to PIN
2024-10-17 12:35:44 +03:00
a27c1790b8
setup test data file
2024-10-17 12:34:17 +03:00
f81e3508ca
define engine to run tests
2024-10-17 12:33:38 +03:00
127219f510
define build for running online and offline tests
2024-10-17 12:33:09 +03:00
54cc33c819
Delete connstr in threadgdbm global channel map on close
2024-10-17 12:32:31 +03:00
a51f739d06
pass account service as a param
2024-10-17 12:31:33 +03:00
8d047ebe05
define universal group driver
2024-10-17 12:30:58 +03:00
4e840ac17c
add uuid
2024-10-17 12:30:36 +03:00
f73b7a8b04
setup api responses
2024-10-16 22:40:40 +03:00
e986eaa538
Merge pull request 'menu-api-errors' ( #112 ) from menu-api-errors into master
...
Reviewed-on: urdt/ussd#112
2024-10-16 19:08:46 +02:00
d8db8df643
use go-vise v0.2.0
2024-10-15 23:42:39 +03:00
09eac03e10
use env variables
2024-10-15 23:41:16 +03:00
51122d0fc5
added an env.example file
2024-10-15 22:31:37 +03:00
d05c666513
Merge branch 'master' into menu-voucherlist
2024-10-15 17:08:48 +03:00
a336856c9b
use separate functions to process voucher data
2024-10-15 17:02:51 +03:00
0be570ae2d
add check for api call failure
2024-10-15 16:31:31 +03:00
6a36bc43b5
add check for api call failure
2024-10-15 16:31:15 +03:00
1d27a88908
add test on validate amount
2024-10-15 16:30:29 +03:00
f378f15422
updated tests
2024-10-15 16:29:51 +03:00
b2fb9faf6c
use the active balance to validate the amount
2024-10-15 16:17:33 +03:00
859e203a00
removed debug comments
2024-10-15 15:54:43 +03:00
6c6af5ec21
set a default voucher as the active sym if none exists
2024-10-15 15:46:02 +03:00
8ed98b3e6c
resolve case issue
2024-10-15 14:53:00 +03:00
4889e6d18b
Merge remote-tracking branch 'origin' into menu-api-errors
2024-10-15 14:04:45 +03:00
368c25125a
set flag count to 128
2024-10-15 13:59:49 +03:00
283793a2ae
add swahili menu option
2024-10-15 13:57:45 +03:00
bec7e5c69f
update: fetch balances in a sepate function,show profile information in swahili and english
2024-10-15 13:57:05 +03:00
d638aba85e
update tests
2024-10-15 13:50:28 +03:00
df7788dd0b
return actual reponses on the api calls
2024-10-15 13:48:14 +03:00
4a62773098
add handler fetching custodial balances
2024-10-15 13:44:50 +03:00
26d315b032
add check for api call failure
2024-10-15 13:42:20 +03:00
1927544533
reset authorized flag
2024-10-15 13:40:40 +03:00
c641a0c669
add api failure nodes
2024-10-14 23:19:09 +03:00
952da86931
update balance nodes
2024-10-14 23:18:42 +03:00
be6391686f
update return type
2024-10-14 23:17:57 +03:00
65794c1b20
add api calls flag
2024-10-14 23:17:17 +03:00
lash
967e53d83b
Merge branch 'master' into lash/ssh-4
2024-10-14 14:50:12 +01:00
b058f9d770
Merge pull request 'Adapter to enable subdomain of db key prefixes' ( #102 ) from lash/subprefix into master
...
Reviewed-on: urdt/ussd#102
2024-10-14 15:11:07 +02:00
7df77a1343
updated the ValidateAmount to also check the active symbol, updated tests
2024-10-12 20:07:06 +03:00
f5dbfe553d
use the check_balance for the max_amount
2024-10-12 20:06:00 +03:00
7fe8f0b7d5
updated the args under FetchVouchers
2024-10-12 18:03:13 +03:00
a9f9867976
added the TestSetVoucher
2024-10-12 17:36:00 +03:00
b6d24bf929
update the TestCheckBalance
2024-10-12 16:29:12 +03:00
e9684fcf45
check whether the active symbol is empty
2024-10-12 16:28:02 +03:00
a5b1c5b74e
cleaned up the code
2024-10-12 14:32:40 +03:00
672eebb8fb
display the balance based on the symbol
2024-10-11 09:42:08 +03:00
8f834b3d76
ensure that a user is authorized
2024-10-11 09:41:47 +03:00
6c93fb76b1
correctly added the flag and the flag count
2024-10-11 09:36:43 +03:00
ea2df55295
use go-vise v0.2.0
2024-10-10 15:18:13 +03:00
7c08a0f0af
add temp and active balance
2024-10-10 14:48:23 +03:00
9ad7d5a522
set the active symbol
2024-10-09 15:39:06 +03:00
6c904a8b3f
add the temporary and active symbol
2024-10-09 15:38:19 +03:00
9ccb6cc066
use 99 as the quit
2024-10-09 15:05:59 +03:00
2c98a8e133
read token list from json file
2024-10-08 14:34:21 +03:00
4b6fd35e7a
define importable voucher response
2024-10-08 13:43:57 +03:00
b3c7a3a337
Merge remote-tracking branch 'refs/remotes/origin/menu-voucherlist' into menu-voucherlist
2024-10-08 13:43:19 +03:00
7b374ad801
define importable token list
2024-10-08 13:41:09 +03:00
cb4a52e4f2
view a selected voucher and verify the PIN
2024-10-07 16:16:57 +03:00
06ebcc0f07
added swahili template
2024-10-07 16:15:13 +03:00
e4ed9a65bb
store the symbols and balances
2024-10-07 13:49:12 +03:00
755899be4e
store the pre-rendered vouchers list
2024-10-07 08:59:15 +03:00
4dede757d2
Merge branch 'lash/subprefix' into menu-voucherlist
2024-10-07 08:06:37 +03:00
517f980664
get the vouchers list and store in gdbm
2024-10-05 16:56:49 +03:00
31aea6b807
added model and func to fetch vouchers from the API
2024-09-28 14:07:37 +03:00
3a46fda769
use save_temporary_pin and updated tests
2024-09-28 12:26:37 +03:00
c7bdfe90b7
Merge branch 'master' into menu-voucherlist
2024-09-28 11:07:36 +03:00
lash
d246cdee51
Rename datatype const name for ssh prefix
2024-09-27 21:25:21 +01:00
lash
d518a76536
Merge branch 'lash/subprefix' into lash/ssh-4
2024-09-27 21:18:25 +01:00
lash
2a93ea7a0c
Remove out-of-context extend key
2024-09-27 21:16:08 +01:00
lash
f89b1acc6c
Merge branch 'master' into lash/subprefix
2024-09-27 21:15:17 +01:00
ddeafe015b
Merge pull request 'tests-update' ( #100 ) from tests-update into master
...
Reviewed-on: urdt/ussd#100
2024-09-27 22:14:50 +02:00
lash
1dc8b054eb
Add sub-prefix db wrapper
2024-09-27 21:10:03 +01:00
60134f14e9
Merge branch 'master' into menu-voucherlist
2024-09-27 19:11:35 +03:00
4c33945081
use latest go-vise update
2024-09-27 19:10:08 +03:00
a3ff3be5b1
clean up
2024-09-27 16:32:47 +03:00
ea52a7cf0a
update tests
2024-09-26 23:11:37 +03:00
a993026380
update tests
2024-09-26 23:07:48 +03:00
lash
6f65c33be4
Re-add ssh
2024-09-26 15:15:06 +01:00
lash
4ee241714b
Attempt 2 revert changes from ssh
2024-09-26 15:08:15 +01:00
lash
d7dc743fa2
Merge remote-tracking branch 'origin/master'
2024-09-26 15:07:13 +01:00
lash
c220cbb767
Revert accidental merge of ssh
2024-09-26 15:05:17 +01:00
0dc322729f
Merge pull request 'SSH server entry point.' ( #77 ) from lash/ssh-2 into master
...
Reviewed-on: urdt/ussd#77
2024-09-26 15:55:51 +02:00
726d6dd338
Merge pull request 'menu-profile-edit' ( #82 ) from menu-profile-edit into master
...
Reviewed-on: urdt/ussd#82
2024-09-26 15:48:55 +02:00
a8b202bd79
Merge branch 'master' into menu-profile-edit
2024-09-25 15:19:04 +02:00
221db4e998
return a numbered list of vouchers
2024-09-25 16:06:06 +03:00
0e376e0d9e
include back and quit
2024-09-25 16:03:08 +03:00
7aa44caea2
add voucher nodes
2024-09-25 15:57:23 +03:00
188cb573dd
add dummy vouchers list
2024-09-25 13:27:13 +03:00
6dbd250694
remove extra spaces
2024-09-25 09:29:26 +03:00
cc760e7698
remove move
2024-09-25 09:20:45 +03:00
8648ea599c
add catch node
2024-09-25 09:20:45 +03:00
77e4c5d43a
reset the positon of LOAD function
2024-09-25 09:20:44 +03:00
b15ba367c4
change position of LOAD function
2024-09-25 09:20:44 +03:00
4db862bc97
LOAD and RELOAD get_amount
2024-09-25 09:20:43 +03:00
6ad67f6adc
change position of LOAD
2024-09-25 09:20:42 +03:00
0caf82a27e
Merge pull request 'fix-repeated-nodes' ( #81 ) from fix-repeated-nodes into master
...
Reviewed-on: urdt/ussd#81
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
2024-09-25 01:48:34 +02:00
a430857309
Merge branch 'master' into fix-repeated-nodes
2024-09-25 01:41:43 +02:00
2643c0c9ff
only have a -d for the engineDebug
2024-09-24 16:11:22 +03:00
b8852e1ab3
add engineDebug and stateDebug flags
2024-09-24 14:10:10 +03:00
0dea34daab
resolve confilict
2024-09-24 09:18:21 +03:00
8057313c78
Merge remote-tracking branch 'remotes/origin/master' into menu-profile-edit
2024-09-24 09:10:17 +03:00
1bd96d0689
setup dedicated nodes for case selection
2024-09-24 09:02:04 +03:00
bbfe46f162
use current rendering symbol for case selection
2024-09-24 09:01:19 +03:00
eff2cbde8b
setup check for unused code
2024-09-24 09:00:31 +03:00
5c85ecffd1
remove unused code
2024-09-24 09:00:13 +03:00
lash
ad1f9233ca
Merge branch 'master' into lash/ssh-2
2024-09-23 20:26:47 +01:00
e9fdd1ddbe
Merge pull request 'Threaded gdbm' ( #76 ) from lash/thread-gdbm into master
...
Reviewed-on: urdt/ussd#76
2024-09-23 21:25:37 +02:00
8a03b05c90
reset the positon of LOAD function
2024-09-23 21:20:57 +03:00
lash
c18c40b1b8
Merge branch 'lash/thread-gdbm' into lash/ssh-2
2024-09-23 18:56:38 +01:00
5a38b40eaf
Merge branch 'lash/thread-gdbm' into fix-repeated-nodes
2024-09-23 20:55:56 +03:00
lash
6112ca175f
Merge branch 'master' into lash/thread-gdbm
2024-09-23 18:54:18 +01:00
c7ebca4729
update template text
2024-09-23 20:20:41 +03:00
fa0070b9a8
add swahili templates
2024-09-23 20:20:20 +03:00
4a447fbb45
update profile update
2024-09-23 20:10:37 +03:00
cb32cfe9d8
update dep
2024-09-23 20:09:51 +03:00
cf4e80dcb8
update profile edit nodes
2024-09-23 20:09:37 +03:00
lash
c02d70eaa4
Upgrade dep, improve logging
2024-09-23 17:35:17 +01:00
909d1f3409
change position of LOAD function
2024-09-23 14:16:01 +03:00
66cf90f044
LOAD and RELOAD get_amount
2024-09-23 14:13:26 +03:00
74d5da3987
Merge branch 'lash/thread-gdbm' into fix-repeated-nodes
2024-09-23 11:40:29 +03:00
f215159725
change position of LOAD
2024-09-23 11:38:07 +03:00
a6301163eb
use latest commit from go-vise 0.2.0
2024-09-23 09:59:21 +03:00
lash
a07fce527f
Merge branch 'lash/thread-gdbm' into lash/ssh-2
2024-09-22 16:26:59 +01:00
lash
8a5209584d
Update go module deps
2024-09-22 16:25:04 +01:00
lash
ddc8f6dad1
Update module dep
2024-09-22 16:24:09 +01:00
lash
c2b68231f5
Update gitignore
2024-09-22 16:15:40 +01:00
lash
3f3dbf414c
Clarify keyfile use in readme
2024-09-22 16:13:30 +01:00
lash
e4c3e9f015
Add ssh instructions, log host key
2024-09-22 16:09:57 +01:00
lash
9b71244391
Merge branch 'lash/thread-gdbm' into lash/ssh-2
2024-09-22 15:43:18 +01:00
lash
ada1f26b68
Add keystore class, separate keystore tool executable
2024-09-22 15:41:55 +01:00
lash
935b777e57
Factor out ssh service code
2024-09-22 14:41:01 +01:00
lash
7d3ff690f0
Remove useless 'registered' member in thread gdbm
2024-09-22 03:10:58 +01:00
lash
a455cfb854
Return if duplicate connect
2024-09-22 03:09:53 +01:00
lash
19372c17f4
Reinstate ssh executable
2024-09-22 03:06:24 +01:00
lash
1cc2f58ab3
Remove ssh
2024-09-22 03:03:03 +01:00
lash
3756bdc98a
Merge remote-tracking branch 'origin/lash/ssh' into lash/ssh
2024-09-22 02:58:18 +01:00
lash
e07f88b368
Settable ssh keyfile, host, port
2024-09-22 02:57:10 +01:00
472624a831
Merge branch 'master' into lash/ssh
2024-09-22 03:38:53 +02:00
lash
84422684c5
Rehabilitate all executables
2024-09-22 02:33:11 +01:00
lash
28fc7a0462
Implement threaded gdbm in storageservice
2024-09-22 02:28:00 +01:00
lash
78d349ccc7
Add threaded gdbm wrapper
2024-09-22 02:21:56 +01:00
lash
0813a619b4
Add hacky db closer function in ssh
2024-09-21 21:32:02 +01:00
lash
5ed9d2643b
WIP can execute single session, but persister fails in next
2024-09-21 18:56:20 +01:00
lash
8dcba67fe9
WIP can execute single session, but persister fails in next
2024-09-21 18:49:11 +01:00
lash
5cac17676a
WIP adapt ssh server sketch to urdt setup
2024-09-21 00:32:39 +01:00
4439cc249a
Merge pull request 'go-vise-0.2.0' ( #71 ) from go-vise-0.2.0 into master
...
Reviewed-on: urdt/ussd#71
2024-09-21 00:06:07 +02:00
e754773bce
remove need for initial Exec before loop
2024-09-20 22:16:43 +03:00
63c7c65a00
rename all WriteResult to Flush
2024-09-20 22:15:24 +03:00
9925b3a2e5
use updated latest commit from go-vise 0.2.0
2024-09-20 22:12:52 +03:00
a1056cf287
removed unused code
2024-09-20 13:54:23 +03:00
e6e701a609
remove init and use Exec
2024-09-20 13:13:20 +03:00
b66891a646
use latest commit from go-vise 0.2.0
2024-09-20 13:10:44 +03:00
7197382911
Merge pull request 'Code refactor' ( #66 ) from wip-main-refactor into master
...
Reviewed-on: urdt/ussd#66
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
2024-09-19 20:19:16 +02:00
5c5f4cbc8e
Merge branch 'master' into wip-main-refactor
2024-09-19 20:19:06 +02:00
e581a1ad2f
factor out getflag
2024-09-19 21:04:09 +03:00
929e812992
Merge pull request 'at-return-output' ( #63 ) from at-return-output into master
...
Reviewed-on: urdt/ussd#63
Reviewed-by: lash <accounts-grassrootseconomics@holbrook.no>
2024-09-19 18:23:13 +02:00
3fe66466c5
renamed test file and added server.go tests
2024-09-19 18:52:13 +03:00
f6979868e5
added at_session_handler tests
2024-09-19 17:19:09 +03:00
e8be64ae28
added http related mocks
2024-09-19 17:18:14 +03:00
e4d8bfad7b
moved the mocks package
2024-09-19 17:17:28 +03:00
96358959b4
remove unused code
2024-09-19 17:04:08 +03:00
bc9dfe4f65
remove redundant code
2024-09-19 17:01:23 +03:00
ffa00ae15c
refactor code
2024-09-19 16:18:21 +03:00
13294b42d3
refactor code
2024-09-19 16:16:17 +03:00
81159e77d1
refactor code
2024-09-19 16:15:29 +03:00
5bd51b280e
add storage service for menu
2024-09-19 15:57:11 +03:00
71e1ae6e3c
add function registration service
2024-09-19 15:54:23 +03:00
10de039da0
remove obsolete code
2024-09-18 15:42:56 +03:00
27aa71e0ee
only set the code to 200 if no error exists
2024-09-18 15:11:49 +03:00
a9a429824c
return if the sessionId cannot be retrieved from the request
2024-09-18 14:52:56 +03:00
4098ac8a19
Merge pull request 'change-language' ( #58 ) from change-language into master
...
Reviewed-on: urdt/ussd#58
2024-09-17 18:31:10 +02:00
2982f08b41
Merge branch 'master' into change-language
2024-09-17 18:30:52 +02:00
75ab9c66a3
run TestSetLanguage with execPath instead of input
2024-09-17 18:54:07 +03:00
95f02231b3
Merge pull request 'Unit tests' ( #62 ) from wip-unit-tests into master
...
Reviewed-on: urdt/ussd#62
2024-09-17 15:55:33 +02:00
2e7c07e6f4
added missing functions to the other getHandlers
2024-09-17 15:31:44 +03:00
01f7571185
use dedicated nodes to set the language
2024-09-17 15:29:21 +03:00
065c8e5c1d
use a single set_language function for setting and changing language
2024-09-17 15:26:50 +03:00
dc14480519
remove extra space
2024-09-16 17:29:27 +03:00
aaf4923f64
ensure a PIN is set before changing the language
2024-09-16 17:29:27 +03:00
e9c645bd87
added the profile info on the swa menu template
2024-09-16 17:29:27 +03:00
1be6da9139
remove new lines on templates and menus to clean up the empty spaces on the menu
2024-09-16 17:29:27 +03:00
fa2930d93a
added quit menu to handle eng and swa
2024-09-16 17:29:27 +03:00
a409e292ab
add the change_language functionality to the account menu
2024-09-16 17:29:27 +03:00
00c86a2850
change language
2024-09-16 17:29:27 +03:00
4daac7e90b
added change_language node and templates
2024-09-16 17:29:27 +03:00
06e23565df
added the SetNewLanguage function
2024-09-16 17:29:27 +03:00