Skip to content

Commit da3c639

Browse files
authored
Merge pull request #703 from meilisearch/fix-leak
Fix data leaked of private fields
2 parents fe3b489 + 96c1da1 commit da3c639

File tree

10 files changed

+732
-718
lines changed

10 files changed

+732
-718
lines changed

admin/src/Hooks/useCollection.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function useCollection() {
7373
refetchCollection()
7474
handleNotification({
7575
type: 'success',
76-
message: 'Request to delete content-type is succesfull',
76+
message: 'Request to delete content-type is successful',
7777
blockTransition: false,
7878
})
7979
}
@@ -96,7 +96,7 @@ export function useCollection() {
9696
refetchCollection()
9797
handleNotification({
9898
type: 'success',
99-
message: 'Request to add a content-type is succesfull',
99+
message: 'Request to add a content-type is successful',
100100
blockTransition: false,
101101
})
102102
}
@@ -119,7 +119,7 @@ export function useCollection() {
119119
refetchCollection()
120120
handleNotification({
121121
type: 'success',
122-
message: 'Request to update content-type is succesfull',
122+
message: 'Request to update content-type is successful',
123123
blockTransition: false,
124124
})
125125
}

docker-compose.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ services:
66
tty: true
77
stdin_open: true
88
working_dir: /home/package
9+
command: "yarn run playground:dev"
910
environment:
1011
- MEILISEARCH_HOST=http://meilisearch:7700
1112
depends_on:
@@ -14,6 +15,8 @@ services:
1415
- meilisearch
1516
volumes:
1617
- ./:/home/package
18+
ports:
19+
- "1337:1337"
1720

1821
meilisearch:
1922
image: getmeili/meilisearch:latest

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"README.md"
2626
],
2727
"dependencies": {
28-
"@strapi/utils": "^4.10.2",
28+
"@strapi/utils": "^4.5.4",
2929
"meilisearch": "^0.30.0"
3030
},
3131
"peerDependencies": {},

playground/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"strapi": "strapi"
1111
},
1212
"dependencies": {
13-
"@strapi/plugin-i18n": "^4.5.5",
14-
"@strapi/plugin-users-permissions": "^4.5.5",
15-
"@strapi/strapi": "^4.10.2",
16-
"@strapi/utils": "^4.5.5",
13+
"@strapi/plugin-i18n": "^4.10.4",
14+
"@strapi/plugin-users-permissions": "^4.10.4",
15+
"@strapi/strapi": "^4.10.4",
16+
"@strapi/utils": "^4.10.4",
1717
"meilisearch": "^0.30.0",
1818
"sqlite3": "^5.1.4"
1919
},

playground/src/api/restaurant/content-types/restaurant/schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
"description": {
1818
"type": "string"
1919
},
20+
"internal_notes": {
21+
"type": "string",
22+
"private": true
23+
},
2024
"categories": {
2125
"type": "relation",
2226
"relation": "manyToMany",

0 commit comments

Comments
 (0)