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

feat: add common module #135

Merged
merged 11 commits into from
Dec 20, 2024
Merged

Conversation

penqee
Copy link
Contributor

@penqee penqee commented Dec 10, 2024

…instead of required

Closes #68.

自查 PR 结构

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

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

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

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

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

这个 PR 的类型是什么?

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

主要是对#68做一些补充

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

对 Reviewer 预留的一些提醒

  1. 201002之前的学期信息无法获取,fuu里也是一样,很可能是jwch库抓取数据的问题

@penqee penqee requested review from mutezebra, ozline, jiuxia211 and a team as code owners December 10, 2024 14:04
@renbaoshuo renbaoshuo marked this pull request as draft December 10, 2024 14:09
Copy link

codecov bot commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 2.54545% with 1876 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
kitex_gen/common/common.go 0.00% 1078 Missing ⚠️
kitex_gen/common/k-common.go 0.00% 689 Missing ⚠️
kitex_gen/common/commonservice/commonservice.go 0.00% 42 Missing ⚠️
internal/common/handler.go 0.00% 22 Missing ⚠️
api/rpc/common.go 0.00% 20 Missing ⚠️
api/router/api/middleware.go 0.00% 9 Missing ⚠️
kitex_gen/common/commonservice/client.go 0.00% 6 Missing ⚠️
api/router/api/api.go 0.00% 5 Missing ⚠️
pkg/base/pack.go 66.66% 2 Missing and 1 partial ⚠️
internal/paper/handler.go 0.00% 1 Missing ⚠️
... and 1 more
@@           Coverage Diff            @@
##            main    #135      +/-   ##
========================================
+ Coverage   3.08%   3.13%   +0.05%     
========================================
  Files        182     183       +1     
  Lines      36799   38472    +1673     
========================================
+ Hits        1134    1205      +71     
- Misses     35601   37203    +1602     
  Partials      64      64              
Flag Coverage Δ
unittest 3.13% <2.54%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
api/handler/api/common_service.go 42.46% <100.00%> (+42.46%) ⬆️
internal/common/service/term.go 100.00% <100.00%> (ø)
internal/paper/handler.go 0.00% <0.00%> (ø)
pkg/upyun/paper.go 0.00% <0.00%> (ø)
pkg/base/pack.go 50.87% <66.66%> (+2.96%) ⬆️
api/router/api/api.go 0.00% <0.00%> (ø)
kitex_gen/common/commonservice/client.go 0.00% <0.00%> (ø)
api/router/api/middleware.go 0.00% <0.00%> (ø)
api/rpc/common.go 0.00% <0.00%> (ø)
internal/common/handler.go 0.00% <0.00%> (ø)
... and 3 more

... and 5 files with indirect coverage changes

@penqee penqee changed the title [WIP] feat: add common module feat: add common module Dec 11, 2024
@penqee penqee marked this pull request as ready for review December 11, 2024 07:33
)

func (s *TermService) GetTermList() (*jwch.SchoolCalendar, error) {
return jwch.NewStudent().GetSchoolCalendar()
Copy link
Contributor

Choose a reason for hiding this comment

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

仿照academic 加入对 jwch库的cookie错误的特殊处理

@jiuxia211
Copy link
Contributor

看来出现的新的冲突

@penqee
Copy link
Contributor Author

penqee commented Dec 14, 2024

看来出现的新的冲突

我晚点解决一下

@penqee penqee closed this Dec 14, 2024
@penqee penqee reopened this Dec 14, 2024
@SchwarzSail
Copy link
Member

这只能本地手动 merge 一下 main 了

@penqee
Copy link
Contributor Author

penqee commented Dec 17, 2024

unit Test 测试过不了原因是errno那里错误信息从英文换成中文了,common这里的test我改过了,test能通过

@penqee penqee requested a review from renbaoshuo as a code owner December 20, 2024 07:25
@jiuxia211 jiuxia211 merged commit c53b308 into west2-online:main Dec 20, 2024
6 of 7 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