You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i tried to add a index for a boolean field and I think that is causing a wierd issue. i looked at the zcatalog docs briefly and the implementation of the "monitored" index on the default component search and it looks like there is an index created for a boolean field but not a column ... I also noticed that there may be a different type of index for a boolean in zcat docs but i didnt read it thoroughly.
basically, i just need to search on a boolean in the catalog rather than have to use a string for it....I think what I need to do is to exclude that field from zenpacklib and add it in as a index only and not a column in my init but I wanted to see if the error im seeing can be duplicated.
basically when i go to model after adding a field index to a field boolean i get a zope location error during modeling.
also I did add this index after the fact and the second question I have is if i add a new field to the catalog Im assuming i need to write a migrate script to manually add it to existing devices or move them in and out of the model class?
The text was updated successfully, but these errors were encountered:
Yeah apparently you cant add a boolean field to an index i retested and when i do i get a zope location error even when i try to add the field index to the bool in dmd so looks like i may need to do a custom catalog with bool index and i may see if category index works because that seems really useful assuming it works with zenoss.
Hopefully someone can try to add a index on a bool to confirm. It didnt cause an error on reload it caused an error when i tried to index an object or during a model
i tried to add a index for a boolean field and I think that is causing a wierd issue. i looked at the zcatalog docs briefly and the implementation of the "monitored" index on the default component search and it looks like there is an index created for a boolean field but not a column ... I also noticed that there may be a different type of index for a boolean in zcat docs but i didnt read it thoroughly.
basically, i just need to search on a boolean in the catalog rather than have to use a string for it....I think what I need to do is to exclude that field from zenpacklib and add it in as a index only and not a column in my init but I wanted to see if the error im seeing can be duplicated.
basically when i go to model after adding a field index to a field boolean i get a zope location error during modeling.
also I did add this index after the fact and the second question I have is if i add a new field to the catalog Im assuming i need to write a migrate script to manually add it to existing devices or move them in and out of the model class?
The text was updated successfully, but these errors were encountered: