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

Fix #7: Validate that DataReader is not both sortable and limited for GridView #215

Merged
merged 13 commits into from
Nov 10, 2024

Conversation

samdark
Copy link
Member

@samdark samdark commented Sep 13, 2024

Q A
Is bugfix?
New feature?
Breaks BC?

@samdark samdark requested a review from vjik September 13, 2024 19:45
src/GridView.php Outdated Show resolved Hide resolved
@samdark samdark requested a review from vjik September 22, 2024 18:44
@samdark samdark added the status:code review The pull request needs review. label Sep 25, 2024
Copy link
Member

@vjik vjik left a comment

Choose a reason for hiding this comment

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

It's not enough. Sort don't availaible in header, but use sort parameters from URL.

src/BaseListView.php Outdated Show resolved Hide resolved
Copy link
Member

@vjik vjik left a comment

Choose a reason for hiding this comment

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

Yet another problem is founded: when limit is pre-defined links in paginator contains sort parameter.

@samdark
Copy link
Member Author

samdark commented Sep 29, 2024

@vjik yiisoft/data#201

@samdark samdark requested a review from vjik September 29, 2024 11:58
@samdark
Copy link
Member Author

samdark commented Oct 23, 2024

@vjik that PR is now merged. Anything to add in this one?

@vjik
Copy link
Member

vjik commented Oct 27, 2024

@vjik that PR is now merged. Anything to add in this one?

When data reader with limit, links in pagination shouldn't contains sort parameter.

tests/GridView/BaseTest.php Outdated Show resolved Hide resolved
@vjik vjik merged commit b5108c4 into master Nov 10, 2024
16 checks passed
@vjik vjik deleted the 7-validate-datareader-for-gridview branch November 10, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:code review The pull request needs review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants