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

Set DefaultMetadataReader when ext-exif is not present #841

Merged
merged 1 commit into from
Jan 6, 2017

Conversation

cedricziel
Copy link
Collaborator

This fixes the issue where an exif reader is used, but ext-exif
is not loaded.

Closes: #501

@lsmith77 lsmith77 added the State: Reviewing This item is being reviewed to determine if it should be accepted. label Jan 3, 2017
@robfrawley
Copy link
Collaborator

We need to allow for people to manually overwrite this parameter in their own configuration, no?

@robfrawley robfrawley added the Level: Bug 🐞 This item involves a legitimate regression (bug) to existing functionality. label Jan 3, 2017
@cedricziel
Copy link
Collaborator Author

Yes, sure. I think comparing the set parameter with the bundle default parameter should be sufficient. Fix upcoming.

@robfrawley
Copy link
Collaborator

robfrawley commented Jan 3, 2017

My thinking exactly. 👍 Also; a test case to ensure this isn't applied when ext-exif is available would be much appreciated.

@cedricziel
Copy link
Collaborator Author

That should be it. Now the parameter is only re-set, if it's equal to the default value

@alexwilson
Copy link
Collaborator

Awesome!

Should we offer up some kind of warning or log message when the parameter is reset? It's useful behaviour, but this is definitely something which might cause confusion if a user isn't aware of what's going on.

@cedricziel
Copy link
Collaborator Author

Agreed. I changed the CompilerPass to emit a log message to the compiler log.

This fixes the issue where an exif reader is used, but ext-exif
is not loaded.

Closes: liip#501
@cedricziel
Copy link
Collaborator Author

I added a basic test. Let me know what you think. :)

@alexwilson
Copy link
Collaborator

I'm pretty happy with this!

@robfrawley robfrawley requested a review from lsmith77 January 4, 2017 01:34
Copy link
Contributor

@lsmith77 lsmith77 left a comment

Choose a reason for hiding this comment

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

fine for me too!

@lsmith77
Copy link
Contributor

lsmith77 commented Jan 6, 2017

@robfrawley you have permissions to merge right?

@lsmith77
Copy link
Contributor

lsmith77 commented Jan 6, 2017

ah @cedricziel too :)

@lsmith77 lsmith77 removed the State: Reviewing This item is being reviewed to determine if it should be accepted. label Jan 6, 2017
@cedricziel
Copy link
Collaborator Author

Yep, I've just wanted to wait for reviews - thx for participating and the valuable feedback!

@cedricziel cedricziel merged commit cf89fdf into liip:1.0 Jan 6, 2017
@cedricziel cedricziel deleted the metadata-driver branch January 6, 2017 10:47
@cedricziel cedricziel mentioned this pull request Jan 6, 2017
@robfrawley
Copy link
Collaborator

@lsmith77 Sure do have merge rights! It's just been a bit since you've been around and many merges have happened with the "new, active maintainers crew"; my review request was just a good way to have you check in and make sure you were comfortable with everything so far. Thanks @cedricziel for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Level: Bug 🐞 This item involves a legitimate regression (bug) to existing functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants