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

[Feature] Replace PGV by protovalidate #3081

Closed
1 of 7 tasks
perriea opened this issue Nov 12, 2023 · 7 comments
Closed
1 of 7 tasks

[Feature] Replace PGV by protovalidate #3081

perriea opened this issue Nov 12, 2023 · 7 comments
Assignees
Labels

Comments

@perriea
Copy link
Contributor

perriea commented Nov 12, 2023

Feature-request

PGV has entered in maintenance and protovalidate have been announced in April 2023.

Copy link

dosubot bot commented Nov 12, 2023

🤖

Hello @perriea,

Nice to meet you! I'm Dosu, a bot here to assist you with bugs, answer your questions, and guide you on your journey to becoming a contributor. While we wait for a human maintainer to join us, feel free to ask me anything about the Kratos repository. I'm here to help!

It seems like you've got this under control, if you want help or have specific questions, let me know what I can do for you!

@shenqidebaozi
Copy link
Member

SGTM, can I entrust you with completing this task?

@perriea
Copy link
Contributor Author

perriea commented Nov 13, 2023

can I entrust you with completing this task?

Yes, but, I need to explore how add protovalidate in the core and if it's complicated or not :

@perriea
Copy link
Contributor Author

perriea commented Nov 13, 2023

Finaly, It's simple (after one call HTTP) :

2023-11-13T23:57:00.408+0100 [ERROR] app: args="filters:{values:\"1\"}  sort:{argument:Ticker}  pagination:{items:1  page:-1}" caller=recovery/recovery.go:59 code=400 component=http kind=server latency=0.001073208 operation=/instruments.v1.Instruments/Search reason=VALIDATOR
  stack=
  | error: code = 400 reason = VALIDATOR message = validation error:
  |  - pagination.page: value must be greater than or equal to 1 [int32.gte] metadata = map[] cause = validation error:
  |  - pagination.page: value must be greater than or equal to 1 [int32.gte]
  • On tests, obviously, it's a fail, I don't know how to repair because now, it's not a classic struct but a protoreflect.ProtoMessage,
  • protovalidate-go require google.golang.org/grpc v1.57.0, today google.golang.org/grpc v1.56.1 (shared dependencies between all packages),
  • I will do more tests tomorrow.

Copy link

dosubot bot commented Feb 13, 2024

Hi, @perriea,

I'm helping the Kratos team manage our backlog and am marking this issue as stale. From what I understand, you requested replacing PGV with protovalidate in the Kratos repository, layout, and examples, along with updating the documentation and providing a migration protocol. There were updates on your progress, including exploring the process of adding protovalidate in the core and encountering challenges with testing and dependencies.

Could you please confirm if this issue is still relevant to the latest version of the Kratos repository? If it is, please let the Kratos team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.

Thank you for your understanding and cooperation.

I

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Feb 13, 2024
@perriea
Copy link
Contributor Author

perriea commented Feb 13, 2024

Hi, @perriea,

I'm helping the Kratos team manage our backlog and am marking this issue as stale. From what I understand, you requested replacing PGV with protovalidate in the Kratos repository, layout, and examples, along with updating the documentation and providing a migration protocol. There were updates on your progress, including exploring the process of adding protovalidate in the core and encountering challenges with testing and dependencies.

Could you please confirm if this issue is still relevant to the latest version of the Kratos repository? If it is, please let the Kratos team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.

Thank you for your understanding and cooperation.

I

Pull request ready but not reviewed

@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Feb 13, 2024
@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label May 14, 2024
Copy link

dosubot bot commented May 14, 2024

Hi, @perriea,

I'm helping the Kratos team manage their backlog and am marking this issue as stale. It looks like you opened this issue to request replacing PGV with protovalidate due to maintenance concerns and the announcement of protovalidate in April 2023. The migration involves updating the repository, layout, examples, and documentation, and providing a protocol for the migration process. There have been updates on the progress, including exploring the process of adding protovalidate in the core and encountering challenges with testing and dependencies. A pull request is ready but not yet reviewed.

Could you please let us know if this issue is still relevant to the latest version of the Kratos repository? If it is, please comment on the issue to let the Kratos team know. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you!

@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants