Skip to content

Commit

Permalink
Merge branch 'master' into imprv/153742-153037-security-setting-new-d…
Browse files Browse the repository at this point in the history
…esign
  • Loading branch information
kazutoweseek committed Jan 15, 2025
2 parents 433fee7 + cc7a2bc commit fd16e22
Show file tree
Hide file tree
Showing 173 changed files with 7,858 additions and 2,230 deletions.
1 change: 1 addition & 0 deletions .devcontainer/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
- node_modules:/workspace/growi/node_modules
- buildcache_app:/workspace/growi/apps/app/.next
- ../../growi-docker-compose:/workspace/growi-docker-compose:delegated
- ../../share:/workspace/share:delegated
tty: true

mongo:
Expand Down
1 change: 0 additions & 1 deletion .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ sudo chown -R vscode:vscode /workspace;
# Instal additional packages
sudo apt update
sudo apt-get install -y --no-install-recommends \
git-lfs \
iputils-ping net-tools dnsutils
sudo apt-get clean -y

Expand Down
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/ci-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ on:
- apps/app/**
- '!apps/app/docker/**'
- packages/**
pull_request:
types: [opened, reopened, synchronize]
paths:
- .github/mergify.yml
- .github/workflows/ci-app.yml
- .eslint*
- tsconfig.base.json
- turbo.json
- pnpm-lock.yaml
- package.json
- apps/app/**
- '!apps/app/docker/**'
- packages/**

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
- name: Bump versions
run: |
turbo run version:patch --filter=@growi/app
pnpm upgrade --scope=@growi
sh ./apps/app/bin/github-actions/update-readme.sh
- name: Retrieve information from package.json
Expand Down Expand Up @@ -178,7 +177,6 @@ jobs:
run: |
turbo run version:prepatch --filter=@growi/app
turbo run version:prepatch --filter=@growi/slackbot-proxy
pnpm upgrade --scope=@growi
- name: Retrieve information from package.json
uses: myrotvorets/[email protected]
Expand Down
63 changes: 59 additions & 4 deletions .github/workflows/reusable-app-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ on:
secrets:
SLACK_WEBHOOK_URL:
required: true
workflow_dispatch:
inputs:
node-version:
required: true
type: string
default: 20.x
skip-e2e-test:
type: boolean
default: false
secrets:
SLACK_WEBHOOK_URL:
required: true

jobs:

Expand All @@ -23,10 +35,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Git LFS
run: |
git lfs install
- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
Expand Down Expand Up @@ -165,6 +173,10 @@ jobs:
run-playwright:
needs: [build-prod]

if: |
github.event_name == 'workflow_dispatch' ||
(!inputs.skip-e2e-test && startsWith(github.head_ref, 'mergify/merge-queue/'))
runs-on: ubuntu-latest
container:
# Match the Playwright version
Expand Down Expand Up @@ -227,6 +239,7 @@ jobs:
run: |
pnpm playwright test --project=chromium/installer
env:
DEBUG: pw:api
HOME: /root # ref: https://github.com/microsoft/playwright/issues/6500
MONGO_URI: mongodb://mongodb:27017/growi-playwright-installer
ELASTICSEARCH_URI: http://localhost:${{ job.services.elasticsearch.ports['9200'] }}/growi
Expand All @@ -241,6 +254,7 @@ jobs:
run: |
pnpm playwright test --project=${{ matrix.browser }} --shard=${{ matrix.shard }}
env:
DEBUG: pw:api
HOME: /root # ref: https://github.com/microsoft/playwright/issues/6500
MONGO_URI: mongodb://mongodb:27017/growi-playwright
ELASTICSEARCH_URI: http://localhost:${{ job.services.elasticsearch.ports['9200'] }}/growi
Expand All @@ -255,10 +269,19 @@ jobs:
run: |
pnpm playwright test --project=${{ matrix.browser }}/guest-mode --shard=${{ matrix.shard }}
env:
DEBUG: pw:api
HOME: /root # ref: https://github.com/microsoft/playwright/issues/6500
MONGO_URI: mongodb://mongodb:27017/growi-playwright-guest-mode
ELASTICSEARCH_URI: http://localhost:${{ job.services.elasticsearch.ports['9200'] }}/growi

- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: blob-report-${{ matrix.shard }}
path: blob-report
retention-days: 30

- name: Slack Notification
uses: weseek/ghaction-slack-notification@master
if: failure()
Expand All @@ -268,3 +291,35 @@ jobs:
channel: '#ci'
isCompactMode: true
url: ${{ secrets.SLACK_WEBHOOK_URL }}


report-playwright:
needs: [run-playwright]

if: always() && needs.run-playwright.result != 'skipped'

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'pnpm'

- name: Install dependencies
run: |
pnpm install --frozen-lockfile
- name: Merge into HTML Report
run: pnpm playwright merge-reports --reporter html ./all-blob-reports

- name: Upload HTML report
uses: actions/upload-artifact@v4
with:
name: html-report
path: playwright-report
retention-days: 30
10 changes: 9 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,13 @@

"githubPullRequests.ignoredPullRequestBranches": [
"master"
]
],

"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.preferences.autoImportFileExcludePatterns": ["node_modules/*"],
"typescript.validate.enable": true,
"typescript.surveys.enabled": false,

"vitest.filesWatcherInclude": "**/*"
}
168 changes: 167 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,175 @@
# Changelog

## [Unreleased](https://github.com/weseek/growi/compare/v7.0.22...HEAD)
## [Unreleased](https://github.com/weseek/growi/compare/v7.1.6...HEAD)

*Please do not manually update this file. We've automated the process.*

## [v7.1.6](https://github.com/weseek/growi/compare/v7.1.5...v7.1.6) - 2024-12-26

### 💎 Features

* feat(ai): Save file to VectorStore in HTML format (#9462) @miya

### 🐛 Bug Fixes

* fix: remark-lsx pagination (#9513) @miya
* fix: Spelling miss of external_link in i18n (#9456) @reiji-h
* fix: Wider copy to clipboard area (#9450) @Ryosei-Fukushima
* fix: Error when creating pages with deep hierarchy (#9487) @reiji-h

### 🧰 Maintenance

* ci(deps): bump next from 14.2.13 to 14.2.15 (#9501) @dependabot

## [v7.1.5](https://github.com/weseek/growi/compare/v7.1.4...v7.1.5) - 2024-12-13

### 🚀 Improvement

* imprv: Slim down the sidebar scrollbar (#9430) @reiji-h

### 🐛 Bug Fixes

* fix: Usage for stream pipeline of callback version (#9455) @reiji-h
* fix: TypeError occurs during export (#9481) @miya
* fix: Put `/` before the page name (#9471) @Ryosei-Fukushima
* fix: Cannot comment when comments from rom user are allowed (#9472) @miya

## [v7.1.4](https://github.com/weseek/growi/compare/v7.1.3...v7.1.4) - 2024-11-26

### 🐛 Bug Fixes

* fix: Failed to export the page markdown (#9444) @miya

## [v7.1.3](https://github.com/weseek/growi/compare/v7.1.2...v7.1.3) - 2024-11-26

### 💎 Features

* feat(ai): Set a rate limit for vector store rebuild (#9404) @miya

### 🚀 Improvement

* imprv: Fonts preload settings (#9432) @yuki-takei
* imprv: Use stream.pipeline (#9361) @reiji-h

### 🐛 Bug Fixes

* fix: Retrieving runtime versions (#9438) @yuki-takei
* fix: Notification for new user creation (#9434) @yuki-takei
* fix: Deleted pages appear in the page tree (#9337) @reiji-h

## [v7.1.2](https://github.com/weseek/growi/compare/v7.1.1...v7.1.2) - 2024-11-18

### 🚀 Improvement

* imprv(ai): GROWI AI Knowledge Assistant instructions (#9407) @yuki-takei
* imprv(ai): Knowedge Assistant model configuration by env var (#9410) @yuki-takei
* imprv(ai): Shorten thread deletion expiredAt (#9419) @yuki-takei
* imprv(ai): Remove unnecessary strings from markdown when creating VectorStoreFIie (#9411) @miya
* imprv(ai): Create thead before the first post (#9414) @yuki-takei

### 🐛 Bug Fixes

* fix: Fixed the message when all read (#9405) @Ryosei-Fukushima

### 🧰 Maintenance

* support: Import OpenAI features dynamically (#9413) @yuki-takei
* support: Welcome back Hufflepuff badger (#9403) @satof3

## [v7.1.1](https://github.com/weseek/growi/compare/v7.1.0...v7.1.1) - 2024-11-12

### 💎 Features

* feat(ai): Swtch summary mode (#9377) @yuki-takei
* feat: Return sources when generating responses (Knowledge assistant) (#9362) @miya
* feat: Set the maximum number of minutes until the request in an environment variable (#9347) @miya

### 🚀 Improvement

* imprv: GitHub Alert with directive syntax (#9392) @yuki-takei
* imprv: Sidebar button displays tooltip (#9371) @reiji-h
* imprv: Open the link of PageTreeItem in a new tab when the user middle click (#9365) @yuki-takei
* support: Avoid using req.t() (#9149) @shironegi39
* imprv: Tidy up /Sandbox (#9355) @yuki-takei
* imprv: Reduce sanitizing (#9350) @yuki-takei

### 🐛 Bug Fixes

* fix: Output TextDirective and LeafDirective HTML (#9388) @yuki-takei
* fix: NextLink isCreatablePage always returns false (#9356) @yuki-takei
* fix: Duplicate page names alert should not occur on a single page (#9348) @reiji-h
* fix: i18n for security settings (#9379) @yuki-takei
* fix: Output TextDirective and LeafDirective HTML (#9388) @yuki-takei
* fix(i18n): i18n for server side (#9372) @yuki-takei
* fix: Duplicate page names alert should not occur on a single page (#9348) @reiji-h
* fix: NextLink isCreatablePage always returns false (#9356) @yuki-takei

### 🧰 Maintenance

* support: Welcome back new Christmas theme (#9374) @satof3
* support: Type checking (#9393) @yuki-takei
* support: Welcome back new Christmas theme (#9374) @satof3
* support: Omit remark-toc (#9383) @yuki-takei
* support: Stop managing font files with Git LFS (#9351) @yuki-takei
* support: Avoid using req.t() (#9149) @shironegi39
* support: Improve playwright report (#9363) @yuki-takei
* support: Avoid using req.t() (#9149) @shironegi39
* support: Stop managing font files with Git LFS (#9351) @yuki-takei

## [v7.1.0](https://github.com/weseek/growi/compare/v7.0.23...v7.1.0) - 2024-10-31

### BREAKING CHANGES

* imprv: Update default value for S3_OBJECT_ACL (#9332) @yuki-takei

### 💎 Features

* feat: GROWI OpenAI Integration (#9246) @yuki-takei

### 🚀 Improvement

* imprv: Add GitHub Markdown alerts (#9127) @reiji-h
* imprv: Upgrade unified and remark-growi-directive (#9048) @reiji-h
* imprv: ROM users can manage comments (#9101) @WNomunomu
* imprv: Update default value for S3_OBJECT_ACL (#9332) @yuki-takei
* imprv: Sandbox (#9330) @yuki-takei
* support: JSDoc for OpenAPI document (#9311) @yuki-takei

### 🐛 Bug Fixes

* fix: Couldn't show old revision (#9296) @yuki-takei
* fix: Replace the word ROM (#9295) @satof3
* fix: forgot-password API (#9257) @reiji-h
* fix: Edit button appear for the side of header (#9270) @yuki-takei
* fix: Ensure text-only paste for mixed content from various sources (#9096) @reiji-h
* fix: Notification count badge (#9124) @shironegi39
* fix(ogp): Set an unknown label when the user is not found (#9232) @yuki-takei

### 🧰 Maintenance

* support: Migrate to pnpm from yarn v1 (#9249) @yuki-takei
* support: Omit MongoDB 4.x compatible code (#9334) @yuki-takei
* support: Pull LFS files with turbo (#9325) @yuki-takei
* support: Use `pnpm deploy` instead of `turbo prune` (#9323) @yuki-takei
* support: Maintenance API docs generation (#9302) @yuki-takei
* support: Improve typings for PageService (#9220) @yuki-takei
* support: Typescriptize accessTokenParser (#9320) @yuki-takei
* support: Migrate to pnpm from yarn v1 (#9249) @yuki-takei
* support: JSDoc for OpenAPI document (#9311) @yuki-takei
* support: Maintenance API docs generation (#9302) @yuki-takei
* support: Omit docs route (#9299) @yuki-takei

## [v7.0.23](https://github.com/weseek/growi/compare/v7.0.22...v7.0.23) - 2024-10-24

### 🐛 Bug Fixes

* fix: Couln't show old revision (#9296) @yuki-takei

### 🧰 Maintenance

* support: Maintenance API docs generation (#9302) @yuki-takei
* support: Omit docs route (#9299) @yuki-takei

## [v7.0.22](https://github.com/weseek/growi/compare/v7.0.21...v7.0.22) - 2024-10-21

### 🐛 Bug Fixes
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ See [GROWI Docs: Environment Variables](https://docs.growi.org/en/admin-guide/ad

| command | desc |
| --------------------- | ------------------------------------------------------- |
| `pnpm run app:build` | Build GROWI app client |
| `pnpm run app:server` | Launch GROWI app server |
| `pnpm run start` | Invoke `pnpm run app:build` and `pnpm run app:server` |
| `npm run app:build` | Build GROWI app client |
| `npm run app:server` | Launch GROWI app server |
| `npm run start` | Invoke `npm run app:build` and `npm run app:server` |

For more info, see [GROWI Docs: List of npm Scripts](https://docs.growi.org/en/dev/startup-v5/start-development.html#list-of-npm-scripts).

Expand Down
6 changes: 3 additions & 3 deletions README_JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ Crowi からの移行は **[こちら](https://docs.growi.org/en/admin-guide/mig

| コマンド | 説明 |
| --------------------- | --------------------------------------------------------------- |
| `pnpm run app:build` | GROWI app クライアントをビルドします。 |
| `pnpm run app:server` | GROWI app サーバーを起動します。 |
| `pnpm run start` | `pnpm run app:build``pnpm run app:server` を呼び出します。 |
| `npm run app:build` | GROWI app クライアントをビルドします。 |
| `npm run app:server` | GROWI app サーバーを起動します。 |
| `npm run start` | `npm run app:build``npm run app:server` を呼び出します。 |

詳しくは [GROWI Docs: npm スクリプトリスト](https://docs.growi.org/ja/dev/startup-v5/start-development.html#npm-%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%95%E3%82%9A%E3%83%88%E3%83%AA%E3%82%B9%E3%83%88)をご覧ください。

Expand Down
Loading

0 comments on commit fd16e22

Please sign in to comment.