* Add a domain layer for the permission, rework the engine handling of the permissions
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Add permissions-fields-to-properties migration for the admin
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Removes useless console.log
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Remove debug logLevel from provider-login.test.e2e.js
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Adds the new layout for the GET permissions, allow to subscribe to actionRegistered events, adds i18n handlers
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Fix typo
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Update permissions validators
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Update unit tests
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Update integrations test + fix some validation issues
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Change plugins & settings section format for the permissions layout
* only return locales property to localized subjects for the permission's layout
* Do not send the locales property to the permission's layout when there is no locales created
* Add the 'locales' property to publish & delete routes
* Fix unwanted mutation of the sections builder states on multiple builds
* Fix units tests with (new engine)
* Fix admin-role e2e test - Add locales property to the update payload
* fix e2e testsé
* Update e2e snapshots
* Fix unit test for i18n bootstrap
* Add mocks for i18n/bootstrap test
* Fix has-locale condition & updatePermission validator
* Avoid mutation in migration, always authorize super admin for has-locales condition
* Rework rbac domain objects, add a hook module and a provider factory
* Remove old providers
* Update the admin services & tests for the new rbac domain & providers
* Fix tests, bootstrap functions & services following rbac domain rework
* Update migration runner
* PR comments
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
* Remove useless console.log
* Fix sanitizeCondition bug
* Section builder rework
* Add test for the section-builder section & add jsdoc for the permission domain
* pr comments (without the migrations)
* fix fields-to-properties migration
* Add jsdoc for the sections-builder
* Moves createBoundAbstractDomain from permission domain to the engine service
* Remove debug logLevel for admin role test (e2e)
* Fix core-store
* Fix hooks & move business logic from i18n bootstrap to dedicated services
* add route get-non-localized-fields
* use write and read permission
* refacto
* add input validator
* add route doc
* handle ST
Co-authored-by: Pierre Noël <petersg83@gmail.com>
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
* add possibility to use strapi on a non-root base url path
* fix documentation password form
* use server.url and admin.url in config
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
* update doc proxy
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
* move server.url location in config
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
* refacto
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
* add possibility to put relative urls
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
* allow '/' as an admin url + refacto
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
* update yarn.lock
Signed-off-by: Pierre Noël <petersg83@gmail.com>
* refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
* Remove default proxy option
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
* fix github provider
Signed-off-by: Pierre Noël <petersg83@gmail.com>
* fix github login
Signed-off-by: Pierre Noël <petersg83@gmail.com>
* Remove files that should be here
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
Co-authored-by: Pierre Noël <pierre.noel@strapi.io>
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
* Make plugins documentation generation optional
Signed-off-by: Ralph Maroun <rmaroun@outlook.com>
* Removing "-" character from schema names for generated plugin documentation so it becomes compatible with AWS API gateway import API feature using OAS file. Adding only one property to the settings file pluginsForWhichToGenerateDoc so that the user can choose for which plugin he wishes to generate documentation. Adding a parameter to generate or not the default response (this can now be set to false to have a documentation that is compatible with AWS API Gateway).
Signed-off-by: Ralph Maroun <rmaroun@outlook.com>
* Updating settings.json to start without the pluginsForWhichToGenerateDoc key so that all plugins documentation gets generated by default. Updated the documentation to reflect this change.
Signed-off-by: Ralph Maroun <rmaroun@outlook.com>
* Updating documentation to correct typos and rephrase some sentences to make them more clear.
Signed-off-by: Ralph Maroun <rmaroun@outlook.com>
* Destructuring the config to the var pluginsForWhichToGenerateDoc instead of renaming it to take into account comment from Alexandre Bodin
Signed-off-by: Ralph Maroun <rmaroun@outlook.com>
* Destructuring generateDefaultResponse and pluginsForWhichToGenerateDoc from strapi config object based on feedback from Alexandre Bodin
Signed-off-by: Ralph Maroun <rmaroun@outlook.com>
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>