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

Pdo driver interface/password sensitive param #874

Merged

Conversation

heap-s
Copy link
Contributor

@heap-s heap-s commented Aug 28, 2024

Q A
Is bugfix?
New feature?
Breaks BC?
Fixed issues #872

src/Driver/Pdo/PdoDriverInterface.php Outdated Show resolved Hide resolved
@heap-s heap-s requested a review from vjik August 28, 2024 10:13
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.72%. Comparing base (99d69c1) to head (42ac659).

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #874      +/-   ##
============================================
- Coverage     99.61%   98.72%   -0.90%     
  Complexity     1372     1372              
============================================
  Files            74       74              
  Lines          3360     3360              
============================================
- Hits           3347     3317      -30     
- Misses           13       43      +30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@samdark samdark requested a review from Tigrov August 28, 2024 11:29
@Tigrov
Copy link
Member

Tigrov commented Aug 29, 2024

Can we test it?

@samdark
Copy link
Member

samdark commented Aug 29, 2024

@Tigrov not really.

@vjik
Copy link
Member

vjik commented Aug 29, 2024

Hm, if we can throw exception, then we can check trace. Example: https://3v4l.org/OYZAt

@Tigrov
Copy link
Member

Tigrov commented Aug 29, 2024

To get an exception we can pass an integer value or null instead of string

@heap-s
Copy link
Contributor Author

heap-s commented Aug 29, 2024

Have we decided what we're doing here in terms of testing?

@Tigrov
Copy link
Member

Tigrov commented Aug 30, 2024

Have we decided what we're doing here in terms of testing?

Can you try to use this example for testing the SensitiveParameter?

https://3v4l.org/Gh1lY

@heap-s
Copy link
Contributor Author

heap-s commented Sep 3, 2024

@Tigrov The solution that I think of implementing is https://3v4l.org/QK6Yo I believe that this is appropriate and what you'd like in terms of testing for the SensitiveParameter. Let me know what you think.

tests/Db/Driver/PDO/PDODriverTest.php Outdated Show resolved Hide resolved
@heap-s
Copy link
Contributor Author

heap-s commented Sep 3, 2024

Let me know if you'd like me to squash these commits, so that the history is cleaner

@Tigrov
Copy link
Member

Tigrov commented Sep 3, 2024

Let me know if you'd like me to squash these commits, so that the history is cleaner

Let's see on test results then squash and merge it.

@vjik vjik requested a review from Tigrov September 4, 2024 07:49
@Tigrov
Copy link
Member

Tigrov commented Sep 4, 2024

Thanks 👍

@Tigrov Tigrov merged commit e6382dd into yiisoft:master Sep 4, 2024
55 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.

4 participants