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

Change the way AllowedSorts are set #865

Merged

Conversation

luilliarcec
Copy link
Contributor

It turns out that it is the only property that is not set when building the QueryBuilder object, it is only set if there is a request with sort key. I'm doing this PR because I'm making some classes to document my APIs that add an integration between this package and Laravel Scribe, but I can't get the value of AllowedSorts because it's not set unless the request brings the sort key.

@freekmurze
Copy link
Member

The tests are failing for this one, could you have a look?

@luilliarcec
Copy link
Contributor Author

Hi, @freekmurze

The test runs completely and is passing, but on completion it ends with an error code.

image

@AlexVanderbist
Copy link
Member

A bit late on our end but thanks for the PR!

@AlexVanderbist AlexVanderbist merged commit d0aabd3 into spatie:main Aug 18, 2023
6 of 11 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.

None yet

3 participants