Skip to content

Remove patch version number from error link #794

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

Merged
merged 1 commit into from
Jul 21, 2023
Merged

Conversation

hramezani
Copy link
Member

@hramezani hramezani commented Jul 21, 2023

Fixes pydantic/pydantic#6521

Selected Reviewer: @davidhewitt

@codspeed-hq
Copy link

codspeed-hq bot commented Jul 21, 2023

CodSpeed Performance Report

Merging #794 will degrade performances by 11.3%

Comparing error_link (6ef2610) with main (f38bea6)

Summary

❌ 1 regressions
✅ 125 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main error_link Change
test_small_class_core_model 45.6 µs 51.4 µs -11.3%

@codecov
Copy link

codecov bot commented Jul 21, 2023

Codecov Report

Merging #794 (6ef2610) into main (9b540d0) will decrease coverage by 0.01%.
The diff coverage is 90.90%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #794      +/-   ##
==========================================
- Coverage   93.53%   93.52%   -0.01%     
==========================================
  Files         100      100              
  Lines       14376    14379       +3     
  Branches       25       25              
==========================================
+ Hits        13446    13448       +2     
- Misses        924      925       +1     
  Partials        6        6              
Impacted Files Coverage Δ
src/errors/validation_exception.rs 93.83% <85.71%> (-0.27%) ⬇️
src/input/input_python.rs 98.11% <100.00%> (+0.01%) ⬆️
src/validators/function.rs 90.65% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f38bea6...6ef2610. Read the comment docs.

@hramezani hramezani force-pushed the error_link branch 2 times, most recently from 66ea0fc to e9f230c Compare July 21, 2023 16:15
@hramezani
Copy link
Member Author

please review

Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

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

otherwise LGTM.

get_pydantic_version(py).unwrap_or("latest")
)
}))
let pydantic_version = match get_pydantic_version(py) {
Copy link
Member

Choose a reason for hiding this comment

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

we need to do this inside the get_or_init to avoid the overhead of calling this each time, best to create a new function including this logic and the format!

@hramezani
Copy link
Member Author

please review

@samuelcolvin samuelcolvin merged commit ec6f719 into main Jul 21, 2023
@samuelcolvin samuelcolvin deleted the error_link branch July 21, 2023 17:41
@samuelcolvin
Copy link
Member

thanks so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid BaseSettings Error Doc Link
3 participants