Comments (6)
I'm not clear on its behaviour when there's already something in the db for the file. From your description it sounds like it always just replaces the entry with a new not-notified entry? But then you'd get multiple emails about the same thing?
from hgi-vault.
Read and understand notification code, write it up
from hgi-vault.
On testing, 2 unexpected things happened:
- It sent an email about a file location that sandman wasn't just run on.
- The email contained the same fofn for all 3 warning time points.
from hgi-vault.
Corrections to the Above
- The status is not "one status per file", it can be "many statuses to one file". Each warnings status will have its own tminus time.
- This also means that a deletion status is added as another status to the file.
- Deletion statuses are deleted by the
schema.sql
script at the start of each sandman run (so, a file will be marked as deleted status in the DB, then that status will be cleared on the next run) - The warning statuses (and therefore the files) aren't deleted, though files for archival are
- It will send notification for all non-notified warning thresholds. Note: this will include even if the warning threshold configuration is actually changed during the warning period.
This means that the diagram should be:
W1 W1 W1
W1 W1 W1 W2 W2 W2 DEL DEL
V V V V V V V V
|__________________________|________________________|________________>
warning warning deletion
threshold threshold threshold
1 2
As described above, sandman sends all notifications in the DB marked unnotified, even if the sandman run doesn't run on a directory referred to by one of those notifications.
from hgi-vault.
don't move file to limbo if no warning sent - send warning instead
from hgi-vault.
As an admin, if sandman can't run on a given day, I don't want it to skip warnings, so that users don't get surprised by unwarned deletions
from hgi-vault.
Related Issues (20)
- Configuration parsing should be more strict HOT 1
- Only the file owner or root can set mtime HOT 1
- Soft-deletion was attempted despite being in dry-run mode
- File recovery UX enhancements HOT 1
- Notification e-mail text is not as clear as it could be HOT 4
- Critical failures should raise an e-mail notification, if possible HOT 2
- Improve the UX for the e-mail notification attachments HOT 3
- Vault key name can exceed NAME_MAX
- Files owned by root can't be found in LDAP and stop Sandman HOT 4
- symlink warnings
- Non-existent kept files cause view crashes HOT 1
- Judge file age using the greater of atime, mtime & ctime HOT 4
- Bug on 'Mine' View Context when source file has been deleted HOT 1
- Avoid namespace collision for installation HOT 1
- Sea Trial Postmortem HOT 1
- Scheduled downtime HOT 1
- Spontaneous file deletion HOT 2
- Standard base64 alphabet includes /
- Sandman should be extremely fussy about its arguments
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hgi-vault.