Skip to content

get_all_records_where for message is not currently used #6340

@gthvn1

Description

@gthvn1

👋,

When looking the API for message class it shows that the string expression used as a a parameter for filtering get_all_records_where is not used. And indeed when looking the code the string is ignored and a function that always returns true is used instead.

It looks like for example for VDIs it is implemented and as I don't see the implementation in xapi_vdi.ml I suppose that it is autogenerated? Because for VDIs you can create query like:

    let query = Printf.sprintf "(field \"location\"=\"%s\") and (field \"SR\"=\"%s\")" remote_vdi (Ref.string_of dest_sr_ref) in
    let vdis = XenAPI.VDI.get_all_records_where remote.rpc remote.session query in

Are there any reasons why for the "message" class we don't use the filter? would it be easy to implement the same filtering as for VDIs? maybe there is something already in progress or some other plans ?

Thanks for your insights!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions