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

feat(graphql): rewrite GraphQL data provider #6357

Merged
merged 34 commits into from
Oct 14, 2024

Conversation

BatuhanW
Copy link
Member

@BatuhanW BatuhanW commented Sep 19, 2024

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

What is the new behavior?

fixes #5942 #5943

Notes for reviewers

@BatuhanW BatuhanW requested a review from a team as a code owner September 19, 2024 10:11
Copy link

changeset-bot bot commented Sep 19, 2024

🦋 Changeset detected

Latest commit: 1fc9b01

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@refinedev/graphql Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@aliemir aliemir left a comment

Choose a reason for hiding this comment

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

Left couple of comments for types, typos and conventions. Thank you 🙏

packages/graphql/src/dataProvider/options.ts Outdated Show resolved Hide resolved
packages/graphql/src/dataProvider/options.ts Outdated Show resolved Hide resolved
packages/graphql/src/dataProvider/options.ts Outdated Show resolved Hide resolved
packages/graphql/src/dataProvider/options.ts Outdated Show resolved Hide resolved
packages/graphql/src/dataProvider/options.ts Outdated Show resolved Hide resolved
packages/graphql/src/dataProvider/index.ts Outdated Show resolved Hide resolved
@BatuhanW BatuhanW force-pushed the RK-780-refine-improve-graphql-data branch from b0d9a1d to 956abe0 Compare September 24, 2024 10:25
@refine-bot refine-bot temporarily deployed to deploy-preview-website-6357 September 24, 2024 10:51 Inactive
packages/graphql/src/dataProvider/newOptions.ts Outdated Show resolved Hide resolved
packages/graphql/src/utils/buildFilters.ts Outdated Show resolved Hide resolved
@BatuhanW BatuhanW requested a review from a team as a code owner October 7, 2024 13:44
Copy link

cypress bot commented Oct 7, 2024

refine    Run #11547

Run Properties:  status check passed Passed #11547  •  git commit 7c25e45f95 ℹ️: Merge 2195d445c8a4c3f8a34c42a98054975d85e58e06 into 58051002e8fd68acccb5fd034607...
Project refine
Branch Review RK-780-refine-improve-graphql-data
Run status status check passed Passed #11547
Run duration 11m 24s
Commit git commit 7c25e45f95 ℹ️: Merge 2195d445c8a4c3f8a34c42a98054975d85e58e06 into 58051002e8fd68acccb5fd034607...
Committer Batuhan Wilhelm
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 13
View all changes introduced in this branch ↗︎

@refine-bot refine-bot temporarily deployed to deploy-preview-website-6357 October 7, 2024 15:19 Inactive
@refine-bot refine-bot temporarily deployed to deploy-preview-website-6357 October 8, 2024 13:10 Inactive
@refine-bot refine-bot temporarily deployed to deploy-preview-website-6357 October 8, 2024 14:49 Inactive
@refine-bot refine-bot temporarily deployed to deploy-preview-website-6357 October 9, 2024 09:06 Inactive
@refine-bot refine-bot temporarily deployed to deploy-preview-website-6357 October 9, 2024 12:25 Inactive
@refine-bot refine-bot temporarily deployed to deploy-preview-website-6357 October 10, 2024 12:34 Inactive
rename "countMapper" to "getTotalCount" for clarity

get rid of separate buildPagination, buildSorters, buildFilters in getList options and use single buildVariables

remove wrapping response with array in data provider updateMany and deleteMany methods and move to respective options config

deep merge user provided options with base options

add options typescript type
@refine-bot refine-bot temporarily deployed to deploy-preview-website-6357 October 10, 2024 14:36 Inactive
@BatuhanW BatuhanW merged commit f9f0975 into releases/october Oct 14, 2024
15 checks passed
@BatuhanW BatuhanW deleted the RK-780-refine-improve-graphql-data branch October 14, 2024 12:19
@BatuhanW BatuhanW mentioned this pull request Oct 14, 2024
@aliemir aliemir mentioned this pull request Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants