-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Soft Delete with Recovery and Cleanup Logic for Collections (…
…#42) * feat: Add deletedAt column to Collection table for soft delete functionality (#41) * feat: add deletion logic to set the `deletedAt` timestamp to indicate collection is soft deleted (#45) * soft delection start, still wip * fix testing config * delete weird test * cleanup files using singleton * write tests for collection ownership verification utility * testing config -> TS * testing documented * tests fixed, using node instead of jsdom for now * document verifyCollectionOwnership utility * remove unnecessary ts path * feat: Add `recoverCollection` logic (#46) * organize tests * adds recover procedure * document procedure * fix linting issues * feat: Create a scheduled task to permanently delete records with deletedAt older than 30 days (#48) * schedules collections cleanup at 5am each day * document cleanup process * feat: Implement "Recently Deleted" Section with Recovery and Permanent Deletion Options (#49) * can delete & recover collections * can permanently delete collection * linting issues
- Loading branch information
1 parent
761c46a
commit 73557ba
Showing
20 changed files
with
1,339 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import type { Config } from 'jest' | ||
import nextJest from 'next/jest.js' | ||
|
||
const createJestConfig = nextJest({ | ||
dir: './', | ||
}) | ||
|
||
const config: Config = { | ||
coverageProvider: 'v8', | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
roots: ['<rootDir>'], | ||
moduleNameMapper: { | ||
"^singleton$": "<rootDir>/singleton.ts" | ||
}, | ||
setupFilesAfterEnv: ['<rootDir>/singleton.ts'], | ||
clearMocks: true, | ||
} | ||
|
||
export default createJestConfig(config) | ||
|
Oops, something went wrong.