Closed RobStallion closed 5 years ago
:entry_id
with cid. Also update relevant documentation. insert_entry_id/1
in insert needs to be replaced with DwylCid.cid/1
(the current function I'm using to create CIDs. Will likely change)insert looks like we would have to remove the insert_entry_id/1
function (this function can probably be removed from the app completely as well no longer be used)
@RobStallion thank you for opening this issue. ✨
Please focus on the open pull requests in CID before
doing any work on alog.
We need to re-think how alog works and unless you have a decent amount of experience with both existing CMS and Ecto internals you won't accidentally stumble upon the optimal solution to this problem.
Closing this issue in favour of https://github.com/dwyl/phoenix-ecto-append-only-log-example/issues/23 and https://github.com/dwyl/phoenix-ecto-append-only-log-example/issues/22
@RobStallion thanks for consolidating the issue into the example first. 👍
Relates to https://github.com/dwyl/alog/issues/15, https://github.com/dwyl/cid/issues/1, https://github.com/dwyl/auth/issues/25 & https://github.com/dwyl/cid/issues/11
Replace/update alog so that it creates CIDs based on the content passed to it instead of creating UUIDs.
Will be using this branch to test this for now. This can be updated later once we have a our CID module working as we would like. For now just wanted to get a better understanding of how this functionality will work in alog.
The way alog currently inserted into a database will need to be updated to look something like this...
inserted
cid
(PK)1name
address
prev
See the faqs section of the CID readme for more info on this point.