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

CMFCatalogAware reindexObject API has a problem with uid #87

Open
ewohnlich opened this issue Mar 17, 2020 · 6 comments
Open

CMFCatalogAware reindexObject API has a problem with uid #87

ewohnlich opened this issue Mar 17, 2020 · 6 comments
Assignees

Comments

@ewohnlich
Copy link
Contributor

This change d76903b added two new parameters including one for "uid". This is eventually passed on to Product.ZCatalog's "catalog_object" which will assign a uid of the object's path if it is not otherwise defined. The problem is that it is literally checking "is None" for uid, and the default value of False does not satisfy that condition. ZCatalog will then raise a CatalogError "The object unique id must be a string."

I believe the default value for uid in CMFCatalogAware.CatalogAware.reindexObject should simply be changed from False to None.

@dataflake
Copy link
Member

Assigning to Gil who authored those changes

@gforcada
Copy link
Member

Yes, sounds sane, I can't remember where I copied those arguments from, and why the default was False, but I'm 👍 on changing the default, @ewohnlich would you mind creating the pull request yourself? I'm quite short on time lately 😕

@ewohnlich
Copy link
Contributor Author

Sure I can do that. I have not contributed to this project before though - do I need to sign the Plone contributor agreement for this? And is this documentation on what else to update e.g. a changelog?

@dataflake
Copy link
Member

Code contributions require a signed contributor agreement, a change log entry and if at all possible unit tests for the change.

@ewohnlich
Copy link
Contributor Author

No problem, I will make a fork and submit a PR for it. Question about the contributor agreement: can I just put "Plone" for the program name, or do I need to submit an agreement for each package modified?

@d-maurer
Copy link
Contributor

d-maurer commented Mar 21, 2020 via email

ewohnlich pushed a commit that referenced this issue May 11, 2020
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

No branches or pull requests

4 participants