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

SearchServiceExtension->generateSearchUUID is misnamed #16

Open
chillu opened this issue May 8, 2020 · 5 comments
Open

SearchServiceExtension->generateSearchUUID is misnamed #16

chillu opened this issue May 8, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@chillu
Copy link
Member

chillu commented May 8, 2020

A UUID is a specific concept (or spec) in computer science terms, and this isn't what we're creating here. See https://en.wikipedia.org/wiki/Universally_unique_identifier.

I'd suggest generateSearchDocumentID(). Or I would question why this needs to be extended onto DataObject in the first place, since it deals with public properties on DataObject only. Couldn't we just keep this in DataObjectDocument->getIdentifier()?

I don't see that logic being customised often. Even for subsites, each page has a unique database identifier. It's only an issue for fluent... is that an extension of DataObjectDocument? Alternatively, we require 4.6 and use DataObject->getUniqueID() which has just been merged. That handles special cases like fluent.

@chillu chillu added the bug Something isn't working label May 8, 2020
@unclecheese
Copy link

Yup, i think this has been superseded by the DocumentInterface abstraction, so let's leave it to that implementation.

@unclecheese
Copy link

@chillu
Copy link
Member Author

chillu commented May 26, 2020

So you didn't want to require 4.6 or newer and go with getUniqueID()? That'll give you fluent compat out of the box for example (on identifier generation at least).

@chillu
Copy link
Member Author

chillu commented Jun 8, 2020

Moving this back to "in progress", got an outstanding question - DataObject->getUniqueKey()

@michalkleiner
Copy link

From my perspective, it makes sense to use getUniqueID().
CMS is on 4.9 now and this module doesn't have a stable release yet so should be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants