-
- Downloads
Add bookmark ordering (#21652)
* Add bookmark ordering Bookmark ordering is applied to bookmark fetches order-by clauses. To save ordering send a sequence of `[{type, item_id}]` values. There are no foreign keys to the `*_bookmark` tables and bookmark ordering handle extra or missing rows gracefully by ignoring them or falling back to order by created_at as a secondary sort. Pruning is done on save. * Fix missing docstring * Fix refer order * Use varchar for type because h2 is unhappy with text index * Cast untyped literal in union for h2 * Use hx/literal thanks @dpsutton
Showing
- resources/migrations/000_migrations.yaml 73 additions, 0 deletionsresources/migrations/000_migrations.yaml
- src/metabase/api/bookmark.clj 12 additions, 0 deletionssrc/metabase/api/bookmark.clj
- src/metabase/cmd/copy.clj 5 additions, 2 deletionssrc/metabase/cmd/copy.clj
- src/metabase/models.clj 1 addition, 0 deletionssrc/metabase/models.clj
- src/metabase/models/bookmark.clj 35 additions, 28 deletionssrc/metabase/models/bookmark.clj
- test/metabase/api/bookmark_test.clj 54 additions, 9 deletionstest/metabase/api/bookmark_test.clj
Loading
Please register or sign in to comment