Commit graph

29 commits

Author SHA1 Message Date
Felipe Martin Garcia
05fee53bd0
fix: saving bookmarks inconsistencies (#500)
* chore: updated go-migrate dependencies

* fix: specify if we're saving bookmarks expecting a creation

up until now the SaveBookmarks method was doing some "magic" to do
"upserts" on the databases, but consistency between engines was scarce
and not knowing if we were expecting saving a new bookmark or updating
an existing one was leading to errors and inconsistencies in logic all
around the place. Now we need to specify a creation boolean when
saving and a differnt query will be make (INSERT vs UPDATE).

* fix(api): using incorrect bookmark for content downlaod

* test(db): added test pipeline for databases

Added functions that will share logic among the engines and will be
called on fresh databases on each test run

* dev: added basic docker-compose for development

* chore: uncommented tests

* ci(test): added mysql service

* typo

* test(mysql): select database after reset

* fix(mysql): ignore empty row errors when parsing tags

* fix(mysql): handle insert errors

* chore: added mysql variables to compose

* ci: explicit mysql service port exposed
2022-10-11 23:47:38 +02:00
hulb
09f2465065
refactor:pass ctx to db layer, return err instead of recover panic (#450) 2022-09-30 12:19:36 +02:00
Dean Jackson
4ff6ddd65a
Merge pull request #246 from Midek/master
update url also when offline mode
2020-08-06 22:28:04 +02:00
Dean Jackson
a0ce725167 Exit with non-zero status when add fails 2020-08-06 21:12:34 +02:00
Midov
3fe593d2e7 update url also when offline mode 2020-05-04 00:29:44 +02:00
Radhi Fadlillah
fbd4e37643 Fix custom title and excerpt doesn't saved 2019-09-22 16:17:51 +07:00
Radhi Fadlillah
018f33228a Fix import skipped when title missing #153 2019-09-22 10:55:22 +07:00
Radhi Fadlillah
f68835fdef Minor improvement in cmd description 2019-09-20 17:27:49 +07:00
Radhi Fadlillah
64c62d6b12 Remove repeated code for archiving bookmarks 2019-09-20 16:48:57 +07:00
Radhi Fadlillah
a5b4f78f10 Fix typo 2019-08-30 11:43:53 +07:00
Radhi Fadlillah
11c6680397 Add options to keep title and excerpt when update 2019-08-10 20:13:13 +07:00
Radhi Fadlillah
ad502c6749 Add portable mode 2019-08-09 10:19:43 +07:00
Radhi Fadlillah
af1a32ac4f Now only fetch text content if page is readable 2019-08-05 20:22:27 +07:00
Radhi Fadlillah
f35325ba48 Make add and updateworks on non HTML file 2019-06-10 20:15:09 +07:00
Radhi Fadlillah
a88a25c41a Make no-archival flags works 2019-06-10 15:49:54 +07:00
Radhi Fadlillah
10ddb3fbbe Use gzip which make archive 1/3 smaller 2019-06-10 07:01:53 +07:00
Radhi Fadlillah
b1464bd89b Add flags for seeing log 2019-06-10 00:20:24 +07:00
Radhi Fadlillah
0efe7eae82 Fix: confirmation not show up on batch update 2019-06-10 00:06:51 +07:00
Radhi Fadlillah
94b59a29a7 Refactor archiver 2019-06-09 22:49:25 +07:00
Radhi Fadlillah
89cc8caa23 Confirm to user for batch updating archive 2019-06-09 17:20:51 +07:00
Radhi Fadlillah
dd4c10732a Minor doc fix 2019-06-09 17:02:16 +07:00
Radhi Fadlillah
f4a0ee8e22 Before updating, remove the old archive 2019-06-09 16:59:03 +07:00
Radhi Fadlillah
4e38387170 Add initial archiver 2019-06-09 14:54:07 +07:00
Radhi Fadlillah
c3ce7cd603 Show which book that fail to download when updating 2019-05-24 17:13:19 +07:00
Radhi Fadlillah
e65dd220d4 Better image download 2019-05-24 13:25:29 +07:00
Radhi Fadlillah
80f117c337 Better log message in update 2019-05-23 23:56:38 +07:00
Radhi Fadlillah
b2a3d444d3 Minor fix: wrong log message 2019-05-22 16:17:04 +07:00
Radhi Fadlillah
9a9baf9f91 Implement logic for update cmd 2019-05-22 16:13:52 +07:00
Radhi Fadlillah
1e099fbd27 Restructure project directories 2019-05-21 10:31:40 +07:00