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

Strapi migration v3 to v4 #53

Open
wants to merge 40 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
dcdd614
run strapi/codemods migration script
Oct 31, 2023
fe594ef
update cron-tasks configs
Oct 31, 2023
107dd51
enable plugins
Oct 31, 2023
14f0099
refactor content models lifecycles
Nov 1, 2023
a71a0cc
update lifecycles hooks
Nov 1, 2023
2420280
update packages
Nov 2, 2023
bd6bb5f
continue migrating strapi v3 to v4
Nov 6, 2023
11d48b8
migrate deploy-site plugin
Nov 6, 2023
b8c6477
continue migrating custom deploy-site plugin
Nov 6, 2023
94cfa79
add policies to deploy-site plugin
Nov 7, 2023
4e6bf6a
continue migrating strapi v3 to v4
Nov 7, 2023
30403a7
continue migrating deploy-site plugin
Nov 8, 2023
cb7e852
continue migrating strapi custom plugin
Nov 9, 2023
71997ec
use useNotification hook
Nov 9, 2023
52c3502
continue migrating deploy-site plugin
Nov 9, 2023
b85243d
create lifecycles hooks for contentTypes and make deploy-site table work
Nov 13, 2023
97eeb62
update strapi queries
Nov 13, 2023
a365734
fix api queries and notification ids
Nov 14, 2023
230a15e
migrate guide custom plugin
Nov 14, 2023
f1a5d85
start migrating search-indexer plugin
Nov 15, 2023
33ac119
continue migrating strapi algolia
Nov 15, 2023
afc4969
update styles of plugins
Nov 16, 2023
50133d1
make deployment webhook work
Nov 16, 2023
88e4433
fix tests
Nov 17, 2023
bf3e255
fix tests
Nov 20, 2023
03f5f8d
use local postgres database instead of sqlite
Nov 21, 2023
a69259d
refactor lifecycles
Nov 22, 2023
ca83e79
use sendgrig email provider
Nov 22, 2023
dd566e2
fix tests
Nov 22, 2023
70068f9
continue migration
Nov 22, 2023
1d5eb7c
replace strapi's default content field by Tinymce editor
Nov 23, 2023
7ae740b
continue migration
Nov 23, 2023
fe41aa5
Update Strapi v3 to v4
orangit-jaakko-makela Jan 10, 2025
22e6347
Modify front-page contentType
orangit-jaakko-makela Jan 14, 2025
8b26246
middle content-page and front-page middleware
orangit-jaakko-makela Jan 14, 2025
852410a
Remove content value modifier
orangit-jaakko-makela Jan 14, 2025
5278219
fix like & unlike custom actions
sergey-orangit Jan 16, 2025
d1f19ee
Modify main_text data attribute in content-page controller
orangit-jaakko-makela Jan 16, 2025
d908f95
fix getSettings method; new reply creation format
sergey-orangit Jan 16, 2025
f91f637
creating new suggestion syntax fix
sergey-orangit Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
60 changes: 30 additions & 30 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,46 @@ name: Deploy production from main

on:
push:
branches: [ main ]
branches: [main]

env:
NODE_VERSION: '14.x'
NODE_VERSION: "18.x"

concurrency: production-environment

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14.x
- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --silent
- run: yarn test
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14.x
- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --silent
- run: yarn test

build-and-deploy:
name: Build and deploy
runs-on: ubuntu-latest
needs: test
environment: production
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: yarn build
env:
# The license needs to present when building, so that the admin-ui is built as enterprise version
STRAPI_LICENSE: ${{ secrets.STRAPI_LICENSE }}
run: |
yarn install --silent
yarn build
- name: Deploy to Azure webApp
uses: azure/webapps-deploy@v2
with:
app-name: pof-backend-production
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: yarn build
env:
# The license needs to present when building, so that the admin-ui is built as enterprise version
STRAPI_LICENSE: ${{ secrets.STRAPI_LICENSE }}
run: |
yarn install --silent
yarn build
- name: Deploy to Azure webApp
uses: azure/webapps-deploy@v2
with:
app-name: pof-backend-production
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
48 changes: 24 additions & 24 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,43 @@ name: Deploy testing from staging

on:
push:
branches: [ staging ]
branches: [staging]

env:
NODE_VERSION: '14.x'
NODE_VERSION: "18.x"

concurrency: testing-environment

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14.x
- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --silent
- run: yarn test
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14.x
- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --silent
- run: yarn test

build-and-deploy:
name: Build and deploy
runs-on: ubuntu-latest
needs: test
environment: testing
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: yarn build
run: |
yarn install --silent
yarn build
- name: Deploy to Azure webApp
uses: azure/webapps-deploy@v2
with:
app-name: pof-backend-testing
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: yarn build
run: |
yarn install --silent
yarn build
- name: Deploy to Azure webApp
uses: azure/webapps-deploy@v2
with:
app-name: pof-backend-testing
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
19 changes: 9 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@ name: Run tests

on:
pull_request:
branches: [ main, testing ]
branches: [main, testing]

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14.x
- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --silent
- run: yarn test
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --silent
- run: yarn test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.13.0
30 changes: 30 additions & 0 deletions .strapi/client/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* This file was automatically generated by Strapi.
* Any modifications made will be discarded.
*/
import tinymce from "@sklinet/strapi-plugin-tinymce/strapi-admin";
import documentation from "@strapi/plugin-documentation/strapi-admin";
import i18N from "@strapi/plugin-i18n/strapi-admin";
import usersPermissions from "@strapi/plugin-users-permissions/strapi-admin";
import navigation from "strapi-plugin-navigation/strapi-admin";
import deploySite from "../../src/plugins/deploy-site/strapi-admin";
import guide from "../../src/plugins/guide/strapi-admin";
import searchIndexer from "../../src/plugins/search-indexer/strapi-admin";
import { renderAdmin } from "@strapi/strapi/admin";

import customisations from "../../src/admin/app.js";

renderAdmin(document.getElementById("strapi"), {
customisations,

plugins: {
tinymce: tinymce,
documentation: documentation,
i18n: i18N,
"users-permissions": usersPermissions,
navigation: navigation,
"deploy-site": deploySite,
guide: guide,
"search-indexer": searchIndexer,
},
});
62 changes: 62 additions & 0 deletions .strapi/client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html lang="en">
<!--
This file was automatically generated by Strapi.
Any modifications made will be discarded.
-->
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, viewport-fit=cover"
/>
<meta name="robots" content="noindex" />
<meta name="referrer" content="same-origin" />
<title>Strapi Admin</title>
<style>
html,
body,
#strapi {
height: 100%;
}
body {
margin: 0;
-webkit-font-smoothing: antialiased;
}
</style>
</head>
<body>
<div id="strapi"></div>
<noscript
><div class="strapi--root">
<div class="strapi--no-js">
<style type="text/css">
.strapi--root {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
background: #fff;
}

.strapi--no-js {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
font-family: helvetica, arial, sans-serif;
}
</style>
<h1>JavaScript disabled</h1>
<p>
Please
<a href="https://www.enable-javascript.com/">enable JavaScript</a>
in your browser and reload the page to proceed.
</p>
</div>
</div></noscript
>
</body>
</html>
Loading