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

Create custom filter component #98

Open
brucetony opened this issue Aug 29, 2024 · 1 comment
Open

Create custom filter component #98

brucetony opened this issue Aug 29, 2024 · 1 comment
Labels
enhancement New feature or request on hold Needs to be revisited

Comments

@brucetony
Copy link
Collaborator

Because not all of the results are returned for a particular table (pagination), filtering by certain criteria is only appliued to whatever subst is currently loaded. A new component needs to be developed that allows querying the hub for a set of results using the user's given filter criteria. Because there are a lot of filters, the core-http-kit can be used to programmatically build complex filter requests that can be passed to the hub-adapter.

import { Client } from '@privateaim/core-http-kit';
const client = new Client({ baseURL: "https://...." });
client .project.getMany({
    sort: {
        created_at: 'DESC',
        name: 'DESC',
    },
    filter: {
        name: 'foo~',
    },
    page: {
        limit: 50,
        offset: 0,
    },
});
@brucetony brucetony added the enhancement New feature or request label Aug 29, 2024
@brucetony brucetony added the on hold Needs to be revisited label Aug 30, 2024
@brucetony
Copy link
Collaborator Author

On hold until Oct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request on hold Needs to be revisited
Projects
None yet
Development

No branches or pull requests

1 participant