-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add recursive flag to folders get endpoint to retrieve all nested folders #3293
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
Add recursive flag to folders get endpoint to retrieve all nested folders #3293
Conversation
WalkthroughThe changes introduce a new Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
backend/src/server/routes/v1/secret-folder-router.tsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "@typescript-eslint/eslint-plugin". (The package "@typescript-eslint/eslint-plugin" was not found when loaded as a Node module from the directory "/backend".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "@typescript-eslint/eslint-plugin" was referenced from the config file in "backend/.eslintrc.js". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. backend/src/server/routes/sanitizedSchemas.tsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "@typescript-eslint/eslint-plugin". (The package "@typescript-eslint/eslint-plugin" was not found when loaded as a Node module from the directory "/backend".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "@typescript-eslint/eslint-plugin" was referenced from the config file in "backend/.eslintrc.js". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description 📣
Add a new recursive flag to the GET /folders endpoint to retrieve all nested folders within the provided path. Introduced a relativePath field in the response to make folder hierarchy clearer and help distinguish between the requested path and its nested folders, avoiding potential misunderstandings.

Type ✨
Tests 🛠️
Tested with over 1,500 folders and a case with folder nesting up to 200 levels deep.
# Here's some code block to paste some code snippets
Summary by CodeRabbit
New Features
Bug Fixes
directory
property in favor of the newpath
property for better clarity in folder retrieval.Chores
booleanSchema
in favor of a centralized import from the sanitized schemas module.