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

DX: Mention table and column-name in unqiue error message #110

Merged
merged 5 commits into from
Feb 20, 2024

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Feb 20, 2024

PR Checklist

Please check if your pull request fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior?

$ php bin/gdpr-dump config.yaml 
...
Maximum retries of 0 reached without finding a unique value.

Issue Number: #109

What is the new behavior?

$ php bin/gdpr-dump config.yaml 
...
erp_user.first_name: Maximum retries of 0 reached without finding a unique value.

note the table.column-name prefix before the error message

Does this PR introduce a breaking change?

[ ] Yes
[ ] No
[x] Maybe

Other information

@staabm
Copy link
Contributor Author

staabm commented Feb 20, 2024

just saw and fixed the phpcs errors, sorry for not realizing it in the first place

@guvra
Copy link
Collaborator

guvra commented Feb 20, 2024

Hi @staabm,

I see you already updated the PR 👍
Could you also change it to catch all exceptions instead of just overflow exception (so that it works for all converters)?

@guvra
Copy link
Collaborator

guvra commented Feb 20, 2024

And also add imports for exceptions with use ... at the beginning of the file

@staabm
Copy link
Contributor Author

staabm commented Feb 20, 2024

sure thing, fixed. thanks for the fast feedback.

@guvra
Copy link
Collaborator

guvra commented Feb 20, 2024

Thanks, the last change required is to sort the use you added, otherwise php codesniffer is not happy 😄

@staabm
Copy link
Contributor Author

staabm commented Feb 20, 2024

here we go

@guvra guvra merged commit 3700467 into Smile-SA:main Feb 20, 2024
3 checks passed
@staabm staabm deleted the dx-unique branch February 20, 2024 10:52
@staabm
Copy link
Contributor Author

staabm commented Feb 20, 2024

thank you @guvra. may I ask you about your plans, for a new release?

@guvra
Copy link
Collaborator

guvra commented Feb 20, 2024

thank you @guvra. may I ask you about your plans, for a new release?

Thanks you too for your contribution!
I updated the changelog, i'm currently running some tests on magento/shopware databases.
If they succeed, I will probably be able to publish a release today but no promises.

@guvra guvra added the feature New feature or request label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants