Commit c3b0467
authored
Introducing audit logging table for playlist videos and its cleanup cronjob (elan-ev#1381)
* Add audit logging for playlist videos and cleanup cronjob
- Implemented PlaylistVideosAuditLog for tracking add, delete, and restore actions.
- Enhanced PlaylistVideos model to log actions during delete and store operations.
- Created a cronjob (OpencastPlaylistVideosAuditCleanup) to periodically clean up old audit log entries. (every 28 days)
- Added migration to create the oc_playlist_videos_audit_log table and schedule the cleanup task.
* make sure the deleton check is against all course playlist to avoid default playlist video re-adding
* changes according to discussion:
- reverting audit log mechanism
- taking addToCoursePlaylist out of OpencastVideoSync observer
- only call addToCoursePlaylist when the video is fresh, this should happen only when scheduling occurs!1 parent 0d16102 commit c3b0467
File tree
5 files changed
+14
-11
lines changed- cronjobs
- lib
- Models
- Routes/Playlist
5 files changed
+14
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
145 | 147 | | |
| 148 | + | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
| |||
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
163 | 171 | | |
164 | 172 | | |
165 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1190 | 1190 | | |
1191 | 1191 | | |
1192 | 1192 | | |
1193 | | - | |
| 1193 | + | |
1194 | 1194 | | |
1195 | 1195 | | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
| 1196 | + | |
| 1197 | + | |
1201 | 1198 | | |
1202 | 1199 | | |
1203 | 1200 | | |
1204 | | - | |
| 1201 | + | |
1205 | 1202 | | |
1206 | 1203 | | |
1207 | 1204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
0 commit comments