Commit Graph

2645 Commits

Author SHA1 Message Date
keyan 8a96fbb4d0 finally fully working image uploads 2024-03-12 18:51:58 -05:00
keyan 72ecc7b266 s3 and image proxy with broken name resolution 2024-03-12 18:05:28 -05:00
keyan bb41692acc set -e 2024-03-11 15:30:35 -05:00
keyan 32bc3f18d3 add help for all commands 2024-03-11 15:27:18 -05:00
keyan 1e9d40f152 add sndev prisma 2024-03-11 08:55:02 -05:00
Keyan b374758ed3
pin opensearch dashboard
Co-authored-by: ekzyis <ek@stacker.news>
2024-03-10 19:44:24 -05:00
Keyan fc5a4c528b
pin opensearch version
Co-authored-by: ekzyis <ek@stacker.news>
2024-03-10 19:44:02 -05:00
keyan fa3aed2386 smaller db seed 2024-03-10 19:42:07 -05:00
keyan 09a30a43c4 small script cleanup 2024-03-10 18:41:21 -05:00
keyan 4b2596f86b remove script logging 2024-03-10 18:36:00 -05:00
keyan 5572791c91 add sndev psql command 2024-03-10 18:22:54 -05:00
keyan a31d04a095 sndev passthrough to docker and containers 2024-03-10 17:30:11 -05:00
keyan 8cddbe74ff add sndev status 2024-03-10 17:10:38 -05:00
keyan 4ce413af6f ascii art 2024-03-10 16:59:15 -05:00
keyan 0500cbd2ca add sndev withdraw 2024-03-10 16:42:16 -05:00
keyan 714aecc477 add sndev payinvoice 2024-03-10 16:29:10 -05:00
keyan e824261143 improve channel opens 2024-03-10 13:29:21 -05:00
keyan c88ba74268 open channel between ln nodes 2024-03-09 23:47:32 -06:00
keyan c63622b8a4 make bitcoin health check dependent on blockheight 2024-03-09 17:56:07 -06:00
keyan c32782583f add auto-mining 2024-03-09 15:40:00 -06:00
keyan bc85e4b3c5 allow debian useradd with duplicate id 2024-03-09 12:15:36 -06:00
keyan eb7670e5c3 fix perms of shared directories 2024-03-08 20:07:43 -06:00
keyan 0e02aa7d8d copy wallet and macaroon dbs for deterministic wallets/macaroons 2024-03-08 18:40:10 -06:00
keyan 215f330771 reorganize docker and add static certs/macroon to lnd 2024-03-08 13:11:58 -06:00
keyan 7fe959a720 add changes to .env.sample 2024-03-07 21:29:13 -06:00
keyan 85c1303185 begin adding regtest network 2024-03-07 21:24:42 -06:00
keyan 1b275517fd refinements after fresh builds 2024-03-07 16:40:26 -06:00
Keyan 265f92af35
Merge branch 'master' into localdev 2024-03-07 15:24:41 -06:00
keyan af2890075c add db seed to sndev 2024-03-07 15:19:49 -06:00
keyan b3bf3dba28 proper check for postgres health 2024-03-07 13:18:23 -06:00
keyan f2fd2eb1d7 restart: always -> unless-stopped 2024-03-07 10:19:37 -06:00
keyan fab750352f make posix shell 2024-03-07 10:02:59 -06:00
ekzyis 179a539d4d
Parse numeric strings as numbers (#902)
* Parse numeric strings as numbers

* Additionally check for type of field value
2024-03-06 19:45:00 -06:00
keyan 51dba02569 sndev bash script and docker reliability stuff 2024-03-06 19:04:55 -06:00
keyan 0614cfe979 refine docker config 2024-03-06 17:50:01 -06:00
keyan a3428d1edc add hot reloading worker:dev script 2024-03-06 16:50:48 -06:00
keyan b38a5e653c make image aspect ratio a fraction 2024-03-06 15:15:11 -06:00
keyan 575a820a7a fix broken merge 2024-03-06 14:35:45 -06:00
keyan 6a6f4a88aa refine bounty icon margin for wrapping in comments 2024-03-06 14:20:03 -06:00
JP Melanson ecf859ee4c
Change poll icon color when active (#680) (#898) 2024-03-06 14:02:48 -06:00
Keyan 2fc1ef44dd
Fix image rerender jitter and layout shift (#896)
* fix image jitter and layout shift

* prevent unecessary context rerenders
2024-03-06 13:53:46 -06:00
Keyan 48aef15a07
use keyset pagination for notifications (#899) 2024-03-06 13:53:13 -06:00
ekzyis 8d49c034c6
Fix alignment of info icon (#895) 2024-03-05 16:27:29 -06:00
ekzyis b379e7467f
Territory transfers (#878)
* Allow founders to transfer territories

* Log territory transfers in new AuditLog table

* Add territory transfer notifications

* Use polymorphic AuditEvent table

* Add setting for territory transfer notifications

* Add push notification

* Rename label from user to stacker

* More space between cancel and confirm button

* Remove AuditEvent table

The audit table is not necessary for territory transfers and only adds complexity and unrelated discussion to this PR.

Thinking about a future-proof schema for territory transfers and how/what to audit at the same time made my head spin.

Some thoughts I had:

1. Maybe using polymorphism for an audit log / audit events is not a good idea

Using polymorphism as is currently used in the code base (user wallets) means that every generic event must map to exactly one specialized event.

Is this a good requirement/assumption? It already didn't work well for naive auditing of territory transfers since we want events to be indexable by user (no array column) so every event needs to point to a single user but a territory transfer involves multiple users.

This made me wonder: Do we even need a table? Maybe the audit log for a user can be implemented using a view? This would also mean no data denormalization.

2. What to audit and how and why?

Most actions are already tracked in some way by necessity: zaps, items, mutes, payments, ...

In that case: what is the benefit of tracking these things individually in a separate table?

Denormalize simply for convenience or performance? Why no view (see previous point)? Use case needs to be more clearly defined before speccing out a schema.

* Fix territory transfer notification id conflict

* Use include instead of two separate queries

* Drop territory transfer setting

* Remove trigger usage

* Prevent transfers to yourself
2024-03-05 13:56:02 -06:00
keyan 6573ce666b update register stacker number 2024-03-04 21:00:43 -06:00
keyan 2d20d1a8aa new email welcome gif 2024-03-04 21:00:28 -06:00
keyan b5de515f5e render outlawed images and links as text 2024-03-04 19:29:50 -06:00
keyan b16234630b better link rel attr handling 2024-03-04 19:20:14 -06:00
keyan 0a0bfbbb37 replace welcome banner with msm banner 2024-03-04 16:51:36 -06:00
keyan fd7e3b04f9 make tabindex camel cased 2024-03-04 15:38:56 -06:00