mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Summary: - Add a method `getSnapshotWindow` to `IInventory` and `DocSnapshotInventory`. It returns a `SnapshotWindow`, which represents a duration of time for which we keep backups for a particular document. - `DocSnapshotPruner` calls this method and passes the window to `shouldKeepSnapshots` to determine which document versions have fallen outside the window and should be pruned. - The implementation passed to `DocSnapshotInventory` uses a new method `getDocProduct` in `HomeDBManager` which directly returns the `Product` associated with a document, given only the document ID. Other methods in `HomeDBManager` require passing more information, especially about a user, but `DocSnapshotPruner` only knows about document IDs. Test Plan: Added a test for `getDocProduct` and a test for `DocSnapshotPruner` where `getSnapshotWindow` is specified. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3322 |
||
---|---|---|
.. | ||
ACLFormula.ts | ||
ActionHistory.ts | ||
ActionHistoryImpl.ts | ||
ActionSummary.ts | ||
ActiveDoc.ts | ||
ActiveDocImport.ts | ||
AppEndpoint.ts | ||
Authorizer.ts | ||
BrowserSession.ts | ||
checksumFile.ts | ||
Client.ts | ||
Comm.js | ||
dbUtils.ts | ||
DiscourseConnect.ts | ||
DocApi.ts | ||
DocClients.ts | ||
DocManager.ts | ||
DocPluginData.ts | ||
DocPluginManager.ts | ||
DocSession.ts | ||
DocSnapshots.ts | ||
DocStorage.ts | ||
DocStorageManager.ts | ||
docUtils.d.ts | ||
docUtils.js | ||
DocWorker.ts | ||
DocWorkerMap.ts | ||
ExcelFormatter.ts | ||
ExpandedQuery.ts | ||
Export.ts | ||
ExportCSV.ts | ||
ExportXLSX.ts | ||
expressWrap.ts | ||
ExternalStorage.ts | ||
extractOrg.ts | ||
FileParserElement.ts | ||
filterUtils.ts | ||
FlexServer.ts | ||
GoogleAuth.ts | ||
GoogleExport.ts | ||
GoogleImport.ts | ||
GranularAccess.ts | ||
GristServer.ts | ||
gristSessions.ts | ||
guessExt.ts | ||
HashUtil.ts | ||
HostedMetadataManager.ts | ||
HostedStorageManager.ts | ||
IBilling.ts | ||
IChecksumStore.ts | ||
ICreate.ts | ||
IDocStorageManager.ts | ||
idUtils.ts | ||
IElectionStore.ts | ||
initialDocSql.ts | ||
INotifier.ts | ||
ISandbox.ts | ||
IShell.ts | ||
ITestingHooks-ti.ts | ||
ITestingHooks.ts | ||
log.ts | ||
LogMethods.ts | ||
manifest.ts | ||
MinimalLogin.ts | ||
NSandbox.ts | ||
OnDemandActions.ts | ||
PermissionInfo.ts | ||
Permit.ts | ||
places.ts | ||
PluginEndpoint.ts | ||
PluginManager.ts | ||
reportTimeTaken.ts | ||
requestUtils.ts | ||
RowAccess.ts | ||
SafePythonComponent.ts | ||
SamlConfig.ts | ||
SandboxControl.ts | ||
sandboxUtil.js | ||
sendAppPage.ts | ||
ServerColumnGetters.ts | ||
ServerLocale.ts | ||
serverUtils.ts | ||
Sessions.ts | ||
Sharing.ts | ||
shortDesc.ts | ||
shutdown.js | ||
SQLiteDB.ts | ||
TableMetadataLoader.ts | ||
TagChecker.ts | ||
TestingHooks.ts | ||
TestLogin.ts | ||
Throttle.ts | ||
TimeQuery.ts | ||
Triggers.ts | ||
UnsafeNodeComponent.ts | ||
uploads.ts | ||
WidgetRepository.ts | ||
WorkCoordinator.ts |