* add db seed/reset functionality
* speculative db migration support
* update postgresSchema
* refactor: only migrate data, no schema
* implement transaction in db migration function
* refactor db:seed and db:reset
added transaction to both and updated help message
* change table order
* skip on foreign key constraint violations
* skip feed_cache
* set constraints to null
* fix seed and reset
* simplify migrate func
This version of the function should behave similarly to the previous version, but with less repetition and by relying on PostgreSQL's automatic transaction handling, which starts a new transaction for each separate statement when not in a transaction block. Also, it prepares the insert statement only once for each table, which can significantly improve performance when there are many rows to insert.
* fixed release_action_status
* refactor db:seed and db:reset
* minor adjustment to const usage
* fixed usage examples
* refactor seed/migrate
* refactor(database): seed and convert
* refactor(database): make tables list sorted a-z
* chore(deps): go mod tidy
* refactor(database): convert improve log output
---------
Co-authored-by: ze0s <ze0s@riseup.net>
* feat(backend): added change password api endpoint.
* feat(web): added profile UI to change password.
I think we can change the username too, but I don't know if we should for now disabled the username field.
* refactor: don't leak username or password.
* refactor: protect the route.
* generic
* feat: add ChangeUsername
* fix(tests): speculative fix for TestUserRepo_Update
* Revert "feat: add ChangeUsername"
This reverts commit d4c1645002883a278aa45dec3c8c19fa1cc75d9b.
* refactor into 1 endpoint that handles both
* feat: added option to change username as well. :pain:
* refactor: frontend
* refactor: function names in backend
I think this makes it more clear what their function is
* fix: change to 2 cols with separator
* refactor: update user
* fix: test db create user
---------
Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
Co-authored-by: soup <soup@r4tio.dev>
Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
Co-authored-by: ze0s <ze0s@riseup.net>
* refactor(irc): nickserv and methods
* feat(notifications): add new events and refactor send
* feat(irc): handle disconnect reconnect and connect
* feat(irc): update config for ergo local irc server
* feat(irc): retry initial connect
* feat(irc): show nickserv errors
* feat: improve config for http server
* Feature: Support multiple action status per release (#69)
* feat: move release actions to separate table
* chore: update sqlite driver
* fix(indexers): btn api client (#71)
What:
* Api key and torrentId in wrong order
* Set hardcoded ID in jsonrpc request object
* ParsetorrentId from url
Fixes#68
* feat: show irc network status in settings list
* feat: show irc channel status
* chore: go mod tidy
* feat: improve config for http server
* feat: add context to user repo
* feat: only set secure cookie if https
* chore: add package
* feat: get size by api for ptp and btn
* feat: download and parse torrent if not api
* feat: bypass tls check and load meta from file
* fix: no invite command needed for btn
* feat: add ggn api
* feat: imrpove logging
* feat: build request url
* feat: improve err logging