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

Added remembering filter properties of deleted resources grid in browser url #15946

Closed
wants to merge 4 commits into from
Closed

Added remembering filter properties of deleted resources grid in browser url #15946

wants to merge 4 commits into from

Conversation

Ruslan-Aleev
Copy link
Collaborator

@Ruslan-Aleev Ruslan-Aleev commented Dec 24, 2021

What does it do?

  • Added the selected filter properties in the browser url.
  • Fixed processor displaying deleted resources in the trash.
    In the trash, it was possible to find an undeleted resource (any resource from the tree) through a search :)
  • Added a parent to the resource grid.
    The relationship between the deleted parent and the undeleted child resources will be a little clearer. Because many resources are not deleted but appear in the grid and will be deleted due to the parent being deleted.
  • Removed extra padding for heading in trash.

trash

Why is it needed?

Allow to copy/paste the state of the filter with the browser url.

Related issue(s)/PR(s)

#15942
#15935
#15186
#15185
#15184
#15183
#15182
#15181
#15115
#14086

@cla-bot cla-bot bot added the cla-signed CLA confirmed for contributors to this PR. label Dec 24, 2021
@Ruslan-Aleev Ruslan-Aleev requested a review from Jako December 24, 2021 16:53
@Ruslan-Aleev Ruslan-Aleev added pr/review-needed Pull request requires review and testing. type-frontend Issues related to UI/UX issues, mostly about styles and frontend implementations on JavaScript. labels Dec 24, 2021
@Ruslan-Aleev Ruslan-Aleev added this to the v3.0.0-rc1 milestone Dec 24, 2021
@Ruslan-Aleev Ruslan-Aleev marked this pull request as draft December 24, 2021 23:00
@Ruslan-Aleev Ruslan-Aleev marked this pull request as ready for review December 25, 2021 13:09
@theboxer
Copy link
Member

theboxer commented Jan 4, 2022

@GulomovCreative @Ruslan-Aleev keep your comments in english, others might want to read them as well.

@opengeek opengeek modified the milestones: v3.0.0-rc1, v3.1.0 Jan 11, 2022
@Ruslan-Aleev Ruslan-Aleev added pr/ready-for-merging Pull request reviewed and tested and ready for merging. and removed pr/review-needed Pull request requires review and testing. labels Jan 19, 2022
@Ruslan-Aleev Ruslan-Aleev modified the milestones: v3.1.0, v3.0.1 Mar 22, 2022
@opengeek opengeek modified the milestones: v3.0.1, v3.1.0 Apr 28, 2022
@opengeek opengeek closed this Jan 26, 2023
@Ruslan-Aleev Ruslan-Aleev reopened this Jan 26, 2023
@opengeek opengeek removed the pr/ready-for-merging Pull request reviewed and tested and ready for merging. label Jan 26, 2023
if ($deleted = $this->getDeleted()) {
$c->where(['modResource.id:IN' => $deleted]);
} else {
return;
Copy link
Collaborator

Choose a reason for hiding this comment

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

prepareQueryBeforeCount() must always return the xPDOQuery

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

And what kind of where to put here, so as not to return anything? Will this one work?

$c->where(['modResource.id' => 0]);

@Ruslan-Aleev Ruslan-Aleev requested a review from Mark-H January 26, 2023 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed CLA confirmed for contributors to this PR. type-frontend Issues related to UI/UX issues, mostly about styles and frontend implementations on JavaScript.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants