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

chore(content-releases): releases migration to v5 #20259

Draft
wants to merge 18 commits into
base: v5/main
Choose a base branch
from
Draft

Conversation

Feranchz
Copy link
Contributor

@Feranchz Feranchz commented May 3, 2024

⚠️ WIP
⚠️ First merge #20184 before this PR

What does it do?

Migrates and apply new changes on the Content Releases plugin for v5.

Work to do

  • Fix test cases
  • Validate releases with entries with multiple relations and if validation is still working
  • Validate db lifecycles and how affected are releases (entry is deleted, discarded, etc)

* chore: migrate bulkDelete to v5

* chore: change findLocales type to accept strings array

* fix: docs prettier styles

* chore: remove console.log
@Feranchz Feranchz added pr: chore This PR contains chore tasks (cleanups, configs, tooling...) source: core:content-releases labels May 3, 2024
@Feranchz Feranchz self-assigned this May 3, 2024
meta: {
count: actions.count,
target_type: contentTypeUid,
target_id: entryId,
Copy link
Contributor

Choose a reason for hiding this comment

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

is the entry id the one stored in the releases actions content type?
There might be a scenario where a document draft is discarded (deleted) and regenerated with a new entry id one.
Would that be an issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good point and probably is going to be a problem 🤔

I'm using the entryId because I think polymorphic relations with documentId are not implemented yet, right? So I don't see a solution 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

we might need to find alternatives, relations will allways be stored using entry ids, it's just that we expose docId relations to make things consistent on the api.

I guess, at the moment, discarding a draft would result in removing that one from the release 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

At the moment, how do you handle entries being deleted? do you have a db lifecycle that checks for those and removes them from the releases?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we are using a db lifecycle to listen to that "event" and remove deleted entries from releases

Copy link
Contributor

Choose a reason for hiding this comment

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

well , I guess discarding the documetn would just unlist it from the release then.
It might be a good discussion with Yannis to check if this is an issue and if we want to work on it on the future , wdyt?

Copy link
Contributor

github-actions bot commented May 3, 2024

Size Change: 0 B

Total Size: 2.58 MB

ℹ️ View Unchanged
Filename Size
examples/getstarted/build/_arrayIncludesWith-Z9Clh9dj.js 123 B
examples/getstarted/build/_baseEach-jIjrchhx.js 226 B
examples/getstarted/build/_baseMap-eRS1uikQ.js 192 B
examples/getstarted/build/_id-BuJ0Ud8T-L2-GTlx4.js 7.26 kB
examples/getstarted/build/AdminSeatInfo-ZrJlIt8M-9Z2-BOmb.js 834 B
examples/getstarted/build/apiTokens-bNRitXGF-8yzMgVAN.js 433 B
examples/getstarted/build/App-BrVjqg1Q-U3j_t7X_.js 1.34 kB
examples/getstarted/build/App-DMFBuO19-uDY4ptz5.js 10.4 kB
examples/getstarted/build/ApplicationInfoPage-TImAEuc3-b9JBUTBn.js 4.18 kB
examples/getstarted/build/ar-Bf9XlLLo-OfwQwX0w.js 53 B
examples/getstarted/build/ar-BYDB75EB-qyo4dS5h.js 1.23 kB
examples/getstarted/build/ar-CCEVvqGG-lTRwp9eA.js 4.76 kB
examples/getstarted/build/ar-CK8BRRXB-9MD2WfIK.js 1.34 kB
examples/getstarted/build/ar-ckp9T43y-oNkFXkcB.js 589 B
examples/getstarted/build/ar-gTQs8p7A-Gxk-HrP0.js 16.4 kB
examples/getstarted/build/AuthenticatedLayout-0ehdvOvU-bVYGO994.js 20 kB
examples/getstarted/build/AuthResponse-wfOnX6GO-6B1Ra9ri.js 551 B
examples/getstarted/build/ca-5U32ON2v-ip0nC06S.js 3.79 kB
examples/getstarted/build/ca-A-U5stlG-yPHlIijm.js 9.95 kB
examples/getstarted/build/ca-B2_I-q1t-UXnG62Mm.js 2.4 kB
examples/getstarted/build/CardDragPreview-ikSG4M46-001SY5s0.js 575 B
examples/getstarted/build/ColorPickerInput-DZuK1NY_-ywKRUSN3.js 4.21 kB
examples/getstarted/build/ComponentConfigurationPage-Ck1ASP19-s1RVNuaR.js 1.63 kB
examples/getstarted/build/ComponentIcon-BOFnK76n-wp5gI9FA.js 1.51 kB
examples/getstarted/build/constants-EoEtSd4i-bXZWlW2I.js 72 B
examples/getstarted/build/constants-osFOfIY7-bpoJ5mxW.js 723 B
examples/getstarted/build/ContentBox-DjmNTcxv-aJ5fXpcq.js 452 B
examples/getstarted/build/CreateActionEE-Qdz4UDPf-s_ZuATCb.js 495 B
examples/getstarted/build/CreatePage-B2WIL9jZ-OvSObnMV.js 285 B
examples/getstarted/build/CreatePage-PiOzvIOu-w-BMfNMY.js 1.87 kB
examples/getstarted/build/CreateView-fhL5A5tU-3RPecx88.js 405 B
examples/getstarted/build/CreateView-KGWd_8ND-8sm9FCsV.js 362 B
examples/getstarted/build/cs-B0QZJTah-YvMT15k-.js 53 B
examples/getstarted/build/cs-BVigMk0l-Lf1PZDqx.js 1.37 kB
examples/getstarted/build/cs-ChL4LaFY-AibGLenG.js 2.8 kB
examples/getstarted/build/cs-ciLYCxgd-mD1uyk8s.js 656 B
examples/getstarted/build/cs-CM2aBUar-__Zi4ZE2.js 2.5 kB
examples/getstarted/build/cs-DMmE6LK7-IgJDOWX6.js 337 B
examples/getstarted/build/cs-iYqoHUVt-Um2SgMrC.js 3.75 kB
examples/getstarted/build/de-9eCAqqrB-BP4Zi2Vj.js 1.55 kB
examples/getstarted/build/de-A7mEKx6c-M6PiBv1Y.js 2.11 kB
examples/getstarted/build/de-B9kiAC-s-XPXQPciS.js 53 B
examples/getstarted/build/de-BKUdRFI4-U8ocsjNP.js 1.5 kB
examples/getstarted/build/de-C72KDNOl-SarrOqef.js 3.85 kB
examples/getstarted/build/de-DqkAUMvP-9SlTaJ9_.js 833 B
examples/getstarted/build/de-DsHQNzp2-EiAwusy4.js 4.11 kB
examples/getstarted/build/de-uZBjRd6a-BaOYkUdW.js 9.78 kB
examples/getstarted/build/dk-2qBjxt-P-3s8zjsTk.js 1.55 kB
examples/getstarted/build/dk-BbJCmDw6-KJg8dfYn.js 147 B
examples/getstarted/build/dk-BC7NAQR2-Pyjtpqwa.js 3.66 kB
examples/getstarted/build/dk-BPfkJb9q-1UzPKRoY.js 1.88 kB
examples/getstarted/build/dk-BQiTK50l-kZepplNR.js 1.83 kB
examples/getstarted/build/dk-D9TLFbt6-Ry01WSP8.js 128 B
examples/getstarted/build/dk-DgCq8mF--KZ1C6jVQ.js 979 B
examples/getstarted/build/dk-DqrbgSkv-jk-ymqLz.js 535 B
examples/getstarted/build/dk-nXAO32DE-esRIqlQ_.js 7.67 kB
examples/getstarted/build/EditConfigurationPage-DpEHAovK-EbjkI_p7.js 1.19 kB
examples/getstarted/build/EditPage-5UGdAunq-bka3OFpm.js 2.15 kB
examples/getstarted/build/EditPage-CGv92Z7g-O6TzQs1n.js 4.72 kB
examples/getstarted/build/EditPage-oQXrXQI1-wPUUrsoX.js 1.83 kB
examples/getstarted/build/EditView-wc4RpFdQ-NV3kROkP.js 2.08 kB
examples/getstarted/build/EditViewPage-CcQg4Dx3-bbGY9nQv.js 1.79 kB
examples/getstarted/build/EditViewPage-vpwRFwZN-4PWK1z_H.js 5.12 kB
examples/getstarted/build/en-aU0dMEKb.js 74 B
examples/getstarted/build/en-B9Ur3VsE-RqhikxfP.js 1.51 kB
examples/getstarted/build/en-BbczxQBr-Le-K72mK.js 4.16 kB
examples/getstarted/build/en-BlDau3us-wSfLfbPo.js 376 B
examples/getstarted/build/en-CegwVP3M-mhAhYQiP.js 126 B
examples/getstarted/build/en-CnrTsjWS-Vd4RQECP.js 1.53 kB
examples/getstarted/build/en-D7rooMTs--3gKttLY.js 12.8 kB
examples/getstarted/build/en-D9ZrQAV6-HgxPedOP.js 299 B
examples/getstarted/build/en-DF4KtAAC-XDoFncvz.js 534 B
examples/getstarted/build/en-DfCC9sZn-gfrwi5iq.js 920 B
examples/getstarted/build/en-DOHtPf-2-wJl-9fqK.js 1.73 kB
examples/getstarted/build/en-MBPul9Su-UzJ64AY5.js 5.26 kB
examples/getstarted/build/en-oDx2Gnre-dPmFPYet.js 2.5 kB
examples/getstarted/build/en-YIQYYlvv-ZE5AyTsZ.js 136 B
examples/getstarted/build/es-BbsZ5Fh0-35l05Fao.js 153 B
examples/getstarted/build/es-BE_zx2_w-Rl6RxhGa.js 3.89 kB
examples/getstarted/build/es-BNo7eLLJ-K3o0j8Ht.js 598 B
examples/getstarted/build/es-CEiXVnsb-TpsXtt0T.js 1.01 kB
examples/getstarted/build/es-CeXiYflN-Yt-bEmx2.js 3.65 kB
examples/getstarted/build/es-CuWi2pOn-Q5GJG4zi.js 2.37 kB
examples/getstarted/build/es-DlmMVaBG-ChKsgIdq.js 1.61 kB
examples/getstarted/build/es-DNgOVMjD-pysvQggc.js 1.96 kB
examples/getstarted/build/es-DxC1UwjP-UMLmQgLp.js 139 B
examples/getstarted/build/es-i0dEHPPQ-eSz8_T_p.js 11.2 kB
examples/getstarted/build/es-kL6_JyxJ.js 74 B
examples/getstarted/build/eu-CdALomew-Qw8enYod.js 3.74 kB
examples/getstarted/build/eu-wFmYHERY-kH-47ER2.js 11.3 kB
examples/getstarted/build/EventsTable-SeaRLm1V-Bc5X3-Ql.js 417 B
examples/getstarted/build/Field-B06Y5DE7-9t1eab6I.js 559 kB
examples/getstarted/build/Field-B06Y5DE7-O1OTS4OG.css 369 B
examples/getstarted/build/FieldTypeIcon-CMlNO8PE-QXXAJHYp.js 463 B
examples/getstarted/build/Form-d49U_l0U-Yu1TCa3V.js 4.6 kB
examples/getstarted/build/fr-3S6ke71d-wbJqtNt3.js 1.65 kB
examples/getstarted/build/fr-BgqFw7G8-61f3X0M0.js 161 B
examples/getstarted/build/fr-BlX-v4UF-4rQupIi3.js 792 B
examples/getstarted/build/fr-BN6ndmWf-0NacE9S4.js 2.77 kB
examples/getstarted/build/fr-BRlwHIG8-fv5MyU5b.js 133 B
examples/getstarted/build/fr-CD9VFbPM-eYzM6vQp.js 3.82 kB
examples/getstarted/build/fr-DkgRugiU-WPdBcBLd.js 1.33 kB
examples/getstarted/build/fr-hkSxFuzl-J7zsssVp.js 53 B
examples/getstarted/build/fr-lU_OMJma-H5PlfKdG.js 1.55 kB
examples/getstarted/build/fr-OI7VyC_k-84QqR9Eb.js 9.75 kB
examples/getstarted/build/getEmptyImage-eu57SB6q.js 151 B
examples/getstarted/build/getTrad-DE9mW83F-0gi38nul.js 96 B
examples/getstarted/build/groupBy-U-7kNffZ.js 368 B
examples/getstarted/build/gu-CNpaMDpH-lGHViPzE.js 4.47 kB
examples/getstarted/build/gu-zSaMc-a6-uogbg-s6.js 9.55 kB
examples/getstarted/build/he-C9ZOXBB--aKNhCM8F.js 1.62 kB
examples/getstarted/build/he-YzAGShlQ-4eg3YSra.js 6.1 kB
examples/getstarted/build/hi-Dwvd04m3-v9uDPoIr.js 4.54 kB
examples/getstarted/build/hi-ZQ4t6UdY-BOET01jD.js 11.5 kB
examples/getstarted/build/History-CjRuXbBR--LsCbma7.js 6.06 kB
examples/getstarted/build/HomePage-4GMgRYGH-tOERgowu.js 256 B
examples/getstarted/build/HomePage-g0muMij1-kAJcizyu.js 10.3 kB
examples/getstarted/build/hooks-E5u1mcgM-GyFsStOu.js 94 B
examples/getstarted/build/hu-CeYvaaO0-p9LY3nuM.js 3.99 kB
examples/getstarted/build/hu-O1FJoY8c-Pfx7-6mX.js 12.2 kB
examples/getstarted/build/id-BdEsvnaF-ya_EW1h9.js 1.41 kB
examples/getstarted/build/id-BtwA9WJT-FYt5dsaX.js 2.82 kB
examples/getstarted/build/id-CHtAzAUz-J7zsssVp.js 53 B
examples/getstarted/build/id-CPOl6_EU-BhFI5f3g.js 707 B
examples/getstarted/build/id-Lb_0kPQU-ya3XLzPL.js 5.25 kB
examples/getstarted/build/id-W1sKBFEw-4zKP7CcN.js 3.24 kB
examples/getstarted/build/index-_ClnbyEk-BUhqjF_P-dFfcmltP.js 53 kB
examples/getstarted/build/index-4US7V5We.js 586 B
examples/getstarted/build/index-6J5rK6tN-wMM3sKRc.js 7.74 kB
examples/getstarted/build/index-BepP1Zr--mChStT4t.js 5.43 kB
examples/getstarted/build/index-BGMr_eek-UDU274nb.js 1.51 kB
examples/getstarted/build/index-BKV-NwSr-lyzLTd-G.js 1.92 kB
examples/getstarted/build/index-BnHmeDa0-9605aSNU.js 2.98 kB
examples/getstarted/build/index-Bp_coo23-Fwd6Y1c-.js 1.93 kB
examples/getstarted/build/index-cjQ7nmbK.js 573 B
examples/getstarted/build/index-D9M3KO-K-uT5bLqiS.js 1.54 kB
examples/getstarted/build/index-DwfecCg7-FUPcS3kI.js 55.8 kB
examples/getstarted/build/index-hKqsGuL5.js 104 B
examples/getstarted/build/index-sU2Cg2WW-imtk7rVQ.js 1.8 kB
examples/getstarted/build/index-TXQYZjEq.js 121 B
examples/getstarted/build/index-vx0ASVJ0.js 6.13 kB
examples/getstarted/build/index.html 594 B
examples/getstarted/build/InstalledPluginsPage-eOXi3oTN-FSSpCpkH.js 794 B
examples/getstarted/build/isNil-AVzUjQYx.js 122 B
examples/getstarted/build/it-136monzD-tokYz7HG.js 5.56 kB
examples/getstarted/build/it-B-rv0E24-1AwxmJ3Y.js 1.49 kB
examples/getstarted/build/it-B7rmoZNx-DX1NUby4.js 1.48 kB
examples/getstarted/build/it-BrVPqaf1-aaOVPUDe.js 2.94 kB
examples/getstarted/build/it-C7z82V3g-J7zsssVp.js 53 B
examples/getstarted/build/it-D04lb2Wc-rZflbVRJ.js 3.38 kB
examples/getstarted/build/it-DWJI563z-0SVrzIJn.js 746 B
examples/getstarted/build/ja-0-FUC0T4-EFEq4X-l.js 8.82 kB
examples/getstarted/build/ja-BHLK_2_g-T3CoLbGy.js 1.14 kB
examples/getstarted/build/ja-C8K-VBPD-inHXSRgZ.js 1.4 kB
examples/getstarted/build/ja-CiekkoEN-nIra1cbN.js 693 B
examples/getstarted/build/ja-CtsUxOvk-fD48MWCR.js 3.98 kB
examples/getstarted/build/ja-DlaJTi_3-qT8z9vkY.js 1.76 kB
examples/getstarted/build/ko-Busb0wIY-84xWDr4V.js 2.07 kB
examples/getstarted/build/ko-C_MXyOM9-cGRR8wfP.js 152 B
examples/getstarted/build/ko-CFzSHayG-aWThbceX.js 1.17 kB
examples/getstarted/build/ko-CJBkZ375-dJRTYeQY.js 652 B
examples/getstarted/build/ko-DoNsXHXA-njDCEwti.js 4.08 kB
examples/getstarted/build/ko-H3Y8GpnD-sbyRlkig.js 8.35 kB
examples/getstarted/build/ko-HVQRlfUI-Su0LsWoh.js 3.75 kB
examples/getstarted/build/ko-qTjQ8IMw-j_MEDjAy.js 1.7 kB
examples/getstarted/build/ko-vJl9kPpn-SaGvSzEi.js 2.31 kB
examples/getstarted/build/layout-BFUEtY51-YB0J7Lm6.js 3.17 kB
examples/getstarted/build/Layout-BlUjTO46-UdcWY2Sv.js 1.4 kB
examples/getstarted/build/Layout-FNo16kkG-CZG_CQNv.js 1.56 kB
examples/getstarted/build/ListConfigurationPage-CzdUs3DM-COLQru_y.js 4.33 kB
examples/getstarted/build/ListPage-ghSDnqab-qbXDKvr2.js 3.41 kB
examples/getstarted/build/ListPage-jWpRzV4c-nrOOt_5s.js 1.91 kB
examples/getstarted/build/ListPage-li6nqSzO-WA4be28U.js 300 B
examples/getstarted/build/ListPage-qX1xLgs9-5382Wv69.js 1.9 kB
examples/getstarted/build/ListPage-va-cY8J9-OXjc7aC7.js 2.92 kB
examples/getstarted/build/ListView-CBD3XWSA-tEyEvJdV.js 5.51 kB
examples/getstarted/build/ListView-H5zCPswT-bTFNE4DS.js 1.39 kB
examples/getstarted/build/ListView-yUY4O3qG-sKOJdMvX.js 1.38 kB
examples/getstarted/build/ListViewPage-Dot9wj-w-rTQiDhff.js 5.79 kB
examples/getstarted/build/Login-hYQAYcNn-6MulbHT-.js 470 B
examples/getstarted/build/MagicLinkEE-vd_BaPhK-5oWoMYSG.js 432 B
examples/getstarted/build/MarketplacePage-Qqzq47Jm-ZkDiwoB-.js 13.9 kB
examples/getstarted/build/ml-BihZwQit-GeUmgNFs.js 4.77 kB
examples/getstarted/build/ml-NPdcpJoN-LRx2JWjv.js 11.9 kB
examples/getstarted/build/ModalForm-Gh2063zZ-1vxEmnad.js 244 B
examples/getstarted/build/ms-BtGFDB9t-5gRZye-c.js 3.24 kB
examples/getstarted/build/ms-ByvsQjRt-gubEhBMA.js 1.2 kB
examples/getstarted/build/ms-C1wNkEQw-YvMT15k-.js 53 B
examples/getstarted/build/ms-CqwG8v8l-RtqozBHF.js 1.33 kB
examples/getstarted/build/ms-CUgPFo4U-E73gbyvG.js 714 B
examples/getstarted/build/ms-m_WjyWx7-v2pCVL2s.js 2.67 kB
examples/getstarted/build/ms-v9c434YI-YMEL7TzC.js 3.97 kB
examples/getstarted/build/nl-5qO8Rpcy-be7tfgxk.js 1.25 kB
examples/getstarted/build/nl-B_7CHwVD-Deayapbr.js 598 B
examples/getstarted/build/nl-BaTAuelQ-bqDcN1J_.js 3.27 kB
examples/getstarted/build/nl-C79CwB4e-J7zsssVp.js 53 B
examples/getstarted/build/nl-D4R9gHx5-wahL0XP7.js 3.76 kB
examples/getstarted/build/nl-qHmOt3d1-ieWZHZDE.js 11.5 kB
examples/getstarted/build/no-XGZQN-Ji-Zi40WCOy.js 5.51 kB
examples/getstarted/build/NoContentTypePage-kERcPdo2-_eQN1NaL.js 451 B
examples/getstarted/build/NoPermissionsPage-hg8S3hZY-XGkZ_Wrq.js 229 B
examples/getstarted/build/objects-mKMAmfec-WUPSrvFP.js 387 B
examples/getstarted/build/Ornaments-h_LCCr5P-i13bur99.js 1.5 kB
examples/getstarted/build/Permissions-APawnYhP-ZZcVsorg.js 9.35 kB
examples/getstarted/build/pl-6hJT3Sda-0Y8k-ElF.js 147 B
examples/getstarted/build/pl-B67TSHqT-y4TXPzZq.js 1.7 kB
examples/getstarted/build/pl-BdIzifBE-ibb6xpXA.js 2.01 kB
examples/getstarted/build/pl-CbET57Jb-DjE0-zMU.js 149 B
examples/getstarted/build/pl-Cj8jChOO-NTdNMfc1.js 2.08 kB
examples/getstarted/build/pl-CP2Zgp01-KBgOzada.js 4.05 kB
examples/getstarted/build/pl-DwLr8sw9-uB4pwcJz.js 1.01 kB
examples/getstarted/build/pl-DXcJCevg-KaMlTtEc.js 576 B
examples/getstarted/build/pl-Id5YX-Pw-3MHBuaAm.js 10.1 kB
examples/getstarted/build/pl-sbx9mSt_-37e7S9b5.js 3.79 kB
examples/getstarted/build/PrivateRoute-zZ7p1pc9-nmZhpAyg.js 249 B
examples/getstarted/build/ProfilePage-6qlODdLb-5BrKiHt-.js 2.26 kB
examples/getstarted/build/pt-BIO24ioG-j_n3oUw2.js 1.22 kB
examples/getstarted/build/pt-BR-0o0Gf-P8-n5JNyCLU.js 10.9 kB
examples/getstarted/build/pt-BR-B4LJHJIp--ley41Tw.js 1.52 kB
examples/getstarted/build/pt-BR-C71iDxnh-eSebcp0Q.js 3.79 kB
examples/getstarted/build/pt-BR-CCQGwXs0-p7Yl8DjA.js 4.07 kB
examples/getstarted/build/pt-BR-DjINUWGk-J7zsssVp.js 53 B
examples/getstarted/build/pt-BR-f0p23AQZ-jxR0Fcqo.js 1.13 kB
examples/getstarted/build/pt-BR-MVXc6V9P-ZJbjE7ae.js 608 B
examples/getstarted/build/pt-BsaFvS8--Z5hznfVx.js 1.89 kB
examples/getstarted/build/pt-C2N9fdeh-ZJbjE7ae.js 608 B
examples/getstarted/build/pt-CNOOM_7x-A2Z5oWUc.js 1.52 kB
examples/getstarted/build/pt-DEVCt2mt-oQDNFTyt.js 597 B
examples/getstarted/build/pt-DMeTMW2x-EakBvr5U.js 1.04 kB
examples/getstarted/build/pt-f52AXrxz-nrZ8Jedi.js 4.2 kB
examples/getstarted/build/purchase-review-workflows-DyffLpyz-ddm7hDnY.js 488 B
examples/getstarted/build/PurchaseAuditLogs-_1tVWtNF-oLg9VUsp.js 520 B
examples/getstarted/build/PurchaseContentReleases-Ex09YpKR-tbpxbvFr.js 529 B
examples/getstarted/build/PurchaseSingleSignOn-VUU-U4wi-L75BRFA4.js 510 B
examples/getstarted/build/relations-DdXrnHF7-BQF6o_Zv.js 766 B
examples/getstarted/build/Relations-DJzbrceU-Kflv8DlX.js 7.82 kB
examples/getstarted/build/router-DkLtLJRZ-o9SUVVRY.js 466 B
examples/getstarted/build/ru-aOnA-eym-maC6HF0B.js 610 B
examples/getstarted/build/ru-BddeNlU0-yN33KaiO.js 1.28 kB
examples/getstarted/build/ru-BE6A4Exp-_D83GCGH.js 5.76 kB
examples/getstarted/build/ru-BFz40YSA-8TSo8mRS.js 200 B
examples/getstarted/build/ru-C_7wBr9e-J7zsssVp.js 53 B
examples/getstarted/build/ru-DGSjru5m-iaednnF_.js 4.29 kB
examples/getstarted/build/ru-DnVqFddA-cpy1qczH.js 240 B
examples/getstarted/build/ru-DqglvSUC-hkQl0E6s.js 1.83 kB
examples/getstarted/build/ru-FpmG9SEf-oSX0ZDQG.js 15.9 kB
examples/getstarted/build/ru-hagMa57T-Tkhzn04j.js 2.15 kB
examples/getstarted/build/ru-VWy-IB7K-thb_Fbcx.js 2.51 kB
examples/getstarted/build/sa-Dag0k-Z8-S1jDb5LE.js 4.59 kB
examples/getstarted/build/sa-KUwV8aRB-IQHhYTUV.js 11.7 kB
examples/getstarted/build/selectors-AvywwQRm-MPn000yy.js 110 B
examples/getstarted/build/SelectRoles-PGKTxUoQ-IM5AXMeQ.js 1.02 kB
examples/getstarted/build/Settings-BDuq6QQN-8L4LUt4E.js 1.79 kB
examples/getstarted/build/Settings-CNeRvz0K-_MoxBMJ5.js 1.49 kB
examples/getstarted/build/SettingsPage-pvdzbKEM-Bjq-jBpr.js 3.17 kB
examples/getstarted/build/SingleSignOnPage-USPfnbQl-RYcupoSf.js 1.76 kB
examples/getstarted/build/sk-B_LIcepm-8Uj72yzG.js 1.28 kB
examples/getstarted/build/sk-BFg-R8qJ-46aV39mw.js 3.86 kB
examples/getstarted/build/sk-BmT4uZTG-ggHs-0Lm.js 745 B
examples/getstarted/build/sk-Dgpb3lnz-1cMG9Knz.js 2.47 kB
examples/getstarted/build/sk-DVK4HfSC-KHUfCq6U.js 3.59 kB
examples/getstarted/build/sk-g_1C955P-mPkBXBAO.js 8.64 kB
examples/getstarted/build/sk-i1gQKUBN-YvMT15k-.js 53 B
examples/getstarted/build/sortBy-kwfWXH7F.js 686 B
examples/getstarted/build/SSOProviders-GcYDRAyn-Cl0oaXru.js 696 B
examples/getstarted/build/strapi-jibWoDgi.css 1.25 kB
examples/getstarted/build/strapi-mAUxQmPL.js 897 kB
examples/getstarted/build/sv-ABLKOokl-pL3ydTXh.js 1.92 kB
examples/getstarted/build/sv-BaFDND79-cuaLfeFA.js 318 B
examples/getstarted/build/sv-BGb12eW3-1iCRdl0z.js 4.09 kB
examples/getstarted/build/sv-CNYcKBn2-rWDZASZZ.js 148 B
examples/getstarted/build/sv-CUnfWGsh-bnDuQoPA.js 3.71 kB
examples/getstarted/build/sv-D_-KBtcw-avkm-3K_.js 1.02 kB
examples/getstarted/build/sv-DjL9wmwK-Fok_vvxs.js 140 B
examples/getstarted/build/sv-lzyY1dsz-5_1cEk_Q.js 11.2 kB
examples/getstarted/build/Table-nTFYLOGS-UhP4DGH8.js 1.49 kB
examples/getstarted/build/tail-4kH4xD2G.js 242 B
examples/getstarted/build/th--u3VqsON-1fSFXv5j.js 4.07 kB
examples/getstarted/build/th-7LJ9Y8EL-ysaz4e2-.js 6.16 kB
examples/getstarted/build/th-BqbI8lIT-tUeqjoTS.js 3.27 kB
examples/getstarted/build/th-D-MxpWKr-J7zsssVp.js 53 B
examples/getstarted/build/th-DkuoSGii-D0PagSr4.js 970 B
examples/getstarted/build/th-DKyP7ueR-lnzlXrl4.js 1.84 kB
examples/getstarted/build/th-DRfzuiFf-FxAPZ0C9.js 1.82 kB
examples/getstarted/build/TokenTypeSelect-HkL7Qy8g-rkPFATjg.js 123 kB
examples/getstarted/build/tr--GzWXE_A-9B7IB-8r.js 2.24 kB
examples/getstarted/build/tr-09v-DLMg-cNNBLaKK.js 10.7 kB
examples/getstarted/build/tr-BKL2AN-d-qg5Qg3zO.js 135 B
examples/getstarted/build/tr-BXu41MLY-ArVPthOz.js 604 B
examples/getstarted/build/tr-CgeK3wJM-dSRlw_D3.js 3.69 kB
examples/getstarted/build/tr-CHHW_hYI-5R6O9qSM.js 297 B
examples/getstarted/build/tr-DsUerr-c-YXWMRKvx.js 3.71 kB
examples/getstarted/build/tr-Dw_jmkG--B4IbSD24.js 1.59 kB
examples/getstarted/build/tr-H1PrR6RM-xxB3ji51.js 158 B
examples/getstarted/build/tr-l-xxK4Yk-g4Y7oIKB.js 1.02 kB
examples/getstarted/build/tr-qa1Q5UjC-vDV9wXQt.js 1.95 kB
examples/getstarted/build/tr-ucOQiEOl.js 83 B
examples/getstarted/build/transferTokens-ngan7vz6-OOcaRYqS.js 439 B
examples/getstarted/build/uk-38IblmOr-QieAa7Gx.js 4.83 kB
examples/getstarted/build/uk-BmRqbeQc-sufYD23D.js 1.57 kB
examples/getstarted/build/uk-Bx5IlOKX-nrIhdC46.js 4.05 kB
examples/getstarted/build/uk-C_1qrLRM-J7zsssVp.js 53 B
examples/getstarted/build/uk-Cpmsxyku-yUi8a8Hj.js 950 B
examples/getstarted/build/uk-CR-zDhAY-4Cy7dUJl.js 3.2 kB
examples/getstarted/build/uk-DVMT2Piq-8NqHl1Qp.js 1.76 kB
examples/getstarted/build/urls-CbOsUOoW-dY8wXd6v.js 103 B
examples/getstarted/build/useAdminRoles-6gBwdcTB-7IejXKCE.js 243 B
examples/getstarted/build/UseCasePage-gWBx1y_X-IONM8Aab.js 1.27 kB
examples/getstarted/build/useDragAndDrop-DdHgKsqq-AOwoVPOx.js 1.22 kB
examples/getstarted/build/useDragLayer-tLk-1soO.js 181 B
examples/getstarted/build/useLicenseLimitNotification-T2LoOH4B-RUOPabKy.js 758 B
examples/getstarted/build/useOnce-GJ2Ta2mZ-zYqhqImS.js 102 B
examples/getstarted/build/users-a4KTyEyc-9Fw_KRz4.js 289 B
examples/getstarted/build/useWebhooks-8VWSFqNg-6-H_a6Dy.js 585 B
examples/getstarted/build/valid-ica7Cz8U.js 2.82 kB
examples/getstarted/build/validation-iwI6BLgg-PQL9CRry.js 428 B
examples/getstarted/build/vi-BfZkgFxI-J7zsssVp.js 53 B
examples/getstarted/build/vi-ClWGrFm9-e6dVFr5e.js 894 B
examples/getstarted/build/vi-DLBe31mD-Urhr1M2j.js 130 B
examples/getstarted/build/vi-DUXIk_fw-bmUBo1M4.js 2.33 kB
examples/getstarted/build/vi-HW-EdMea-CTrLdcKo.js 1.4 kB
examples/getstarted/build/vi-ryNZtXtk-EyNKiOcR.js 4.17 kB
examples/getstarted/build/zh-57YM4amO-p5mfH7xE.js 1.57 kB
examples/getstarted/build/zh-5hKkVPA4-KUd3x9W0.js 1.91 kB
examples/getstarted/build/zh-5kkOa7U5-mHAwOl5D.js 144 B
examples/getstarted/build/zh-BEh3jejH-oPfnHQD3.js 154 B
examples/getstarted/build/zh-BS-XJCSt-cMwuYEn5.js 637 B
examples/getstarted/build/zh-BWZspA60-EdNDaMV2.js 3.87 kB
examples/getstarted/build/zh-CsUDN13W-y_lzxhpN.js 4.2 kB
examples/getstarted/build/zh-DBH6uCXb-3nXFkBcm.js 331 B
examples/getstarted/build/zh-Glkg1L2g-f6qScRof.js 1.07 kB
examples/getstarted/build/zh-Hans-BHilK-yc-esCS3h8E.js 1.99 kB
examples/getstarted/build/zh-Hans-BLEEaLoN-1nykAmIu.js 389 B
examples/getstarted/build/zh-Hans-BPQcRIyH-1MvYxa2Z.js 16.2 kB
examples/getstarted/build/zh-Hans-Cc0M5PXr-iTSSvdn7.js 3.22 kB
examples/getstarted/build/zh-Hans-Cpmhg8uH-gDZbyPra.js 2.88 kB
examples/getstarted/build/zh-Hans-CRQss50D-zIEwBvmr.js 140 B
examples/getstarted/build/zh-Hans-Dyc-aR-h-2NfuE455.js 1.45 kB
examples/getstarted/build/zh-Hans-HlxDUeVA-5rwYKCvD.js 12.7 kB
examples/getstarted/build/zh-Hans-XLMwjASk-Z4E8vffy.js 875 B
examples/getstarted/build/zh-HOnih0is-nLF4rje-.js 2.43 kB
examples/getstarted/build/zh-WEteLuNm-eJaVPrr7.js 11.4 kB

compressed-size-action

Copy link

vercel bot commented May 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
contributor-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2024 2:48pm

@@ -25,14 +25,14 @@ export const getPopulatedEntry = async (
};

export const getEntryValidStatus = async (
Copy link
Contributor

Choose a reason for hiding this comment

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

cc @jhoward1994 just in case, just in case you want to handle publishing validations backend side this might be useful.

Copy link
Member

@joshuaellis joshuaellis left a comment

Choose a reason for hiding this comment

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

some minor feedback on the FE tweaks, you might not have know those things were available :)

Comment on lines +16 to +25
const Panel: PanelComponent = () => {
const {
slug: contentTypeUid = '',
id,
locale,
} = useParams<{
slug: UID.ContentType;
id: string;
locale: string;
}>();
Copy link
Member

Choose a reason for hiding this comment

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

you get model and documentId passed as props to this component, you should use them instead :)

edit: { options },
} = useDocumentLayout(contentTypeUid);
const { formatMessage, formatDate, formatTime } = useIntl();
const { collectionType } = useParams<{ collectionType: string }>();
Copy link
Member

Choose a reason for hiding this comment

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

you also get collectionType as a prop, use that instead

const { formatAPIError } = useAPIErrorHandler();
const [{ query }] = useQueryParams<{ plugins?: { i18n?: { locale?: string } } }>();
const locale = query.plugins?.i18n?.locale;
const { collectionType } = useParams<{ collectionType: string }>();
Copy link
Member

Choose a reason for hiding this comment

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

you get collectionType as a prop

Base automatically changed from v5/bulk-publish-unpublish to v5/main May 7, 2024 14:59
Comment on lines 82 to +85
const query = await permissionsManager.sanitizeQuery(ctx.query);

query.sort = query.groupBy === 'action' ? 'type' : query.groupBy;
delete query.groupBy;
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably not something related to this PR, but this should contain a yup validation. I don't think the sanitizeQuery is sanitizing non existing filters like "groupBy"


type ReleaseWithPopulatedActions = Release & { actions: { count: number } };

const releaseController = {
async findMany(ctx: Koa.Context) {
async findByDocumentAttached(ctx: Koa.Context) {
Copy link
Contributor

Choose a reason for hiding this comment

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

could you add some comment or explanation of what's the responsability of this controller? 🤔
After 2 weeks of being of, I forgot a bit the logic, and I don't quite see what findByDocumentAttached means.

Maybe what confuses me is the "Attached" word

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, it feels off that the endpoint is called findByDocumentAttached, but you can send a parameter to find by documents not attached 🤔

Comment on lines +66 to +92
const relatedReleases = await releaseService.findMany({
where: {
releasedAt: null,
releasedAt: {
$null: true,
},
actions: {
target_type: contentTypeUid,
target_id: entryId,
},
},
});

const releases = await releaseService.findMany({
where: {
$or: [
{
id: {
$notIn: relatedReleases.map((release: any) => release.id),
},
},
{
actions: null,
},
],
releasedAt: {
$null: true,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe these queries could be inside the service itself.

releases.findEntryReleases({id, populate...})
releases.findNotInEntryReleases({id, ...))

You could also reduce logic here if you do something like:
releases.findDocumentReleases({documentId, locale, populate...})
releases.findNotInDocumentReleases({documentId, locale, ...))

Comment on lines +67 to +69
const documents = await strapi.documents(contentTypeUid).findMany({ locale });

return documents[0].id;
Copy link
Contributor

Choose a reason for hiding this comment

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

Use the .findFirst instead, this might load 1M documents if they exist in the database.

@Marc-Roig
Copy link
Contributor

Don't know if it's something already fixed in the v5 branch , but it's a bit difficult for me to test strapi using multiple users atm. It's not possible for me to refresh the page when I have two tabs (one in incognito) with two different users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: chore This PR contains chore tasks (cleanups, configs, tooling...) source: core:content-releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants