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: api.common and api.version logic error , hard-coding in tests #144

Merged
merged 9 commits into from
Dec 18, 2024

Conversation

FantasyRL
Copy link
Member

@FantasyRL FantasyRL commented Dec 18, 2024

自查 PR 结构

  • PR 标题符合这个格式: <type>(optional scope): <description>

  • 此 PR 标题的描述以用户为导向,足够清晰,其他人可以理解。

  • 我已经对所有 commit 提供了签名(GPG 密钥签名、SSH 密钥签名)

  • 这个 PR 属于强制变更/破坏性更改

如果是,请在 PR 标题中添加 BREAKING CHANGE 前缀,并在 PR 描述中详细说明。

这个 PR 的类型是什么?

fix

这个 PR 做了什么 / 我们为什么需要这个 PR?

这个pr修正了在api层common与version服务在出错返回时多返回了内部错误
并且修复了在测试中出现的硬编码问题

(可选)这个 PR 解决了哪个/些 issue?

对 Reviewer 预留的一些提醒

这个测试还移除了一个与log有关的test,在#143中会被重新添加

@FantasyRL FantasyRL marked this pull request as ready for review December 18, 2024 06:39
@FantasyRL FantasyRL requested review from jiuxia211, ozline and a team as code owners December 18, 2024 06:39
@FantasyRL FantasyRL requested a review from mutezebra as a code owner December 18, 2024 07:10
@FantasyRL FantasyRL changed the title fix: api.common and api.version logic error fix: api.common and api.version logic error , hard-coding in tests Dec 18, 2024
@FantasyRL
Copy link
Member Author

目前未解决的问题:internal/course/service/get_course_list_test.go会调用到logger,导致make test识别到error

@ozline
Copy link
Member

ozline commented Dec 18, 2024

你这个 pr 谁来看?

@jiuxia211
Copy link
Contributor

你这个 pr 谁来看?

等会我尝试修一下ci

@jiuxia211 jiuxia211 merged commit 67125a8 into west2-online:main Dec 18, 2024
6 checks passed
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.

3 participants