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

updateToMany/ToOne indexing.. #30

Open
dougsyer opened this issue Jan 27, 2014 · 3 comments
Open

updateToMany/ToOne indexing.. #30

dougsyer opened this issue Jan 27, 2014 · 3 comments

Comments

@dougsyer
Copy link

One issue i've noticed with the updateToOne, updateToMany /utils methods is that if your relationships are created but the indexing fails for some reason during the modelling, it will never again try to update the componentsearch catalog and so you wont see the relation in the gui subcomponent.

Im assuming this is because changed_ids will be an empty set so the indexing will get skipped.

Im also assuming that this method does work when there are changes since I know its being used in the Netapp commercial zenpack and it looks to me like i can see all the to/many to/one rels there.

for now im assuming there is a bug somewhere in my modeller preventing the indexing but not the relations. or ive hacked up my dev environment indexing somehow.

but I do think that there should be a check somewhere to see if the relations match the componentsearch catalog so that you can survive a temporary indexing issue (ie zencatalogserver crash/reastart in enterprise, etc)

@dougsyer
Copy link
Author

dougsyer commented Feb 1, 2014

My original issue was lack of a custom path reporter which once i set up looked like it fixed things. Even though it looks like i could get the component search indexing to work with an index object in a funky way..now the modelling works every time calling update to one update to many.

One utility that would be nice is a decorator for conv to units with some formatting options for commas in numbers. Also maybe some decorator for f and celcius formatting.

Longer term would be nice to have some guidance on where we should do formattiing. Ie as a method in the object or in the api layer or in js renderers..

@eedgar
Copy link
Contributor

eedgar commented Feb 4, 2014

Doug, Thanks for the feedback re the decorators. We are trying to figure out where to take zenpack generator next. We are looking to take what we have learned with this first implementation to see if we can iterate it to make future zenpacks easier to iterate on.

I wont close this ticket yet as I want to think about the indexing issue a bit more.

@dougsyer
Copy link
Author

dougsyer commented Feb 4, 2014

The technique in the vsphere zenpack with the _index factory is really interesting.

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

2 participants