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

Solve problem with deleting filtered activities #3394

Merged
merged 11 commits into from May 12, 2024

Conversation

GerardPolloRebozado
Copy link
Contributor

This pull request solves a problem where deleting all activities while having a filter applied would delete all activities instead of just the ones that are filtered. The issue has been fixed by adding filters to the deleteOrders method in the OrderController and OrderService classes. Now, only the filtered activities will be deleted.

…er applied it deletes all the activites and not the ones that are filtered

\
@GerardPolloRebozado GerardPolloRebozado changed the title "Solve problem with deleting filtered activities" Solve problem with deleting filtered activities May 10, 2024
@dtslvr dtslvr linked an issue May 10, 2024 that may be closed by this pull request
@dtslvr dtslvr self-requested a review May 10, 2024 08:20
@dtslvr
Copy link
Member

dtslvr commented May 10, 2024

Could you please resolve the conflicts before the code review? Thank you very much!

Copy link
Member

@dtslvr dtslvr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution, I have added a few comments

apps/api/src/app/order/order.service.ts Outdated Show resolved Hide resolved
apps/api/src/app/order/order.service.ts Outdated Show resolved Hide resolved
apps/client/src/app/services/data.service.ts Show resolved Hide resolved
apps/client/src/app/services/data.service.ts Outdated Show resolved Hide resolved
apps/client/src/app/services/data.service.ts Outdated Show resolved Hide resolved
apps/api/src/app/order/order.controller.ts Outdated Show resolved Hide resolved
apps/api/src/app/order/order.controller.ts Outdated Show resolved Hide resolved
@GerardPolloRebozado
Copy link
Contributor Author

Applied what your said in the comments but now you can't delete orders using filters due to #3389

Copy link
Member

@dtslvr dtslvr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied what your said in the comments but now you can't delete orders using filters due to #3389

You can remove this line to enable it: https://github.com/ghostfolio/ghostfolio/pull/3389/files#diff-c194725360f0243d507099d20e31d9c13c4c828d1c801eb5ae64b6518fbf795fR404

apps/api/src/app/order/order.controller.ts Outdated Show resolved Hide resolved
apps/api/src/app/order/order.service.ts Outdated Show resolved Hide resolved
apps/api/src/app/order/order.service.ts Outdated Show resolved Hide resolved
apps/api/src/app/order/order.service.ts Outdated Show resolved Hide resolved
apps/client/src/app/services/data.service.ts Outdated Show resolved Hide resolved
@dtslvr dtslvr merged commit 8319b21 into ghostfolio:main May 12, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend DELETE /api/v1/order by filters
2 participants