Marc Roig
d4d66d1fc0
fix: incorrect populate when using morph relations ( #20582 )
2024-06-21 15:11:48 +02:00
Fernando Chávez
5b211b3891
chore(content-releases): releases migration to v5 ( #20259 )
...
* chore: migrate bulk publish & unpublish to v5
* chore: change findLocales type to accept arrays
* chore: fix lint error
* chore: migrate bulkDelete to v5 (#20161 )
* chore: migrate bulkDelete to v5
* chore: change findLocales type to accept strings array
* fix: docs prettier styles
* chore: remove console.log
* enhancement: migrate countManyDraftRelations to v5
* chore(content-releases): v5 migration
* chore(content-releases): remove CMReleasesContainer
* fix(content-releases): singleType works with v5 changes and e2e tests enabled
* fix(content-releases): apply josh & marc comments
* apply comments
* fix(content-releases): tests
* fix(content-releases): create custom populate object for each content type to handle relations
* fix(content-releases): build problem
* fix(content-releases): editing lifecycles
* fix(content-releases): details view table columns
* feat: releases settings (#20354 )
* feat: releases settings
* feat: test nulling default timezone
* chore: refactor tests
* fix: remove async from describe
* chore: OneOf type for response
* chore: move OneOf utility to types package
---------
Co-authored-by: Fernando Chavez <fernando.chavez@strapi.io>
* feat: content releases settings permissions (#20357 )
* feat: releases settings
* feat: test nulling default timezone
* chore: refactor tests
* fix: remove async from describe
* feat: content releases settings permissions
* chore: test for unauthorized role
---------
Co-authored-by: Fernando Chavez <fernando.chavez@strapi.io>
* fix(content-releases): run settings api tests only on ee edition
* fix(content-releases): apply mark comments
* fix(content-releases): remove releases box when there are no releases related to the entry
* fix(content-releases): relation between actions and documents (#20424 )
* fix(content-releases): refactor relation with entries
* fix(content-releases): refactor relation with entries
* fix(content-releases): lint & unit tests errors
* fix(content-releases): add migration for releases actions coming from v4
* fix(content-releases): apply multiple suggestions
* fix(content-releases): new test data for e2e tests
* fix(content-releases): fix test data
* fix(content-releases): handle edge cases
* fix(content-releases): apply marc suggestions
* fix(content-releases): add modified status on validation column
* fix(content-releases): fix releases menu button
* fix(content-releases): use documents middleware instead of db lifecycles
* fix(content-releases): invalidate releases tags on some content manager queries
* fix(content-releases): using contentType utils and make afterDeleteMany lifecycle async
* fix(content-releases): ui fixs
* fix(content-releases): removing not needed axios from releases plugin
* fix(content-releases): invalidate tags on release service
* fix(content-releases): fix dependencies
* feat(release-settings): remove navbar link release purchase page in CE (#20498 )
---------
Co-authored-by: Marc Roig <marc.roig.campos@strapi.io>
Co-authored-by: Simone <startae14@gmail.com>
2024-06-13 11:12:38 +02:00
Alexandre Bodin
7d7d762918
fix: issue 20086, avoid preloading services during init lifecycles
2024-06-06 16:42:15 +02:00
Rémi de Juvigny
dd3311938a
fix: prevent duplicate history versions on publish ( #20415 )
...
* fix: prevent duplicate history versions on publish
* fix: build failing
* chore: fix e2e tests
2024-06-04 08:28:29 -04:00
Rémi de Juvigny
826f263c58
fix: add clone actions to history ( #20387 )
...
* fix: clone action not appearing in history
* chore: add api tests
2024-05-29 09:09:54 -04:00
Bassel Kanso
a31bbe7211
Merge branch 'v5/main' into v5/remove-root-level-nested-params
2024-05-22 13:13:56 +03:00
Bassel Kanso
8dea6a6594
fix: use fragment populate in countDraftRelations
...
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2024-05-22 13:10:58 +03:00
Jamie Howard
8c5105d949
Publish multiple locales ( #20258 )
...
* fix: date comparison
* feat(core): document service publish multiple locales (#20046 )
* feat(core): document service (un)publish multiple locales
* fix(core): cleanup locale param types
* feat(content-manager): wip - multiple locale support
* Count draft relations across locales (#20116 )
* feat(content-manager): publish multiple locales from CM route
* feat(core): multiple locales in document service discard draft
* feat(content-manager): use bulkpublish for locale publish
* feat(content-manager): use query from bulkpublish locales
* feat(content-manager): publishMany
* feat(content-manager): api test for bulk locale + document publish
* chore(content-manager): fix for build
* fix(core): avoid * in locale data
* chore(content-manager): pr amends and validation improvement
* feat(content-manager): use transaction in document manager publish many
* feat(core): throw when a non string locale is provided and not supported
* fix(core): doc service find many
* chore: clean up
* feat(content-manager): Select fields that require validation in availablelocales (#20156 )
* feat(content-manager): wip - select more fields in availablelocales
* feat(content-manager): wip available locales using entity traversal
* feat(content-manager): wip test available locales returns fields with validation
* feat(content-manager): test available locales returns fields with validation
* fix(content-manager): ensure sensitive info not exposed in available statuses
* fix(content-manager): sanitize document metadata available status
* fix(content-manager): sanitize document metadata available status at controller level
* fix(content-manager): populate only for validatable fields
* chore: clean up
* chore: clean up
* chore: clean up
* fix(content-manager): build issues
* fix(content-manager): allow null locales
* fix(content-manager): history service (#20185 )
* fix(content-manager): history service
* chore(content-manager): clean up
* fix: pr feedback
* chore: update actions deps
* chore: update utility deps
* chore: upgrade sentry
* chore: upgrade graphql-tools
* fix: http-errors ugprade
* chore: add fs-extra types where needed
* docs(typescript): type system cheat sheet
* chore!: remove deprecated verbose option from ts:generate-types
* chore: clean up
fix(content-manager) correctly count bulk publish results
* fix(content-manager): pr feedback and test improvements
* feat(i18n): bulk locale publish modal in CM edit view (#20069 )
* feat(i18n): wip bulk locale publish modal
* fix(i18n): wip - fe bulk locale publish
* feat(content-manager): multi locale publish, integrate with backend and add basic e2e test
* feat(i18n): wip - display validation errors in bulk locale modal
* chore: clean up
* chore(i18n): design system changes
* feat(i18n): display correct status after publish and clean up error messaging
* feat(i18n): access onclose from modal body
* fix(i18n): selected locale change
* fix(i18n): locale table state
* fix(i18n): edit view e2e test
* chore(content-manager): validation tweak wip
* feat(i18n): cover validation cases in i18n e2e tests
* chore: clean up
* fix(i18n): edit view more document actions disabled state
* chore: feedback
* fix(i18n): send all params to publish many
* fix(i18n): place bulk locale publish 3rd in array
* fix(content-manager): validation error extraction
* fix(content-manager): pr feedback
* fix: build
* chore(content-manager): simplify exports
* chore(i18n): revert package
---------
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
* fix(i18n): disable publish button after bulk locale publish
* fix(content-manager): ce e2e fix
* chore: typography
* fix(i18n): e2e edit view test
* fix: wip date comparison
* fix: wip date comparison
* fix(content-manager): simplify date comparison
* fix: clean up metadata api test
* chore: update api tests
* fix: draft versions must be ahead of published to be considered modified
* fix: published modified calculation
* fix: clean up
* fix: simplify draft and publish comparison
* chore: clean up
* fix: flaky fe tests
* fix: pr feedback
* fix(i18n): error message extraction in bulk locale modal
* chore: remove old publish action
* chore: pr feedback
* chore: refactor error types & validation messages
* chore: use anchor link for locale changes
* chore: fix releases
* fix: clean up
* chore: snapshot
---------
Co-authored-by: Marc-Roig <marc12info@gmail.com>
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2024-05-10 18:20:35 +01:00
Marc Roig
521cd3f8cd
fix: improve CM modified date comparison ( #19898 )
...
* fix: date comparison
* fix(content-manager): simplify date comparison
* fix: clean up metadata api test
* fix: draft versions must be ahead of published to be considered modified
* fix: published modified calculation
* fix: clean up
* fix: simplify draft and publish comparison
* chore: clean up
* fix: flaky fe tests
* fix: pr feedback
---------
Co-authored-by: Jamie Howard <jamie.howard@strapi.io>
2024-05-09 19:19:18 +02:00
Fernando Chávez
3fdf1a575b
enhancement: migrate bulk publish & unpublish to v5 ( #20184 )
...
* chore: migrate bulk publish & unpublish to v5
* chore: change findLocales type to accept arrays
* chore: fix lint error
* chore: migrate bulkDelete to v5 (#20161 )
* chore: migrate bulkDelete to v5
* chore: change findLocales type to accept strings array
* fix: docs prettier styles
* chore: remove console.log
* enhancement: migrate countManyDraftRelations to v5
* only publish not published entries
* use strapi query directly on bulkPublish
* fix api tests for bulk publish
* apply jamie feedback
2024-05-07 16:58:56 +02:00
Bassel Kanso
0e5c0a66e7
Merge branch 'v5/main' into v5/remove-root-level-nested-params
2024-05-06 23:15:32 +03:00
Marc Roig
8e9b152292
fix: document service find many pagination ( #20178 )
2024-05-06 14:52:48 +02:00
markkaylor
e60ec18292
chore(history): refactor restore and add tests for relations ( #20179 )
2024-05-06 10:54:07 +02:00
markkaylor
4a26739ee0
fix(history): handle sanitization when fetching versions ( #20212 )
...
Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>
2024-04-30 11:33:06 +02:00
Alexandre Bodin
792129f7b4
chore: make document service api more consistent
2024-04-24 18:15:02 +02:00
Bassel Kanso
0ec9224844
Merge branch 'v5/main' into v5/remove-root-level-nested-params
2024-04-24 08:17:45 +03:00
markkaylor
bdaafbbb3c
chore(history): add api tests ( #20157 )
2024-04-23 10:50:47 +02:00
Rémi de Juvigny
7431ba9b38
fix: sanitize history versions data field ( #20143 )
...
* fix: sanitize history versions data field
* fix: ts cannot be named error
2024-04-22 08:03:52 -04:00
Bassel Kanso
ab542129d2
fix: removed root-level nested params
...
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
2024-04-22 15:03:33 +03:00
Rémi de Juvigny
d23c1d5b0e
chore: remove history future flag ( #20131 )
2024-04-17 11:20:32 +02:00
markkaylor
b4f819aae7
feat(history): restore version ( #20102 )
2024-04-16 09:18:33 +02:00
Ben Irvin
18019758d6
enhancement!: create sends 201 status code
2024-04-15 14:03:47 +02:00
Rémi de Juvigny
63d7006f9e
enhancement: add history license check ( #20099 )
...
* enhancement: add history license check
* fix: add history to default license data
2024-04-12 13:07:16 -04:00
Josh
bc71a96d76
chore(pack-up): remove from monorepo (v5) ( #20092 )
...
* chore(pack-up): remove from repo
* chore: type fixes
* chore: add suggestions to tighten types
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
---------
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
2024-04-12 13:39:49 +01:00
Alexandre Bodin
2b548ef558
chore: create updateEntry
2024-04-05 14:08:18 +02:00
Alexandre Bodin
5e5bcf8c8f
chore: improve middleware api
2024-04-05 11:34:41 +02:00
Alexandre Bodin
57ef329165
chore: make document service method take a single argument object
2024-04-05 11:34:40 +02:00
Alexandre Bodin
544d55dc42
chore: simplify components api in doc service and fix some typings
2024-04-05 11:34:10 +02:00
Rémi de Juvigny
163e91acfe
enhancement: add relation data to history versions response ( #20035 )
...
* feat: add relation data to history versions response
* fix: restore unknown attributes
* fix: admin test ts errors
* chore: mark feedback
2024-04-04 17:31:51 -04:00
Alexandre BODIN
c9159be3ec
Merge pull request #19943 from strapi/v5/core
...
chore: internal core refactorings
2024-04-03 17:37:12 +02:00
Alexandre Bodin
c224439564
fix: middleware type
2024-04-03 14:24:40 +02:00
Alexandre Bodin
26a9719787
chore: apply feedbacks
2024-04-03 14:24:15 +02:00
Alexandre Bodin
55ae34e5dc
chore: introduce providers to simplify main class
2024-04-03 14:24:15 +02:00
Alexandre Bodin
daf629fd13
chore: remove loadedStrapi and init everything but admin in constructor
2024-04-03 14:24:15 +02:00
markkaylor
971168147b
chore(history): simplify the meta object ( #19990 )
2024-04-02 13:49:09 -04:00
Ben Irvin
2ef71bdf4c
Merge branch 'develop' into v5/main
2024-04-02 16:25:24 +02:00
Ben Irvin
cf82c830d8
test: restructure test dirs
2024-04-02 11:19:43 +02:00
Jamie Howard
43b9e91c67
feat(i18n): non localized fields ( #19720 )
...
* feat(i18n): wip non localized fields
* feat(i18n): use document service middleware for non localized fields
* feat(i18n): support component data in non localized sync
* chore(i18n): cleanup and fix unit tests
* fix(i18n): reintroduce permissions sync
* test(i18n): api test for non localized fields
* feat(i18n): add earth icon to symbolise localised fields (#19774 )
* test(i18n): cover publish, unpublish, update and create in api tests
* feat(i18n): ensure non localized fields are populated
* fix(i18n): get right id
* fix(content-manager): doc metadata in non d&p cases
* fix(conent-manager): i18n detection
* fix: pr feedback
* fix(i18n): handle non localized components
* feat(i18n): sync non localized components
* fix(i18n): wip unit test
* feat(i18n): handle relations within non localized components
* feat(i18n): reintroduce FE and fix for repeatables
* chore: lockfile
* chore(i18n): cleanup
* chore(i18n): cleanup
* feat(i18n): match relation locales to source entry during transformation
* fix(i18n): unit tests
* fix(i18n): getNonLocalizedAttributes
* chore(i18n): fix unit tests
* chore(i18n): pr feedback
* chore(i18n): pr feedback
* fix(i18n): unit tests
---------
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2024-04-02 10:08:10 +01:00
Marc Roig
343968041b
fix: relations lazy loading ( #19932 )
2024-03-26 13:44:21 +01:00
Alexandre Bodin
3f6a8109ea
chore: introduce query-params service to remove strapi.global dep in utils
2024-03-25 14:03:32 +01:00
Alexandre Bodin
fed8ac1cb7
chore: remove usage of strapi global in traverse
2024-03-25 08:52:10 +01:00
markkaylor
c184e9d81f
fix(history): update type ( #19878 )
2024-03-21 17:02:13 +01:00
markkaylor
1c2f2708ff
feat(history): diff schemas to get unknown attributes ( #19849 )
2024-03-21 15:20:57 +01:00
Convly
670c292117
Merge branch 'v5/main' of github.com:strapi/strapi into v5/types/v2
2024-03-20 14:22:44 +01:00
Alexandre Bodin
de9951b5bd
Merge branch 'releases/v5-beta' into v5/main
2024-03-20 13:02:25 +01:00
Convly
d671c5698d
Merge branch 'v5/main' of github.com:strapi/strapi into v5/types/v2
2024-03-20 08:51:37 +01:00
Marc Roig
66c1011328
fix: cm relation bugs ( #19842 )
...
* fix: relations
* fix: hardcode english locale
* fix(cm): don't try and be clever with caching relations
* fix: locale when target is not localized
---------
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
2024-03-19 14:57:36 +01:00
Josh
49e84a90ad
fix(cm): send status & locale with disconnect array ( #19832 )
...
* fix(cm): send status & locale with disconnect array
* fix: backend ids to omit to entry ids
* fix(cm): use id to connect & invalidate form data after updating
* fix: api tests
* fix: cache issue switching tabs
---------
Co-authored-by: Marc-Roig <marc12info@gmail.com>
2024-03-19 12:39:45 +00:00
Alexandre Bodin
3e8b3d565b
chore: update u&p
2024-03-19 08:50:23 +01:00
Alexandre Bodin
5f05a98acc
Merge branch 'releases/v5-beta' into v5/main
2024-03-18 17:12:48 +01:00