-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions/thoughts on ALOG style functions using CID #23
Comments
@RobStallion thank you for opening this issue/question and sharing your thoughts! 😍 Understanding why we need to make the I plan on making a dent into clarifying this in the https://github.com/dwyl/product-roadmap over the weekend (family commitments 👫 and other demands 🏡 on my time permitting ...) 🔜 |
Content with Persistent
|
inserted |
cid (PK)1 |
name |
address |
prev |
entry_id |
---|---|---|---|---|---|
1541609554 | gVSTedHFGBetxy | Bruce Wane | 1007 Mountain Drive, Gotham | null | gV |
1541618643 | smnELuCmEaX42 | Bruce Wane | Rua Goncalo Afonso, Vila Madalena, Sao Paulo, 05436-100, Brazil | gVSTedHFGBetxy | gV |
1541667890 | alkjsnssuwnd123 | Bruce Wane | 10 Downing Street | smnELuCmEaX42 | gV |
1541098765 | poiuyerfghnt345 | Bruce Wane | 10 Downing Street | alkjsnssuwnd123 | bruce |
Redirect Table:
If a user decides they want to have a human-friendly entry_id
e.g: "bruce" instead of gV
,
then we would need to have a entry_id_redirect
table:
inserted |
old_entry_id | current_entry_id |
---|---|---|
1541098765 | gV | bruce |
such that visiting: myaddressbook.com/gv
should redirect to myaddressbook.com/bruce
@RobStallion does this clarify how content can be queried?
If not, please ask further clarifying questions. thanks!
relates to #22
Insert
From what I can tell
insert
would remain largely unchanged. We would just swap inserting the UUID for a CID we make.Please add thoughts on this if I have overlooked anything
Get
How do we want to handle someone calling
get
with an old/previous CID?Do we want to...
get
calls, where each one would return the 'next iteration' until the end of the line.prev
column redundant (as we would be able to tell the previous version from timestamps)get_previous
(name tbd) that will handle returning old data?Update
How do we want to handle someone calling the
update
function with an old/previous CID?inserted
cid
(PK)1name
address
prev
The text was updated successfully, but these errors were encountered: