autobrr/internal/http
soup 2bd1a68a94
feat(feeds): add force run (#1243)
* feat(feeds): add force run

* fix: simplify ForceRun

* add confirmation modal

* handle errors by using the test func

* require user input to run

* make sure to reschedule next job after forcerun

* refactor modal centering with grid

* refactor: Simplify startJob and forceRun logic

- Refactor `startJob` to accept a `runImmediately` flag. This flag controls whether the job should be run immediately or scheduled for later. This change simplifies the `ForceRun` function by allowing it to call `startJob` with `runImmediately` set to `true`.

- Remove redundant checks in `ForceRun` related to feed type. These checks are handled in `startJob`.

BREAKING CHANGE: The `startJob` function now requires a second argument, `runImmediately`. This change affects all calls to `startJob`.

* fix(web) Invalidate queries after forceRun

* refactor(feeds): init and test run

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
2023-11-18 21:54:53 +01:00
..
action.go feat(releases): replay actions (#932) 2023-05-15 21:30:04 +02:00
apikey.go feat(http): improve error handling (#1006) 2023-07-02 14:03:39 +02:00
auth.go fix(auth): too restrictive session handling (#933) 2023-05-15 19:09:06 +02:00
config.go feat(web): show more app info (#1145) 2023-09-22 22:05:14 +02:00
download_client.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
encoder.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
feed.go feat(feeds): add force run (#1243) 2023-11-18 21:54:53 +01:00
filter.go enhancement(web): ui overhaul (#1155) 2023-11-18 14:46:16 +01:00
health.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
indexer.go fix(indexes): toggle on and off with switch (#1164) 2023-10-03 21:57:11 +02:00
irc.go feat(http): improve error handling (#1006) 2023-07-02 14:03:39 +02:00
logs.go feat(logs): sanitize basic auth in urls (#1188) 2023-10-28 12:04:57 +02:00
logs_sanitize_test.go feat(logs): sanitize basic auth in urls (#1188) 2023-10-28 12:04:57 +02:00
middleware.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
notification.go feat(http): improve error handling (#1006) 2023-07-02 14:03:39 +02:00
release.go fix(releases): search with postgres (#1181) 2023-10-16 20:27:15 +02:00
server.go feat(config): check for updates reading from config (#1038) 2023-09-10 16:59:59 +02:00
update.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00