資料夾分類 / Support collection or folder#442
Conversation
6dfa6a4 to
d320f95
Compare
c59b5b4 to
e688769
Compare
65512e5 to
0be0ef2
Compare
|
Server doesn't response after I register new user and login on this PR (commit fd89373), and the error log below: |
| name: Sequelize.TEXT, | ||
| ownerId: Sequelize.UUID, | ||
| createdAt: Sequelize.DATE, | ||
| updatedAt: Sequelize.DATE |
There was a problem hiding this comment.
It seems that we have to add migration manually for sequelize-hierarchy:
- updatedAt: Sequelize.DATE
+ updatedAt: Sequelize.DATE,
+
+ hierarchyLevel: Sequelize.STRING,
+ parentId: Sequelize.UUIDThere was a problem hiding this comment.
Yes, you're right. Thanks for your great investigation.
We will push new commit as soon as possible.
sequelize-hierarchy is a sequelize plugin providing convenient way to maintain hierarchy structure. To archieve this goal, it will create new table called FoldersAncestors to maintain relationship between folders.
fd89373 to
8575933
Compare
|
Has someone tested this PR in detail?
|
|
When you remove a folder, all notes in that folder will gone instead of going to root folder. |
|
@david50407 Do you mean that move notes to root folder better than delete all notes in the folder? |
|
Or maybe let user choose where these notes go while deleting folders.
(Another folder or delete them)
Hsin Ta Chan <notifications@github.com>於 2017年10月21日 週六,10:48寫道:
… @david50407 <https://github.com/david50407> Do you mean that move notes
to root folder better than delete all notes in the folder?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#442 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAzY8WCFs9nb5Gu_826f9W9NYaPMgOZAks5suVtlgaJpZM4NLsri>
.
|
|
@david50407 |
|
I'm more asking for migrations from an existing instance and database. I just checked the background of these changes and it seems very good. But of course we need to provide a proper migration, so we need to make sure that we can redirect and migrate the existing notes when we want to merge this feature Also, do you have an example instance? |
|
@SISheogorath
And we build an example instance at https://intense-waters-94449.herokuapp.com/, everyone can test this feature through it. |
|
This is AWESOME!!! ❤️ I'll make sure this makes it into the upcoming release! |
|
To be honest I don't really need folders to arrange my docs, which is, in my opinion, quite contradicted to the usages of tags. But I do hope to have "view" options in the dashboard, like a "list" view or a "tag" view, to have a kind-of bird view of docs I have, especially when hackmd adds docs you check to your dashboard automatically, which is a pretty handy feature too, BTW. The current icon view is good, but when you have docs more than a certain number, browsing among icons is really a nightmare. A convenient and straight-forward solution is to provide an option to show a full tag list somewhere in the dashboard and a check box is in front of each tag. Then I could check up the tags I want to see, instead of searching in a tag search bar. Hope this doesn't offend the UI designers who made the tag search bar. At last, hackmd is awesome. |
|
Hi @syhsu |
|
Agreed, I also think that the directory view is more independent from the current history view. Central tagging is also way more difficult in HackMD since tags are part of the document. But that's another story. For this PR I think we are on a good way and I would like to see it in 1.1.0-ce. But when there is a majority against this change we can also re-discuss it. I think folders and directories allow to categorize notes by adding a main topic above. Tags are different by design since they allow to add one document into multiple categories. |
|
Hello @dada8397, And hello @SISheogorath, As for document organising, I really think tags can totally replace folders and can provide better user experiences via searching. My point is that searching is more convenient and efficient than organizing since search engines have changed how people memorize things, transactive memory. Tags provide not only a "flat" view of documents but also a structure of scaffolds for tracking your documents/thoughts. P.S. Maybe using what question I ask when I organize a doc is a better way to explain my idea. When organizing a document, I ask myself what tags I should make to allow me find it in the future, not where I should put it. |
|
I agree that the tag-based search for files is a good way of organising / sorting stuff if one is alone. But as I understood it, hackmd is mainly meant as a collaboration system. Because currently, one of us opens a new hackmd and sends the link around. This results in a myriad of links flowing around somewhere in some chat channels. We constantly have to ask for links to hackmds that others opened. |
|
To be honest, after all this time, and all the changes we made, I don't seeing this implemented this way any time soon. To be fair and not keeping anyone up with this, I'll close this PR. You did an awesome work and it's really nice, my problem with it is just that the change is too invasive. Sorry for that. Hope you still enjoy working with use! |
Issue: #109
To implement folder feature, we create
Folderstable and introducesequelize-hierarchymodule which will createFoldersAncestorsto maintain relationship between folders.Each user will have a root folder. If user is new registered or there is no root folder assigned to user, it will create it automatically.
Also, notes created before folder feature will show in root folder.