Commit Graph

369 Commits

Author SHA1 Message Date
57a45adb5d Add RLS permissions on the label table 2022-03-30 11:34:26 -07:00
15cf0d07e9 Allow UPDATE on the labels table
labels are updated when users change their colour or description.
2022-03-30 10:56:01 -07:00
b6c04f3508 fix saving report item by linking to elastic page 2022-03-28 20:38:54 +08:00
6597cc37b6 add created_at and updated_at to newsletter emails and sort by created_at desc 2022-03-22 18:43:47 +08:00
56c45fd1f6 Postgres migrations for the Elastic backend migration
These are cherry picked from the elastic branch so we can run them
and migrate data before moving to elastic as the primary page
backend.
2022-03-15 14:00:22 -07:00
78cb194912 Add package file back to migration image
This is needed when running via docker-compose
2022-03-03 11:05:42 -08:00
cf9e470f74 Create trigger with a new name 2022-02-24 22:38:34 -08:00
ae467d44f9 Syntax 2022-02-24 22:31:34 -08:00
e8ac5ed0c1 Remove the OR REPLACE when creating the article trigger 2022-02-24 22:28:00 -08:00
3926cefc1f Add comment to search index query 2022-02-24 22:07:26 -08:00
df3a0e1640 Add the link domain to the search index
This adds the domain of the saved link to the search index in
two formats, the full domain like www.omnivore.app and just
the secondary domain like `omnivore`.

This also adds some ranking to search, making title, description,
and domain more highly ranked than the content but search results
wont change as we still order by saved_at.
2022-02-24 22:07:26 -08:00
5651c92efe ingore case when checking name uniqueness 2022-02-24 14:44:49 +08:00
138c9682cd update tables 2022-02-24 14:44:48 +08:00
e74f334db9 update entity 2022-02-24 14:44:48 +08:00
966295385a add sql 2022-02-24 14:44:48 +08:00
d53e94aeb2 add tests for create article 2022-02-16 16:14:14 +08:00
77ba7531f3 add tests for upload 2022-02-16 15:26:11 +08:00
5f81cd4729 Remove root pkg dependencies from db docker image
Because this is just used to execute the migrations we can
use the non-locked versions here and don't need to pull in all
of the root workspace packages.
2022-02-13 22:12:19 -08:00
84f32935f5 Open source omnivore 2022-02-11 09:24:33 -08:00