-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
feat(core): Add endpoint GET /projects/:projectId/folders (no-changelog) #13519
base: ado-3167-be-add-endpoint-to-delete-folder
Are you sure you want to change the base?
feat(core): Add endpoint GET /projects/:projectId/folders (no-changelog) #13519
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
8125da0
to
e4d2f90
Compare
…be-add-endpoint-to-list-folders
…be-add-endpoint-to-list-folders
@@ -213,7 +213,9 @@ export class FolderRepository extends Repository<FolderWithWorkflowCount> { | |||
direction: 'DESC' | 'ASC', | |||
): void { | |||
if (field === 'name') { | |||
query.orderBy('LOWER(folder.name)', direction); | |||
query | |||
.addSelect('LOWER(folder.name)', 'folder_name_lower') |
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.
Fixes bug that found that throws error if sortBy name without explicitly selecting name
|
||
const [data, count] = await this.folderService.getManyAndCount( | ||
projectId, | ||
payload as ListQuery.Options, |
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.
removing this type assertion would require some more refactoring in the folder service and repository as in the workflow service and repository
Based on PR #13516
Chain of upstream PRs as of 2025-02-25
PR feat(core): Add endpoint PATCH
/projects/:projectId/folders/:folderId
(no-changelog) #13454:master
←ado-3168-be-add-endpoint-to-rename-folder
PR feat(core): Update PATCH
/projects/:projectId/folders/:folderId
to support tags (no-changelog) #13456:ado-3168-be-add-endpoint-to-rename-folder
←ado-3170-be-add-endpoint-to-update-folder-tags
PR feat(core): Add endpoint DELETE
/projects/:projectId/folders/:folderId
(no-changelog) #13516:ado-3170-be-add-endpoint-to-update-folder-tags
←ado-3167-be-add-endpoint-to-delete-folder
ado-3167-be-add-endpoint-to-delete-folder
←ado-3270-be-add-endpoint-to-list-folders
Summary
This endpoint retrieves a list of available folders where the user can move the contents of a deleted folder.
Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/ADO-3270/[be]-add-endpoint-to-list-folders
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)