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

v11, long term. Compatibility with future versions #5

Open
kuncevic opened this issue Oct 6, 2024 · 6 comments
Open

v11, long term. Compatibility with future versions #5

kuncevic opened this issue Oct 6, 2024 · 6 comments

Comments

@kuncevic
Copy link

kuncevic commented Oct 6, 2024

Thank you for great extension ⭐

This is more a question rather than an issue.

As it seems, this extension was created as a follow-up to this discussion. The current major version of Directus is 11 tho as per documentation tested with Directus 10.10.4.

I wonder if this extension has been battle-tested with v11 and if it is safe to rely on that going forward, as it seems there is still no native functionality like that.

@kuncevic kuncevic changed the title v11, long term. Compatability wih the future versions v11, long term. Compatability with future versions Oct 6, 2024
@kuncevic kuncevic changed the title v11, long term. Compatability with future versions v11, long term. Compatibility with future versions Oct 6, 2024
@br41nslug
Copy link
Owner

I havent personally tested the extension with v11 yet however it should work 🤔 None of the functionalities this extension relies on have been changed since 10.10 afaik

@kuncevic
Copy link
Author

kuncevic commented Oct 7, 2024

@br41nslug yeah I see, what do you think, are there any chances similar functionality will land in directus sometime in the future?

@br41nslug
Copy link
Owner

I somewhat doubt it considering the "best" (most performant) way to implement this is on the SQL level like (in postgres):

SELECT *
FROM my_collection
ORDER BY RANDOM();

But I am not sure this is consistently supported for all database providers supported by Directus.

@kuncevic
Copy link
Author

kuncevic commented Oct 7, 2024

@br41nslug does directus support running queries like that natively?

@br41nslug
Copy link
Owner

You can from within backend extensions like this, but when using raw SQL you'll have to be sure of the underlying database compatibility if you'd want to distribute that extension

@kuncevic
Copy link
Author

kuncevic commented Oct 7, 2024

just dig a bit deeper directus/directus#12452 tho this is the best pointer I've found so far directus/directus#3312

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

No branches or pull requests

2 participants