tspvivek / refine-directus Goto Github PK
View Code? Open in Web Editor NEWDirectus dataprovider package for refine.
License: MIT License
Directus dataprovider package for refine.
License: MIT License
Need to remove the fields values during update and update Many
Assignees: @workatease
Labels: bug
Hello! Thank you for updating the Directus SDK.
I noticed that you employ legacy methods in the authentication flow. I'm wondering if it's acceptable to use an alternative authentication method, such as cookies, and utilize the package solely as a data provider?
Hi! I'm willing to add authorization and authentication to your package, would you like to help so we can go faster?
I'm almost done with the new authentication API and will use the permissions endpoint to get the authorization working.
First of all thank you for creating this library.
I'm looking to just pull down a list of content and essentially ignore pagination. I've tried setting pagination: { mode: 'off' }
when using the useList
hook however it seemingly is not having an effect.
I see in the code that it is defaulting to the first page and a set page size. I can set the page size to -1
which I imagine will have the effect of returning all of the content but it looks like it will still make the aggregate count request.
Am I correct in this statement? Would you be willing to accept a PR that will disable the aggregate count request and default the page size to -1 when the pagination mode is set to off
?
Thanks,
In my directus collection, the PK is named structure_id
. In my structure/list.ts
I'm using the following useTable
to get the list:
const { tableProps, sorters, filters } = useTable({
syncWithLocation: true,
dataProviderName: "directus",
meta: {
noStatus: true,
aggregateField: "structure_id",
},
});
Records are returned but the pagination isn't working. I've done a PR that solve the issue #9.
Thanks
This code, where I'm using a resource with a PK named "structure_id", won't work:
const { data, isLoading, isError } = useMany({
resource: "structure",
dataProviderName: "directus",
ids: [1, 2, 3],
});
'Invalid query. Invalid filter key "id" on "structure".
I've done a PR that adds this feature #12
Hi.
The demo at https://stackblitz.com/edit/tspvivek-refine-directus-ecshj4 is not working. The error message "TransportError : socket hang up" is displayed :
Hello! Thank you for creating this tool.
I'm new to "refine" and have been using Directus. I'm interested in trying out your package. I recently noticed that Directus has released SDK version 12.0.0.
Do you have plans to update your package accordingly?
Hi!
We are currently testing Refine and as we already use Directus. As such, we are wondering if you were planning to update your dataprovider to the V4 of Refine?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.