memos icon indicating copy to clipboard operation
memos copied to clipboard

[WIP] feat: memos relation backend implment

Open CorrectRoadH opened this issue 2 years ago • 4 comments

  • [ ] create memos relation table
  • [ ] create a find relation memos id in store
  • [ ] old memos API contain relation memos id OR an additional api to get relation memos id
  • [ ] add unit test

Design draft(need to discuss):

  1. Link in single direct.
  2. Two Api to get memos: to link and linked
CleanShot 2023-04-21 at 20 19 38@2x

CorrectRoadH avatar Apr 20 '23 07:04 CorrectRoadH

@palmenhq FYI

boojack avatar Apr 20 '23 11:04 boojack

hey @CorrectRoadH, awesome stuff! I was curious if you have any ideas how to create the relationships from a user and/or consumer perspective?

Perhaps we should join forces as i recently made #1562? An idea could be to try parsing out any mention of m/NNN (representing a memo link, similar to how #tags are used) and attach any found ids to the POST /api/memo request payload? (similar to how resourceIdList works)

@CorrectRoadH @boojack any thoughts on that approach?

palmenhq avatar Apr 21 '23 14:04 palmenhq

@palmenhq If we put the relation in memo content, it will be hard to process in the future. So I suggest we should use the same way as resource&memo. 👇

image

boojack avatar Apr 22 '23 01:04 boojack

Uffizzi Ephemeral Environment deployment-23062

:cloud: https://app.uffizzi.com/github.com/usememos/memos/pull/1575

:page_facing_up: View Application Logs etc.

What is Uffizzi? Learn more!

github-actions[bot] avatar Apr 23 '23 06:04 github-actions[bot]

Implement in https://github.com/usememos/memos/pull/1618.🥳

CorrectRoadH avatar May 01 '23 08:05 CorrectRoadH