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

Graphql dataProvider #1079

Merged
merged 86 commits into from
Sep 20, 2021
Merged

Graphql dataProvider #1079

merged 86 commits into from
Sep 20, 2021

Conversation

salihozdemir
Copy link
Contributor

@salihozdemir salihozdemir commented Sep 9, 2021

Test me! 'MASTER'
Link to GRAPHQL-DATAPROVIDER

fix #156

Test documentation! 'MASTER'
Link to GRAPHQL-DATAPROVIDER

@refine-bot
Copy link
Contributor

Hello from PR Helper

Is your PR ready for review and processing? Mark the PR ready by including #pr-ready in a comment.

If you still have work to do, even after marking this ready. Put the PR on hold by including #pr-onhold in a comment.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 9, 2021

Jest Coverage

File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 87.5 69.15 77.24 87.37
File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 87.5 69.15 77.24 87.37
_airtable/src 90.28 88.46 85.71 89.8
_ index.ts 90.28 88.46 85.71 89.8 74-78,145
_airtable/test/create 100 100 100 100
_ index.mock.ts 100 100 100 100
_airtable/test/deleteMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_airtable/test/deleteOne 100 100 100 100
_ index.mock.ts 100 100 100 100
_airtable/test/getList 100 100 100 100
_ index.mock.ts 100 100 100 100
_airtable/test/getMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_airtable/test/getOne 100 100 100 100
_ index.mock.ts 100 100 100 100
_airtable/test/update 100 100 100 100
_ index.mock.ts 100 100 100 100
_airtable/test/updateMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_altogic/src 62.03 38.67 74.07 60.33
_ index.ts 62.03 38.67 74.07 60.33 15-25,34-44,49,77-82,156-167,227-277
_altogic/test/create 100 100 100 100
_ index.mock.ts 100 100 100 100
_altogic/test/custom 100 100 100 100
_ index.mock.ts 100 100 100 100
_altogic/test/deleteMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_altogic/test/deleteOne 100 100 100 100
_ index.mock.ts 100 100 100 100
_altogic/test/getList 100 100 100 100
_ index.mock.ts 100 100 100 100
_altogic/test/getMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_altogic/test/getOne 100 100 100 100
_ index.mock.ts 100 100 100 100
_altogic/test/update 100 100 100 100
_ index.mock.ts 100 100 100 100
_altogic/test/updateMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_core/src/assets/images 100 100 100 100
_ refine-collapsed.svg 100 100 100 100
_ refine.svg 100 100 100 100
_core/src/components 100 100 25 100
_ index.ts 100 100 25 100
_core/src/components/authenticated 95.65 80 100 95
_ index.tsx 95.65 80 100 95 43
_core/src/components/buttons 100 100 60 100
_ index.ts 100 100 60 100
_core/src/components/buttons/clone 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/buttons/create 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/buttons/delete 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/buttons/edit 95.24 100 50 94.74
_ index.tsx 95.24 100 50 94.74 43
_core/src/components/buttons/export 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/buttons/import 100 87.5 100 100
_ index.tsx 100 87.5 100 100 31
_core/src/components/buttons/list 94.44 100 50 94.12
_ index.tsx 94.44 100 50 94.12 37
_core/src/components/buttons/refresh 96 100 50 95.24
_ index.tsx 96 100 50 95.24 52
_core/src/components/buttons/save 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/buttons/show 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/containers 100 100 0 100
_ index.ts 100 100 0 100
_core/src/components/containers/refine 81.25 41.3 25 80.36
_ index.tsx 81.25 41.3 25 80.36 117-120,140,193-205
_core/src/components/containers/resource 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/containers/routeProvider 85 78.57 62.5 83.64
_ index.tsx 85 78.57 62.5 83.64 68,84,100,139,178-188
_core/src/components/crud 100 100 0 100
_ index.ts 100 100 0 100
_core/src/components/crud/create 100 94.44 100 100
_ index.tsx 100 94.44 100 100 40
_core/src/components/crud/edit 97.06 84.21 50 96.77
_ index.tsx 97.06 84.21 50 96.77 124
_core/src/components/crud/list 100 93.75 100 100
_ index.tsx 100 93.75 100 100 37
_core/src/components/crud/show 96.77 86.36 50 96.43
_ index.tsx 96.77 86.36 50 96.43 95
_core/src/components/fields 100 100 10 100
_ index.ts 100 100 10 100
_core/src/components/fields/boolean 100 83.33 100 100
_ index.tsx 100 83.33 100 100 25,27
_core/src/components/fields/date 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/fields/email 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/fields/file 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/fields/image 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/fields/markdown 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/fields/number 100 80 100 100
_ index.tsx 100 80 100 100 39
_core/src/components/fields/tag 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/fields/text 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/fields/url 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/layoutWrapper 88.24 96.15 75 86.21
_ index.tsx 88.24 96.15 75 86.21 65-72,77
_core/src/components/layoutWrapper/components 100 100 100 100
_ index.ts 100 100 100 100
_core/src/components/layoutWrapper/components/footer 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/layoutWrapper/components/header 100 82.35 100 100
_ index.tsx 100 82.35 100 100 25,31
_core/src/components/layoutWrapper/components/layout 100 50 100 100
_ index.tsx 100 50 100 100 22
_core/src/components/layoutWrapper/components/offLayoutArea 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/layoutWrapper/components/sider 100 70.59 100 100
_ index.tsx 100 70.59 100 100 33-35,50-75
_ styles.ts 100 100 100 100
_core/src/components/layoutWrapper/components/title 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/notification 87.5 66.67 80 87.5
_ index.tsx 87.5 66.67 80 87.5 54-62
_core/src/components/notification/components 100 100 100 100
_ index.ts 100 100 100 100
_core/src/components/notification/components/notificationProgress 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/pages 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/pages/error 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/pages/login 94.74 100 50 94.12
_ index.tsx 93.33 100 50 92.31 67
_ styles.ts 100 100 100 100
_core/src/components/pages/ready 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/routeChangeHandler 100 75 100 100
_ index.tsx 100 75 100 100 13
_core/src/components/table 100 100 100 100
_ index.ts 100 100 100 100
_core/src/components/table/components 100 100 0 100
_ index.ts 100 100 0 100
_core/src/components/table/components/filterDropdown 84.09 58.33 100 82.5
_ index.tsx 84.09 58.33 100 82.5 43-46,56-59,69
_core/src/contexts/auth 92.59 58.33 71.43 90.24
_ index.tsx 92.59 58.33 71.43 90.24 7-8,10-11
_core/src/contexts/components 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/contexts/data 100 50 100 100
_ index.tsx 100 50 100 100 36
_core/src/contexts/notification 91.18 71.43 80 90
_ actionTypes.ts 100 100 100 100
_ index.ts 100 100 100 100
_ notificationContext.tsx 88 66.67 66.67 86.36 11,22,50
_core/src/contexts/refine 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/contexts/resource 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/contexts/translation 90 100 75 90
_ index.tsx 90 100 75 90 9
_core/src/contexts/unsavedWarn 33.33 100 0 50
_ index.tsx 33.33 100 0 50 7,11-13
_core/src/definitions 100 100 100 100
_ index.ts 100 100 100 100
_core/src/definitions/config 100 100 100 100
_ index.ts 100 100 100 100
_core/src/definitions/helpers 100 100 100 100
_ index.ts 100 100 100 100
_core/src/definitions/helpers/handleNotification 100 100 100 100
_ index.ts 100 100 100 100
_core/src/definitions/helpers/importCSVMapper 100 100 100 100
_ index.ts 100 100 100 100
_core/src/definitions/helpers/userFriendlyResourceName 100 75 100 100
_ index.ts 100 75 100 100 5
_core/src/definitions/helpers/userFriendlySeconds 100 100 100 100
_ index.ts 100 100 100 100
_core/src/definitions/table 96.43 83.33 100 95.83
_ index.ts 96.43 83.33 100 95.83 98,107,124
_core/src/definitions/upload 86.67 50 80 86.67
_ index.ts 86.67 50 80 86.67 25-26
_core/src/hooks 90.91 50 73.33 90.48
_ index.ts 100 100 100 100
_ useFileUploadState.ts 88.24 25 100 85.71 18,35
_ useListResourceQueries.ts 87.1 100 60 87.1 11,27,48,52
_core/src/hooks/auth 100 100 83.33 100
_ index.ts 100 100 83.33 100
_core/src/hooks/auth/useAuthenticated 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/auth/useCheckError 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/auth/useGetIdentity 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/auth/useLogin 100 71.43 100 100
_ index.ts 100 71.43 100 100 47-48
_core/src/hooks/auth/useLogout 94.44 70 100 94.44
_ index.ts 94.44 70 100 94.44 40
_core/src/hooks/auth/usePermissions 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/data 72.38 43.46 68.18 74.14
_ index.ts 100 100 72.73 100
_ useApiUrl.ts 100 100 100 100
_ useCreate.ts 79.31 100 60 80 92-102
_ useCreateMany.ts 96.15 100 80 95.45 87
_ useCustom.ts 88 37.5 75 88 81-84
_ useDelete.ts 63.83 36.59 66.67 66.67 106,110,114,142-177,189-203,223-226,249-252
_ useDeleteMany.ts 63.64 48.57 61.54 66.22 105,109,113,140-176,190-193,219-230
_ useList.ts 87.5 50 75 87.5 74-77
_ useMany.ts 87.5 50 75 87.5 64-67
_ useOne.ts 86.96 43.75 75 86.96 61-64
_ useUpdate.ts 64.84 38.46 66.67 67.11 118,122,126,154-192,209-223,244
_ useUpdateMany.ts 64.13 48.57 61.54 66.23 119,123,127,155-194,211-225,243
_core/src/hooks/export 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/fields 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/fields/useCheckboxGroup 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/fields/useRadioGroup 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/fields/useSelect 95.56 93.75 100 94.74
_ index.ts 95.56 93.75 100 94.74 137-138
_core/src/hooks/form 97.62 86.67 33.33 96.97
_ index.ts 100 100 20 100
_ useForm.ts 96.67 86.67 100 96.15 133
_core/src/hooks/form/useCloneForm 100 92.31 100 100
_ index.ts 100 100 100 100
_ useCloneForm.ts 100 92.31 100 100 66
_core/src/hooks/form/useCreateForm 69.23 25 36.36 68.75
_ index.ts 100 100 100 100
_ useCreateForm.ts 68 25 30 68.09 110-137,151-152,157-160,166
_core/src/hooks/form/useDrawerForm 66.67 37.1 42.86 62.79
_ index.ts 100 100 0 100
_ useDrawerForm.ts 65.22 37.1 50 61.9 95-97,105-107,116-117,122-139
_core/src/hooks/form/useEditForm 72.6 52.5 33.33 70.77
_ index.ts 100 100 100 100
_ useEditForm.ts 71.83 52.5 27.27 70.31 156-196,205-206,211-214,220
_core/src/hooks/form/useModalForm 80 62.07 66.67 78.72
_ index.ts 100 100 0 100
_ useModalForm.ts 79.17 62.07 80 78.26 110-112,120-123,136-146
_core/src/hooks/form/useStepsForm 83.33 53.85 25 81.82
_ index.ts 100 100 0 100
_ useStepsForm.ts 80 53.85 33.33 80 52,66
_core/src/hooks/import 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/hooks/list 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/list/useSimpleList 74.68 66.67 28.57 76.56
_ index.ts 100 100 0 100
_ useSimpleList.ts 74.03 66.67 33.33 76.19 122-128,140-149,171-172,176-180
_core/src/hooks/modal 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/modal/useModal 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/hooks/navigation 100 90 100 100
_ index.ts 100 90 100 100 18,54
_core/src/hooks/notification 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/notification/useCancelNotification 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/hooks/redirection 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/refine 100 100 100 100
_ index.ts 100 100 100 100
_ useMutationMode.ts 100 100 100 100
_ useSyncWithLocation.ts 100 100 100 100
_ useTitle.tsx 100 100 100 100
_core/src/hooks/refine/useWarnAboutChange 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/resource 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/resource/useMenu 95.65 68.18 100 95.65
_ index.tsx 95.65 68.18 100 95.65 35
_core/src/hooks/resource/useResource 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/resource/useResourceWithRoute 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/show 100 92.86 100 100
_ index.ts 100 100 100 100
_ useShow.ts 100 92.86 100 100 49
_core/src/hooks/table 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/table/useEditableTable 84.21 50 42.86 88.24
_ index.ts 100 100 0 100
_ useEditableTable.ts 82.35 50 50 87.5 66,71
_core/src/hooks/table/useTable 72.41 66.07 37.5 74.32
_ index.ts 100 100 100 100
_ useTable.ts 71.76 66.07 28.57 73.97 111-117,139-151,193-203,207-213
_core/src/hooks/translate 100 75 100 100
_ index.ts 100 100 100 100
_ useGetLocale.ts 100 100 100 100
_ useSetLocale.ts 100 100 100 100
_ useTranslate.ts 100 75 100 100 15
_core/test 100 100 100 100
_ dataMocks.ts 100 100 100 100
_ index.tsx 100 100 100 100
_nestjsx-crud/src 80.79 50.75 82.61 76.99
_ index.ts 80.79 50.75 82.61 76.99 30-39,46-54,58-68,188-193,231,247,251,259,261,264-266
_nestjsx-crud/test/create 100 100 100 100
_ index.mock.ts 100 100 100 100
_nestjsx-crud/test/custom 100 100 100 100
_ index.mock.ts 100 100 100 100
_nestjsx-crud/test/deleteMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_nestjsx-crud/test/deleteOne 100 100 100 100
_ index.mock.ts 100 100 100 100
_nestjsx-crud/test/getList 100 100 100 100
_ index.mock.ts 100 100 100 100
_nestjsx-crud/test/getMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_nestjsx-crud/test/getOne 100 100 100 100
_ index.mock.ts 100 100 100 100
_nestjsx-crud/test/update 100 100 100 100
_ index.mock.ts 100 100 100 100
_nestjsx-crud/test/updateMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_simple-rest/src 83.55 54.69 76 81.74
_ index.ts 83.55 54.69 76 81.74 15-24,33-35,65-66,139-150,210,234,238,246,248,251-253
_simple-rest/test/create 100 100 100 100
_ index.mock.ts 100 100 100 100
_simple-rest/test/custom 100 100 100 100
_ index.mock.ts 100 100 100 100
_simple-rest/test/deleteMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_simple-rest/test/deleteOne 100 100 100 100
_ index.mock.ts 100 100 100 100
_simple-rest/test/getList 100 100 100 100
_ index.mock.ts 100 100 100 100
_simple-rest/test/getMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_simple-rest/test/getOne 100 100 100 100
_ index.mock.ts 100 100 100 100
_simple-rest/test/update 100 100 100 100
_ index.mock.ts 100 100 100 100
_simple-rest/test/updateMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_strapi/src 89.31 58.18 82.61 86.32
_ dataProvider.ts 89.31 58.18 82.61 86.32 14-23,129-130,166,187,191,199,201,204-206
_strapi/src/helpers 100 100 100 100
_ auth.ts 100 100 100 100
_strapi/test/auth 100 100 100 100
_ index.mock.ts 100 100 100 100
_strapi/test/dataProvider 100 100 100 100
_ index.mock.ts 100 100 100 100
_supabase/src 100 82.14 100 100
_ index.ts 100 82.14 100 100 31-32,50,62,72,93,104,120,131,142
_supabase/test 100 100 100 100
_ supabaseClient.ts 100 100 100 100
_supabase/test/create 100 100 100 100
_ index.mock.ts 100 100 100 100
_supabase/test/createMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_supabase/test/deleteMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_supabase/test/deleteOne 100 100 100 100
_ index.mock.ts 100 100 100 100
_supabase/test/getList 100 100 100 100
_ index.mock.ts 100 100 100 100
_supabase/test/getMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_supabase/test/getOne 100 100 100 100
_ index.mock.ts 100 100 100 100
_supabase/test/update 100 100 100 100
_ index.mock.ts 100 100 100 100
_supabase/test/updateMany 100 100 100 100
_ index.mock.ts 100 100 100 100

omeraplak and others added 24 commits September 17, 2021 16:31
@refine-bot
Copy link
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 27.7%, saving 4.21 KB.

Filename Before After Improvement Visual comparison
documentation/static/icons/backends/altogic.png 2.40 KB 1.68 KB -30.1% View diff
documentation/static/icons/backends/[email protected] 5.05 KB 3.55 KB -29.6% View diff
documentation/static/icons/backends/graphql.png 2.61 KB 1.89 KB -27.6% View diff
documentation/static/icons/backends/[email protected] 5.19 KB 3.91 KB -24.7% View diff

109 images did not require optimisation.

@omeraplak omeraplak changed the title [wip] Graphql dataProvider Graphql dataProvider Sep 20, 2021
@omeraplak
Copy link
Member

🎖️ 🎖️ 🎖️

@omeraplak omeraplak merged commit ab29a28 into master Sep 20, 2021
@omeraplak omeraplak deleted the graphql-dataprovider branch September 20, 2021 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Graphql data provider
3 participants