Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add tstore backend and plugin architecture. #1180

Merged
merged 496 commits into from
Mar 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
496 commits
Select commit Hold shift + click to select a range
4610475
www: Update user route docs.
thi4go Jan 8, 2021
7522099
tlogbe: Fix anchor bug.
lukebp Jan 9, 2021
e808054
multi: Add timestamp routes.
lukebp Jan 7, 2021
396dd88
fixes
lukebp Jan 11, 2021
15f1372
tlogbe: Add tests for comments CmdNew and pi CmdCommentNew.
thi4go Jan 11, 2021
b3d23fb
tlogbe: CmdEdit comment plugin tests.
thi4go Jan 11, 2021
ef2b782
multi: Add comment timestamp routes.
lukebp Jan 12, 2021
50d4e08
multi: Remove decredplugin voting code.
lukebp Jan 12, 2021
8c426c0
decredplugin: Put cast vote errors back.
lukebp Jan 12, 2021
3af45e7
tlogbe: Add comment cmdDel and pi commentDel plugin tests.
thi4go Jan 12, 2021
3dd1ca0
Move dcrtime calls from util to gitbe.
lukebp Jan 13, 2021
0f40b54
tlogbe: Standardize token decoding.
lukebp Jan 13, 2021
0c6e8c3
multi: Add vote timestamp routes.
lukebp Jan 13, 2021
2840587
Bug fix.
lukebp Jan 13, 2021
07fefc0
Package comments plugin.
lukebp Jan 13, 2021
acb6795
multi: Package tlog.
lukebp Jan 14, 2021
dfac034
Get comments plugin working.
lukebp Jan 15, 2021
91b1ec7
Simplify tlog client.
lukebp Jan 15, 2021
bd529ba
tlogbe: Fix build issues.
lukebp Jan 15, 2021
444ef5e
tlogbe: Hook up dcrdata plugin.
lukebp Jan 15, 2021
2e5e6ce
Update comment tests.
lukebp Jan 15, 2021
726e682
Update pi plugin.
lukebp Jan 15, 2021
a5f33d6
tlogbe: Add hooks to plugin commands.
lukebp Jan 15, 2021
e70800d
tlogbe: Add plugin hooks.
lukebp Jan 16, 2021
ccac5cd
Cleanup tlog errors.
lukebp Jan 16, 2021
f1b0703
Update tlogclient implementation.
lukebp Jan 16, 2021
ed8e061
Cleanup tlog.
lukebp Jan 17, 2021
411170e
tlogbe: Plugins update.
lukebp Jan 17, 2021
29d1231
Update ticketvote plugin.
lukebp Jan 18, 2021
6a7c9b0
All plugins working with new design.
lukebp Jan 18, 2021
6e6af3d
ticketvote: Add linkedfrom command.
lukebp Jan 18, 2021
b249ff3
Add runoff vote winner calc.
lukebp Jan 18, 2021
571a5d1
politeiad: Add plugin batch route.
lukebp Jan 19, 2021
70c3513
Move comment routes to comments api.
lukebp Jan 19, 2021
f1fd945
Add user politeiad plugin.
lukebp Jan 20, 2021
942abb4
Add politeiad client.
lukebp Jan 20, 2021
3909c96
Fix all politeiawww build errors.
lukebp Jan 20, 2021
1958fec
Package config.
lukebp Jan 20, 2021
8713ebe
Add sessions package.
lukebp Jan 20, 2021
5a8f904
politeiawww: Add comments package.
lukebp Jan 21, 2021
715abe6
Fix build issues.
lukebp Jan 21, 2021
3bc93cf
Package event manager.
lukebp Jan 21, 2021
707b9b0
Add support for legacy routes dcrdata uses.
lukebp Jan 21, 2021
162609f
Add routes to comments api.
lukebp Jan 22, 2021
b498758
Finish transfering comment routes.
lukebp Jan 22, 2021
7912ace
Setup comment routes.
lukebp Jan 22, 2021
b201806
Add ticketvote api.
lukebp Jan 22, 2021
9435501
Add ticketvote routes.
lukebp Jan 24, 2021
d000bfc
Finish ticketvote routes.
lukebp Jan 24, 2021
a1db093
Add records API.
lukebp Jan 24, 2021
8bfd66b
Add record routes.
lukebp Jan 27, 2021
758b3f2
Cleanup.
lukebp Jan 27, 2021
3039409
Finish record routes.
lukebp Jan 28, 2021
54b8545
Add pi routes.
lukebp Jan 29, 2021
5559f77
Get pictl to build.
lukebp Jan 30, 2021
9fd2aa3
Add pi api policy route.
lukebp Jan 31, 2021
5109a5f
Work through all new record issues and details.
lukebp Feb 1, 2021
efcada8
Fix record details bug.
lukebp Feb 1, 2021
4f31167
ticketvote plugin settings and policy route.
lukebp Feb 1, 2021
a03db1d
Fix proposal validation bug.
lukebp Feb 1, 2021
3ede3a8
Add printing to politeiawww client.
lukebp Feb 1, 2021
c5ebbce
add temp pi user errors
lukebp Feb 1, 2021
d00b095
Fix tlogbe locking issue.
lukebp Feb 2, 2021
fcdcabc
Improve error handling of politeiawww client.
lukebp Feb 2, 2021
3c1f56c
pictl proposals command.
lukebp Feb 2, 2021
857c8d0
All proposal commands and routes.
lukebp Feb 3, 2021
ce683e1
cleanup
lukebp Feb 3, 2021
b184541
Fix timestamp bug.
lukebp Feb 3, 2021
2a27e07
Hook up comments plugin settings and api policy.
lukebp Feb 4, 2021
939c21d
Fix politeiad client and www API error handling.
lukebp Feb 5, 2021
02b55b2
Record route bug fixes.
lukebp Feb 5, 2021
591a0ea
All comment commands and routes working.
lukebp Feb 5, 2021
27d45cf
Comment count route and command.
lukebp Feb 5, 2021
39f2d05
Pi user plugin error fixes.
lukebp Feb 7, 2021
6b9b299
Sign hex encoded merkle.
lukebp Feb 7, 2021
de04c0f
Vote policy, auth, start, inv.
lukebp Feb 7, 2021
14115f5
Edit vetted record bug fix.
lukebp Feb 7, 2021
f5dbbb7
Fix unvetted comment bug.
lukebp Feb 8, 2021
ab831a5
Vote timestamps command.
lukebp Feb 8, 2021
7b9dbd4
Cast ballot cmd.
lukebp Feb 9, 2021
793f83c
Change linkedfrom route to submissions.
lukebp Feb 9, 2021
f836f33
Fix runoff vote bug.
lukebp Feb 9, 2021
535c82d
Fix record state bug on status change.
lukebp Feb 9, 2021
9f8811e
Prevent expired linkby on set status.
lukebp Feb 9, 2021
ba14ba6
Cleanup.
lukebp Feb 9, 2021
e32e238
Fix JSON typo.
lukebp Feb 10, 2021
f27a543
Fix user records vetted bug.
lukebp Feb 10, 2021
4d463da
Redo vote inv and remove pi vote route.
lukebp Feb 10, 2021
deaf8db
Fix ticketvote deadlock.
lukebp Feb 10, 2021
b65dacd
Work on legacy www route support.
lukebp Feb 10, 2021
5d507d9
Fix politeiawww plugin error handling bug.
lukebp Feb 10, 2021
686c8be
Fix ticketvote bugs.
lukebp Feb 10, 2021
f016a07
Add userproposals cmd and fix bugs.
lukebp Feb 10, 2021
291a2ed
Update policy routes.
lukebp Feb 10, 2021
8139907
Remove unvetted from user cache when made public.
lukebp Feb 11, 2021
610b017
Simplify user cache update.
lukebp Feb 11, 2021
e59a434
Cleanup.
lukebp Feb 11, 2021
e9f84b5
Fix unvetted files bug.
lukebp Feb 12, 2021
0ce8b03
Make record inv command scalable.
lukebp Feb 12, 2021
766c932
Make vote inv scalable.
lukebp Feb 14, 2021
1b7fda4
Fix vote cache bug.
lukebp Feb 14, 2021
bca61f0
Drop in mysql kv.
lukebp Feb 15, 2021
d64723f
Fix vote inv locking bug.
lukebp Feb 15, 2021
9000ed5
Paginate vote timestamps.
lukebp Feb 15, 2021
33ad1ac
Cleanup.
lukebp Feb 15, 2021
5b13b88
Record inventory bug fix.
lukebp Feb 15, 2021
c5ca793
Store data desc in leaf extra data.
lukebp Feb 16, 2021
9527dd0
Add plugin ID to mdstream.
lukebp Feb 16, 2021
d5292ba
Rename user plugin to usermd.
lukebp Feb 16, 2021
74c804f
Move plugin record locking to backend layer.
lukebp Feb 16, 2021
58325a6
Cleanup.
lukebp Feb 17, 2021
d259882
Add pictl command testproposalcapacity.
lukebp Feb 17, 2021
77f1ee6
Fix anchor for leaf bug.
lukebp Feb 18, 2021
e6bfbb8
pictl: Finish proposalloadtest cmd.
lukebp Feb 18, 2021
2bf6128
pictl: Add setupvotetest command.
lukebp Feb 18, 2021
4120a37
pictl: Add votetest command.
lukebp Feb 19, 2021
7453298
Small tweaks.
lukebp Feb 19, 2021
04e9c01
Add comment about potential cast ballot issues.
lukebp Feb 19, 2021
c257ba3
records/v1: Fix user error numbering.
lukebp Feb 19, 2021
63095da
ticketvote: Cache commitment addresses.
lukebp Feb 20, 2021
5ecbd2f
multi: Add batched politeiad requests.
lukebp Feb 21, 2021
a2879e0
pictl: Seed proposals perf improvements.
lukebp Feb 21, 2021
c690633
Merge commit '0a0664e' into tlog
lukebp Feb 21, 2021
f5b0282
Merge commit 'a85be75' into tlog
lukebp Feb 21, 2021
09022aa
Merge branch 'master' into tlog
lukebp Feb 21, 2021
b665519
Add legacy support for www active votes.
lukebp Feb 22, 2021
bd44358
Add legacy support for www vote summaries.
lukebp Feb 22, 2021
f304e9d
Add legacy support for www vote results.
lukebp Feb 22, 2021
c89f48d
Add legacy support for www cast ballot.
lukebp Feb 22, 2021
64e92c4
Add legacy support for www proposal routes.
lukebp Feb 22, 2021
27af449
Change tlogbe name to tstorebe.
lukebp Feb 22, 2021
51b99d5
Add setup scripts and fine tune perf.
lukebp Feb 23, 2021
9823474
Bug fix.
lukebp Feb 24, 2021
bb92a5b
HTTP client append to system cert pool.
lukebp Feb 24, 2021
48c6e87
Update trillian to latest release.
lukebp Feb 24, 2021
80808ee
Cleanup.
lukebp Feb 24, 2021
eb41ebc
go mod tidy
lukebp Feb 24, 2021
9a9e6fe
Drop in leveldb store.
lukebp Feb 24, 2021
bbecd75
ticketvote: Cast ballot bug fix.
lukebp Feb 24, 2021
19655b4
tstorebe: Make record iteration consistent.
lukebp Feb 25, 2021
0bcfeb0
Include plugin ID in mdstream keys.
lukebp Feb 25, 2021
2e8c642
usermd: Bug fix.
lukebp Feb 25, 2021
fe9c40a
politeiad: Add startup docs.
lukebp Feb 26, 2021
170313d
ticketvote: Add linkby testnet defaults.
lukebp Feb 26, 2021
39c0082
politeiawww: Setup pi events.
lukebp Feb 26, 2021
767b69d
Cleanup.
lukebp Feb 27, 2021
ecf06ba
Fix typos.
lukebp Feb 27, 2021
2a77796
Add pi proposal new and edit ntfns.
lukebp Feb 27, 2021
4302665
pi: Get status change ntfns working.
lukebp Feb 27, 2021
7e1b498
pi: Get comment ntfns working.
lukebp Feb 28, 2021
567e6ae
pi: Get vote ntfns working.
lukebp Feb 28, 2021
2f3f4d2
pi: Get vote started ntfn working.
lukebp Feb 28, 2021
b3c8a56
pi: Cleanup ntfns.
lukebp Feb 28, 2021
fe93905
records: Add ability to specify filenames.
lukebp Mar 1, 2021
5a9de7b
Add proposal name tests.
lukebp Mar 1, 2021
bc2b49c
politeiawww/client: Fix verbose printing.
lukebp Mar 1, 2021
617bd63
multi: Add ineligble vote status.
lukebp Mar 1, 2021
08b76e9
ticketvote: Fix bug in set status hook.
lukebp Mar 1, 2021
b171b6a
tstore: Add RecordPartial to TstoreClient.
lukebp Mar 1, 2021
546bc1d
www/ticketvote: Add pd user errors.
lukebp Mar 1, 2021
e41c9c4
Get build passing.
lukebp Mar 2, 2021
971bf2b
pd/ticketvote: Improve start vote errors.
lukebp Mar 2, 2021
6efe17d
Linter fix and bug fix.
lukebp Mar 4, 2021
385f781
politeiad: Add v2 api and backend.
lukebp Mar 4, 2021
7d2385c
politeiad/client: Add v2 methods.
lukebp Mar 8, 2021
baf12c2
politeiawww: Update to pd v2 API.
lukebp Mar 8, 2021
96bd0b2
pictl: Get working.
lukebp Mar 8, 2021
5c8658e
Cleanup and bug fixes.
lukebp Mar 8, 2021
78e283d
politeiad: Organize v1 routes.
lukebp Mar 8, 2021
e293751
politeiad: Implement plugin routes.
lukebp Mar 8, 2021
fd24459
politeiad: Plugin usermd ok.
lukebp Mar 8, 2021
0f2345b
multi: Comments plugin and routes ok.
lukebp Mar 8, 2021
e455723
multi: Ticketvote plugin and routes ok.
lukebp Mar 8, 2021
d4ee7ec
politeiad/pi: Pi plugin ok.
lukebp Mar 8, 2021
8737729
politeiad: Update tstore setup docs.
lukebp Mar 8, 2021
9e0391d
tstore: Fix metadata idx and timestamp.
lukebp Mar 9, 2021
4ac42b9
politeiad/store: Add PutKV method.
lukebp Mar 9, 2021
20b723f
tstore: Bug fixes.
lukebp Mar 9, 2021
6634ece
Naming.
lukebp Mar 9, 2021
839d974
tstore: Save vetted blobs as plain text.
lukebp Mar 10, 2021
99f65d9
tstore: Update TstoreClient methods.
lukebp Mar 10, 2021
2221acb
tstore: Add RecordState method.
lukebp Mar 11, 2021
12bb9c2
politeiad/comments: Support unvetted/vetted.
lukebp Mar 11, 2021
cb95179
politeiawww: Apply comment changes.
lukebp Mar 11, 2021
751401b
tstorebe: Allow token prefixes on reads.
lukebp Mar 11, 2021
c475438
tstore: Move encryption to store.
lukebp Mar 11, 2021
43d74ab
typo
lukebp Mar 11, 2021
cd0dc5c
cleanup.
lukebp Mar 11, 2021
ce6ef4d
Enable TOTP routes.
lukebp Mar 11, 2021
51df7b6
tstore: Status change bug fix.
lukebp Mar 12, 2021
a54a2bd
tstore: Bug fix.
lukebp Mar 12, 2021
64a9428
Bug fixes.
lukebp Mar 12, 2021
fcb69b2
tstore: Cleanup databases.
lukebp Mar 13, 2021
e80adf5
tstorebe/store: Derive key from password.
lukebp Mar 13, 2021
20ee11f
politeiad: Verify config params.
lukebp Mar 13, 2021
410cafa
politeiad: Update README.
lukebp Mar 13, 2021
dd95df5
Cleanup.
lukebp Mar 14, 2021
ec23cc0
ticketvote: Verify record status.
lukebp Mar 14, 2021
bd96aef
ticketvote: Use a vote collider leaf.
lukebp Mar 14, 2021
4e7eaf8
tstorebe/store: Verify unique nonces.
lukebp Mar 15, 2021
4849124
tstorebe/mysql: Cleanup.
lukebp Mar 15, 2021
a03c4c2
multi: Cleanup types.
lukebp Mar 15, 2021
b352ce9
politeiad: Cleanup API formatting.
lukebp Mar 15, 2021
aa1cec3
tstore: Cleanup tlog client.
lukebp Mar 15, 2021
610fc96
tstorebe: Retry vote collider on dup error.
lukebp Mar 16, 2021
b28644a
politeiad: Revert all v1 API changes.
lukebp Mar 16, 2021
fb15325
politeiad: Fix linter errors.
lukebp Mar 16, 2021
dabffd4
multi: Verify all API omitempties.
lukebp Mar 16, 2021
4752294
politeiawww: Fix records API.
lukebp Mar 16, 2021
d05601d
tstorebe/mysql: Fix review issues.
lukebp Mar 17, 2021
3cd70e8
politeiawww/records: Fix unvetted bug.
lukebp Mar 17, 2021
7a4196e
politeiad: Fix setup scripts naming.
lukebp Mar 17, 2021
7d18e9d
politeiawww/client: General cleanup.
lukebp Mar 18, 2021
7c49088
tstorebe/comments: Address review issues.
lukebp Mar 18, 2021
4f0e0d2
multi: Fixing review issues.
lukebp Mar 19, 2021
a41e171
tstorbe/store: Fix leveldb deadlock.
lukebp Mar 19, 2021
d303fb7
multi: Refactor token API.
lukebp Mar 19, 2021
0484f0d
tstorebe: Fix hook json error.
lukebp Mar 19, 2021
2ff99c3
tstore: Docs and cleanup.
lukebp Mar 19, 2021
338750c
multi: Add InventoryOrdered.
lukebp Mar 21, 2021
7436e23
politeiawww: Add legacy www support.
lukebp Mar 21, 2021
05c1dae
politeiawww: Add and test remaining legacy routes.
lukebp Mar 21, 2021
b0d5d07
www/ticketvote: Add summaries page size.
lukebp Mar 21, 2021
a895a87
www/comments: Add pagination to timestamps.
lukebp Mar 21, 2021
930bff6
tstorbe/dcrdata: Cleanup plugin and add docs.
lukebp Mar 22, 2021
f024067
tstore/pi: Cleanup and add docs.
lukebp Mar 22, 2021
b354f8b
tstore: Cleanup.
lukebp Mar 22, 2021
5ebf7d9
tstorebe/usermd: Cleanup and add docs.
lukebp Mar 22, 2021
7d3b3fe
politeiad: Cleanup plugin APIs.
lukebp Mar 23, 2021
6d76944
tstorebe/ticketvote: Cleanup and add docs.
lukebp Mar 23, 2021
fcee39a
tstore/ticketvote: Finish cleanup.
lukebp Mar 24, 2021
765727d
tstore: Key cleanup.
marcopeereboom Mar 24, 2021
349ef3a
multi: Clean up several PR change requests.
marcopeereboom Mar 24, 2021
e390de0
multi: More cleanup.
lukebp Mar 24, 2021
302d679
multi: Fixing more review issues.
lukebp Mar 24, 2021
b68952b
One more time...
lukebp Mar 24, 2021
99e7d26
pd/politeia: Rewrite cmd to use v2 API.
lukebp Mar 25, 2021
ecd91d2
Fix linter errors.
lukebp Mar 25, 2021
ba5af47
www/politeiaverify: Refactor.
lukebp Mar 26, 2021
4579f57
Bug fixes.
lukebp Mar 26, 2021
10426f7
politeiad: Derive tlog key from passphrase.
lukebp Mar 27, 2021
ce3ee97
multi: Validate token with regexp.
lukebp Mar 27, 2021
10b5086
tstorebe: Move tree ID down a layer.
lukebp Mar 27, 2021
dd7af48
tstorbe: Move short token cache to tstore layer.
lukebp Mar 28, 2021
ec1b3aa
pd/ticketvote: Start vote bug fix.
lukebp Mar 28, 2021
1cc3557
tstore/mysql: Encrypted blobs nit.
lukebp Mar 28, 2021
ec0be69
tstorebe/mysql: Add testing field.
lukebp Mar 28, 2021
6cc1c2e
pd/ticketvote: Fix runoff vote bug.
lukebp Mar 28, 2021
f921b1b
Clean READMEs.
lukebp Mar 29, 2021
d7cf0f0
Clean READMEs.
lukebp Mar 29, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ politeiad/politeiad
politeiawww/cmd/politeiawww_dbutil/politeiawww_dbutil
politeiawww/cmd/politeiawww_refclient/politeiawww_refclient
politeiawww/cmd/politeiawwwcli/politeiawwwcli
politeiawww/cmd/pictl/pictl
politeiawww/cmd/politeiawwwtest/politeiawwwtest
politeiawww/cmd/politeiavoter/politeiavoter
politeiawww/politeiawww
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ISC License

Copyright (c) 2013-2019 The btcsuite developers
Copyright (c) 2015-2020 The Decred developers
Copyright (c) 2015-2021 The Decred developers

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down
Loading