Merge pull request #32956 from overleaf/em-library-entry-list

Show library entry list on /library page

GitOrigin-RevId: 6c1c4e3ef66ea002525e5d5adb7943123f5d2587
This commit is contained in:
Eric Mc Sween
2026-04-23 11:35:42 -04:00
committed by Copybot
parent 54d953cfff
commit 2fdecb5d19
3 changed files with 28 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ export const db = {
grouppolicies: internalDb.collection('grouppolicies'),
groupAuditLogEntries: internalDb.collection('groupAuditLogEntries'),
institutions: internalDb.collection('institutions'),
libraryReferences: internalDb.collection('libraryReferences'),
messages: internalDb.collection('messages'),
migrations: internalDb.collection('migrations'),
notifications: internalDb.collection('notifications'),

View File

@@ -0,0 +1,26 @@
import Helpers from './lib/helpers.mjs'
const tags = ['saas']
const indexes = [
{
key: { userId: 1, updatedAt: 1 },
name: 'userId_1_updatedAt_1',
},
]
const migrate = async client => {
const { db } = client
await Helpers.addIndexesToCollection(db.libraryReferences, indexes)
}
const rollback = async client => {
const { db } = client
await Helpers.dropIndexesFromCollection(db.libraryReferences, indexes)
}
export default {
tags,
migrate,
rollback,
}

View File

@@ -29,6 +29,7 @@ export const db = {
grouppolicies: internalDb.collection('grouppolicies'),
groupAuditLogEntries: internalDb.collection('groupAuditLogEntries'),
institutions: internalDb.collection('institutions'),
libraryReferences: internalDb.collection('libraryReferences'),
messages: internalDb.collection('messages'),
migrations: internalDb.collection('migrations'),
notifications: internalDb.collection('notifications'),