Improved search filtering (#940)
* Filter search by collectionId
* Improve spec, remove recursive import
* Add userId filter for documents.search
* 💚
* Search filter UI
* WIP UI
* Date filtering
Prevent dupe menu
* Refactor
* button
* Added year option, improved hover states
* Add new indexes
* Remove manual string interpolation in SQL construction
* Move dateFilter validation to controller
* Fixes: Double query when changing filter
Fixes: Visual jump between filters in dropdown
* Add option to clear filters
* More clearly define dropdowns in dark mode
* Checkbox -> Checkmark
This commit is contained in:
13
server/migrations/20190423051708-add-search-indexes.js
Normal file
13
server/migrations/20190423051708-add-search-indexes.js
Normal file
@@ -0,0 +1,13 @@
|
||||
module.exports = {
|
||||
up: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.addIndex('documents', ['updatedAt']);
|
||||
await queryInterface.addIndex('documents', ['archivedAt']);
|
||||
await queryInterface.addIndex('documents', ['collaboratorIds']);
|
||||
},
|
||||
|
||||
down: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.removeIndex('documents', ['updatedAt']);
|
||||
await queryInterface.removeIndex('documents', ['archivedAt']);
|
||||
await queryInterface.removeIndex('documents', ['collaboratorIds']);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user