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

fix: solve the app install callback url #461

Merged
merged 4 commits into from
Nov 12, 2024
Merged

fix: solve the app install callback url #461

merged 4 commits into from
Nov 12, 2024

Conversation

ch-liuzhide
Copy link
Contributor

修复安装 app 后页面无法正常渲染的bug

Copy link

vercel bot commented Nov 12, 2024

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

Name Status Preview Comments Updated (UTC)
petercat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 8:11am

Copy link

Walkthrough

此 PR 修复了安装应用后页面无法正常渲染的问题。主要通过更新回调 URL 的格式和确保某些 ID 字段被正确转换为字符串来实现。

Changes

文件 概要
server/README.zh-CN.md 添加了研发准备的说明,包括 Python、Supabase CLI 和 AWS CLI 的安装步骤。
server/github_app/router.py 修复了回调 URL 的格式问题,并确保 owner_idrepo_id 被转换为字符串。更新了错误信息以提供更明确的操作指导。

robot_id="",
created_at=int(time.time()),
)
repository_config_dao.create(repository_config)

return RedirectResponse(
url=f"{WEB_URL}/github/installed/{message}", status_code=302
url=f"{WEB_URL}/github/installed?message={message}", status_code=302

Choose a reason for hiding this comment

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

The change from url=f"{WEB_URL}/github/installed/{message}" to url=f"{WEB_URL}/github/installed?message={message}" fixes the issue with the callback URL not being correctly formatted, which could have led to rendering issues after app installation.

Copy link
Contributor

@xingwanying xingwanying left a comment

Choose a reason for hiding this comment

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

LG

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
server/github_app/router.py 36.36% <ø> (+0.40%) ⬆️

... and 1 file with indirect coverage changes

@xingwanying xingwanying changed the title Fix app install call backurl fix: solve the app install callback url Nov 12, 2024
@xingwanying xingwanying merged commit 562c258 into main Nov 12, 2024
5 checks passed
@xingwanying xingwanying deleted the fix_app_install branch November 12, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants