-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Release: 2023.10.2 #12060
Merged
Release: 2023.10.2 #12060
Changes from 70 commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
04908bc
.js
syuilo 096fa16
enhance(frontend): TLの返信表示オプションを記憶するように
syuilo 061e389
perf(backend): nyaizeを投稿時にやる
syuilo 329830e
perf(backend): tweak populateMyReaction
syuilo 3f4ee98
perf(backend): improve streaming api performance (#12033)
syuilo 5117818
Update CHANGELOG.md
syuilo 15706c8
Update CHANGELOG.md
syuilo 1fa1d31
perf(backend): createdAtをidから取得するように & 無駄なDateインスタンスの生成を避けるように
syuilo 24437a0
fix of 1fa1d31696
syuilo 34d1b46
fix tests
syuilo 6a321ba
fix test
syuilo 3ebed5a
feat: local-only antenna
syuilo 1966876
fix test
syuilo 5efd01b
feat: サーバーサイレンス機能を追加 (#12031)
mattyatea 7e4562d
Update CHANGELOG.md
syuilo 9338ab4
update deps
syuilo 5686e1d
refactor
syuilo e9db068
update deps
syuilo 5a3c657
新規にフォローした人のwithRepliesをtrueにする機能を追加 (#12048)
anatawa12 145c5c8
update deps
syuilo 53099ca
fix: `admin/update-meta` が保存できない (#12057)
kakkokari-gtyih 0bddd0c
Remove unnecessary nullish coalescing (#12058)
woxtu f6e1ee1
users/notesでDBから参照した際にチャンネル投稿のみ取得される問題を修正 (#12056)
tai-cha d82b3a0
Update ja-JP.yml (#12053)
nryeouo 52a82ac
Update about-misskey.vue
syuilo 2a88d8e
refactor(backend): rename service
syuilo 6cc02fe
enhance(backend): improve fanout tl
syuilo 3c5bcdd
Update CHANGELOG.md
syuilo 6b7efb6
fix(backend): fix admin/get-user-ips error
syuilo 6b5ee43
enhance(backend): improve fanout tl for stl
syuilo ae1e276
fix of 6cc02fee99
syuilo 5b244cc
update test
syuilo 524b669
2023.10.2-beta.1
syuilo 92b49b6
New Crowdin updates (#12036)
syuilo 01f294b
Update CHANGELOG.md
syuilo de6e15e
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo fcc4864
perf(backend): reduce needless populateMyReaction calls
syuilo 2dfbf97
refactor
syuilo 4d1d25e
perf(backend): improve my reaction population performance
syuilo 1671575
perf(backend): ノートのリアクション情報をキャッシュすることでDBへのクエリを削減
syuilo f9549e1
fix(backend): fix of 1671575d5d
syuilo 428d39a
chore: disable debug log of fastify
syuilo ec45db7
refactor and perf tweak
syuilo 30efd93
enhance: nyaizeはクライアントで表示時に行うように
syuilo 5891adc
Update CHANGELOG.md
syuilo f85a655
2023.10.2-beta.2
syuilo 431d8c7
fix(backend): Redisがからのときにhybrid-timelineにwithReplies = trueでアクセスするとS…
syuilo 93d3501
fix: replies are included even if withReplies = false in local timeli…
anatawa12 721cbe0
fix(frontend): fix of 30efd932a5
syuilo 9afcdd1
UserLite.nameにnullが入りうるのを型で明示 (#12073)
na2na-p 991fa05
chore: STLのdb fallbackでwithRepliesがtrueのときにすべてのリプライを除外しないように (#12075)
anatawa12 3c3d05b
chore(deps): bump actions/checkout from 4.1.0 to 4.1.1 (#12062)
dependabot[bot] 7b36122
fix(frontend): Recieve Unrenote on streaming (#12079)
atsu1125 84a9e4a
Update CHANGELOG.md
syuilo d9241df
New Crowdin updates (#12070)
syuilo cc256f1
update deps
syuilo e5598da
disable cypress widgets tests
syuilo 4a7c6e2
fix(backend): 管理者権限のロールを持っていても一部のAPIが使用できないことがある問題を修正
syuilo 6ff5bfd
clean up
syuilo 216b20d
fix(backend): 自分のフォロワー限定ノートがWebsoketに乗ってこない
syuilo 683b71f
add timeline tests
syuilo d962ea3
add timeline tests
syuilo 18af290
chore: tweak MkNotifications
syuilo 21986a2
enhance(frontend): 投稿されてから時間が経過しているノートであることを視覚的に分かりやすく
syuilo b394328
fix(backend): フォロ限へのリプのリプ元が(非公開)の表示のまま
syuilo df957f7
update test
syuilo 42a3489
update deps
syuilo 3e5c55c
chore: Pull Request時にapi.jsonの差分を表示するActions workflow (#12090)
tai-cha 6d6ddbc
fix(backend) api/iの未読のお知らせにcreatedAtを追加するように修正 (#12092)
shiosyakeyakini-info f4970c7
fix(frontend): Use opening quote in notifications (#12082)
siketyan e6873fb
Switch avatar images that depend on the animation setting (#12097)
woxtu 3b9983c
2023.10.2
syuilo b397a72
New Crowdin updates (#12094)
syuilo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,225 @@ | ||
name: Report API Diff | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
get-base: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.5.1] | ||
|
||
services: | ||
db: | ||
image: postgres:13 | ||
ports: | ||
- 5432:5432 | ||
env: | ||
POSTGRES_DB: misskey | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
POSTGRES_USER: example-misskey-user | ||
POSTGRESS_PASS: example-misskey-pass | ||
redis: | ||
image: redis:7 | ||
ports: | ||
- 6379:6379 | ||
|
||
steps: | ||
- uses: actions/checkout@v4.1.1 | ||
with: | ||
repository: ${{ github.event.pull_request.base.repo.full_name }} | ||
ref: ${{ github.base_ref }} | ||
submodules: true | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3.8.1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
- run: corepack enable | ||
- run: pnpm i --frozen-lockfile | ||
- name: Check pnpm-lock.yaml | ||
run: git diff --exit-code pnpm-lock.yaml | ||
- name: Copy Configure | ||
run: cp .config/example.yml .config/default.yml | ||
- name: Build | ||
run: pnpm build | ||
- name : Migrate | ||
run: pnpm migrate | ||
- name: Launch misskey | ||
run: | | ||
screen -S misskey -dm pnpm run dev | ||
sleep 30s | ||
- name: Wait for Misskey to be ready | ||
run: | | ||
MAX_RETRIES=12 | ||
RETRY_DELAY=5 | ||
count=0 | ||
until $(curl --output /dev/null --silent --head --fail http://localhost:3000) || [[ $count -eq $MAX_RETRIES ]]; do | ||
printf '.' | ||
sleep $RETRY_DELAY | ||
count=$((count + 1)) | ||
done | ||
|
||
if [[ $count -eq $MAX_RETRIES ]]; then | ||
echo "Failed to connect to Misskey after $MAX_RETRIES attempts." | ||
exit 1 | ||
fi | ||
- id: fetch | ||
name: Get api.json from Misskey | ||
run: | | ||
RESULT=$(curl --retry 5 --retry-delay 5 --retry-max-time 60 http://localhost:3000/api.json) | ||
echo $RESULT > api-base.json | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: api-artifact | ||
path: api-base.json | ||
- name: Kill Misskey Job | ||
run: screen -S misskey -X quit | ||
|
||
get-head: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.5.1] | ||
|
||
services: | ||
db: | ||
image: postgres:13 | ||
ports: | ||
- 5432:5432 | ||
env: | ||
POSTGRES_DB: misskey | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
POSTGRES_USER: example-misskey-user | ||
POSTGRESS_PASS: example-misskey-pass | ||
redis: | ||
image: redis:7 | ||
ports: | ||
- 6379:6379 | ||
|
||
steps: | ||
- uses: actions/checkout@v4.1.1 | ||
with: | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.head_ref }} | ||
submodules: true | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3.8.1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
- run: corepack enable | ||
- run: pnpm i --frozen-lockfile | ||
- name: Check pnpm-lock.yaml | ||
run: git diff --exit-code pnpm-lock.yaml | ||
- name: Copy Configure | ||
run: cp .config/example.yml .config/default.yml | ||
- name: Build | ||
run: pnpm build | ||
- name : Migrate | ||
run: pnpm migrate | ||
- name: Launch misskey | ||
run: | | ||
screen -S misskey -dm pnpm run dev | ||
sleep 30s | ||
- name: Wait for Misskey to be ready | ||
run: | | ||
MAX_RETRIES=12 | ||
RETRY_DELAY=5 | ||
count=0 | ||
until $(curl --output /dev/null --silent --head --fail http://localhost:3000) || [[ $count -eq $MAX_RETRIES ]]; do | ||
printf '.' | ||
sleep $RETRY_DELAY | ||
count=$((count + 1)) | ||
done | ||
|
||
if [[ $count -eq $MAX_RETRIES ]]; then | ||
echo "Failed to connect to Misskey after $MAX_RETRIES attempts." | ||
exit 1 | ||
fi | ||
- id: fetch | ||
name: Get api.json from Misskey | ||
run: | | ||
RESULT=$(curl --retry 5 --retry-delay 5 --retry-max-time 60 http://localhost:3000/api.json) | ||
echo $RESULT > api-head.json | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: api-artifact | ||
path: api-head.json | ||
- name: Kill Misskey Job | ||
run: screen -S misskey -X quit | ||
|
||
compare-diff: | ||
runs-on: ubuntu-latest | ||
if: success() | ||
needs: [get-base, get-head] | ||
permissions: | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Download Artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: api-artifact | ||
path: ./artifacts | ||
- name: Output base | ||
run: cat ./artifacts/api-base.json | ||
- name: Output head | ||
run: cat ./artifacts/api-head.json | ||
- name: Arrange json files | ||
run: | | ||
jq '.' ./artifacts/api-base.json > ./api-base.json | ||
jq '.' ./artifacts/api-head.json > ./api-head.json | ||
- name: Get diff of 2 files | ||
run: diff -u --label=base --label=head ./api-base.json ./api-head.json | cat > api.json.diff | ||
- name: Get full diff | ||
run: diff --label=base --label=head --new-line-format='+%L' --old-line-format='-%L' --unchanged-line-format=' %L' ./api-base.json ./api-head.json | cat > api-full.json.diff | ||
- name: Echo full diff | ||
run: cat ./api-full.json.diff | ||
- name: Upload full diff to Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: api-artifact | ||
path: api-full.json.diff | ||
- id: out-diff | ||
name: Build diff Comment | ||
run: | | ||
cat <<- EOF > ./output.md | ||
このPRによるapi.jsonの差分 | ||
<details> | ||
<summary>差分はこちら</summary> | ||
|
||
\`\`\`diff | ||
$(cat ./api.json.diff) | ||
\`\`\` | ||
</details> | ||
|
||
[Get diff files from Workflow Page](https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}) | ||
EOF | ||
- name: Write diff comment | ||
uses: thollander/actions-comment-pull-request@v2 | ||
with: | ||
comment_tag: show_diff | ||
filePath: ./output.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
書き換え忘れていませんか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤯