feat: Allow sorting collections in sidebar (#1870)

closes #1759

Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
Saumya Pandey
2021-03-19 05:57:33 +05:30
committed by GitHub
parent b93002ad93
commit 46bcc2e2ae
21 changed files with 677 additions and 120 deletions

View File

@@ -21,6 +21,10 @@ const Collection = sequelize.define(
description: DataTypes.STRING,
icon: DataTypes.STRING,
color: DataTypes.STRING,
index: {
type: DataTypes.STRING,
defaultValue: null,
},
private: DataTypes.BOOLEAN,
maintainerApprovalRequired: DataTypes.BOOLEAN,
documentStructure: DataTypes.JSONB,

View File

@@ -57,6 +57,7 @@ Event.add = (event) => {
Event.ACTIVITY_EVENTS = [
"collections.create",
"collections.delete",
"collections.move",
"documents.publish",
"documents.archive",
"documents.unarchive",
@@ -73,6 +74,7 @@ Event.AUDIT_EVENTS = [
"api_keys.delete",
"collections.create",
"collections.update",
"collections.move",
"collections.add_user",
"collections.remove_user",
"collections.add_group",