-
Notifications
You must be signed in to change notification settings - Fork 49
Add option to sort discussions by file name #102
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
Conversation
|
Yeah I like this idea, the comments by file name looks quite nice. My only concern is that we are introducing a lot of code to maintain in the |
9e78303 to
a68dfcf
Compare
|
Hi, ❯ ./lua-test.sh
●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●
34 successes / 0 failures / 0 errors / 0 pending : 0.0311 secondsI want to add more tests for discussions because currently I added just basic tests for initializing unlinked discussion nodes. I am not sure where do you want to document testing and development as such. Have you considered something like https://generator.contributing.md/? Please let me know if you agree with this approach or if you prefer something else 🙏. |
|
I updated github workflow and now it runs tests with stable and nightly neovim. I noticed that tests are in 2 workflows - do you want to keep separate |
Yeah we should just have a single flow for Lua tests. Thanks for doing this! I'd been planning to set up running tests through Neovim but hadn't figured out how to do it yet. Let me know when this is functional and ready for review and I'll go through the code. |
b96f94f to
58a3cf3
Compare
|
I added tests for whole tree.lua ( which was split from discussions ). I wanted to further split Let me know if there is anything i need to change. Regarding this question:
Did you consider where should be some basic docs for devs ? thanks. |
|
Hey, thank you for this MR. It's pretty big so I'll try to review it this weekend. And yes I've thought about adding contributing and will work that into my next MR which is also focused mostly on testing. |
| -- and marking discussions as resolved/unresolved. | ||
| local Split = require("nui.split") | ||
| local Popup = require("nui.popup") | ||
| local NuiTree = require("nui.tree") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've setup neodev like this ( path need to be updated to yours path )
{
"folke/neodev.nvim",
opts = {
override = function(root_dir, library)
if root_dir:match("/workspace/nvim/") then
library.enabled = true
library.plugins = true
end
end,
debug = true,
},
},normally neodev loads plugins only for config so you need to force it for other plugins ( there might be other options how to configure this but I found this to be straight forward ).
With current changes for tests you could also setup local config in .luarc.json (ref docs) with paths to local plugins in tests/plugins.
I used these existing classes from plugin because duplicating those to giltab plugin did not seem right.
|
Making edits to a note/comment is broken. Whenever you send a type EditCommentRequest struct {
Comment string `json:"comment"`
NoteId int `json:"note_id"`
DiscussionId string `json:"discussion_id"`
Resolved bool `json:"resolved"`
} |
|
I fixed and tested create, edit, delete of notes and it works now ( I more often create / resolve comments then edit delete so I didn't notice, sorry ). |
…th plugin dependencies
e996430 to
85d39a7
Compare

Hi,
Currently we have discussion tree as list of discussions but when discussion tree is opened it is little bit hard to figure out where the discussions actually are located ( in which files ). You can jump from discussion to reviewer and back but I wanted to have better overview so I was playing around with discussion tree and added option to render file tree which is similar to diffview.nvim file panel. I am still experimenting with it and probably would make sense to write some tests for that 🤔 . Would you agree to add such feature ?