Skip to content
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

API listDocsByPath add an optional parameter maxListCount #7993

Closed
GuangDai opened this issue Apr 14, 2023 · 7 comments
Closed

API listDocsByPath add an optional parameter maxListCount #7993

GuangDai opened this issue Apr 14, 2023 · 7 comments
Assignees
Milestone

Comments

@GuangDai
Copy link

GuangDai commented Apr 14, 2023

In what scenarios do you need this feature?

  • I need an API to get all subdocs including the hidden docs in the filetree. The current API "/api/filetree/listDocsByPath" can only get limited docs. The widget ListDocTree can only list limited docs.

Describe the optimal solution

Maybe need to add an new api based on the listDocsByPath?

Describe the candidate solution

No response

Other information

No response

@88250
Copy link
Member

88250 commented Apr 14, 2023

Hello, what is the usage scenario for this requirement?

@GuangDai
Copy link
Author

Hello, what is the usage scenario for this requirement?

In widget ListDocTree, I can only get limited results because of the global config. I have many docs(more than 100) in one dir. So I set the config to 30. If I raise the limit in global config, it will mess up my file tree. The widget can display sub docs in several columns, which is much easier to find doc than doing it in file tree.

@88250
Copy link
Member

88250 commented Apr 14, 2023

Understood, the next release will add a parameter maxListCount to this interface, which is used to specify the maximum list limit.

@88250 88250 self-assigned this Apr 14, 2023
@88250 88250 added this to the 2.8.5 milestone Apr 14, 2023
@GuangDai
Copy link
Author

Hello, what is the usage scenario for this requirement?

I hope there will be an api to get subdocs based on the para I requested. If 0, get all. If bigger than 0, get limited.

@88250 88250 changed the title Need new api to get all subdocs. API listDocsByPath add an optional parameter maxListCount Apr 14, 2023
@88250
Copy link
Member

88250 commented Apr 14, 2023

I hope there will be an api to get subdocs based on the para I requested. If 0, get all. If bigger than 0, get limited.

It's a good idea!

@OpaqueGlass
Copy link
Contributor

请问是否可以考虑在指定maxListCount时不再pushMsg提示;或增加参数忽略提示?

关联 https://ld246.com/article/1706681659402

@88250
Copy link
Member

88250 commented Feb 1, 2024

请问是否可以考虑在指定maxListCount时不再pushMsg提示;或增加参数忽略提示?

关联 https://ld246.com/article/1706681659402

添加参数 ignoreMaxListHint #10290

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants