paginate_query warns if sort_keys does not contain 'id'
Bug #1617996 reported by
Ihar Hrachyshka
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Undecided
|
Ihar Hrachyshka | ||
oslo.db |
Fix Released
|
Undecided
|
Ihar Hrachyshka |
Bug Description
Models do not necessarily have the 'id' attribute. The only reason to warn is when sort_keys would not guarantee stable sorting order. We should inspect the model to determine its unique keys.
To post a comment you must log in.
The bug is triggered in Neutron Newton where we now rely on paginate_query to do sorting for versioned objects for models that don't happen to have the 'id' attribute.