(feat): fix citation links not showing up in graph (#547)

This change adds a `type` column to the refs column, and strips the prefix before storing the key in the `refs` table.
This commit is contained in:
Göktuğ Karakaşlı
2020-05-04 15:44:15 +03:00
committed by GitHub
parent 7df50c14ec
commit 11d239d661
7 changed files with 105 additions and 43 deletions

View File

@ -107,7 +107,7 @@
(expect (org-roam-db-query [:select * :from refs])
:to-have-same-items-as
(list (list "https://google.com/" (org-roam-test-abs-path "web_ref.org"))))
(list (list "https://google.com/" (org-roam-test-abs-path "web_ref.org") "website")))
;; Expect rebuilds to be really quick (nothing changed)
(expect (org-roam-db-build-cache)
@ -299,7 +299,7 @@
(it "delete web_ref"
(expect (org-roam-db-query [:select * :from refs])
:to-have-same-items-as
(list (list "https://google.com/" (org-roam-test-abs-path "web_ref.org"))))
(list (list "https://google.com/" (org-roam-test-abs-path "web_ref.org") "website")))
(delete-file (org-roam-test-abs-path "web_ref.org"))
(expect (org-roam-db-query [:select * :from refs])
:to-have-same-items-as