rt-validator(8)

πŸ“¦
version 4.4.7 Β· 5 versions
, in ubuntu noble

πŸ’– rt-validator β€” Request Tracker Reference πŸ’–

okay bestie, so like, this is rt-validator(8) from the Request Tracker manual, and it's literally the vibe-check bouncer for your RT database. let's get into it 🫢


✨ NAME ✨

rt-validator β€” check and correct validity of records in RT's database. no cap, that's the whole job description πŸ’…


🌸 SYNOPSIS 🌸

rt-validator --check
rt-validator --check --verbose
rt-validator --check --verbose --resolve
rt-validator --check --verbose --resolve --force

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, this script checks integrity of records in RT's DB. that's the whole main character moment.

and like, it's not just a read-only observer bestie β€” it may delete some invalid records or resurrect accidentally deleted ones. it's giving chaos gremlin with a clipboard. πŸ’€


πŸŽ€ OPTIONS πŸŽ€

  • check β€” mandatory. like, you literally cannot skip this one. it's equal to -c. periodt. πŸ‘‘
  • verbose β€” prints additional info to STDOUT. it's equal to -v. so if you're nosy (same, bestie πŸ“) this is your girl.
  • resolve β€” enable resolver that can delete or create some records. yes, it actually does stuff. yes, that's real. πŸ™ˆ
  • force β€” resolve without asking questions. no "are you sure?" moment, just straight to business. the way that it just goes. 😭
  • links-only β€” only run the Link validation routines, useful if you changed your Organization. like, if you switched things up, this is the move. ✨

🧚 check_integrity 🧚

okay so there's this one and it's lowkey the whole mechanic of the operation:

Takes two (table name, column(s)) pairs. First pair is reference we check and second is destination that must exist. Array reference can be used for multiple columns. 🌈

Returns 0 if a record is missing or 1 otherwise. simple as that, bestie. 0 = uh oh, 1 = we're chilling. πŸ’œ


⭐ reminder: check is mandatory, force skips the questions, and resolve is the one out here deleting and creating records. know what you're asking for before you ask, iykyk. 🫢

and that's the whole page, babes ✨ this one came from the perl v5.38.2 era, dated 2023-10-29, and it's filed under rt-validator(8) β€” Request Tracker Reference. obsessed with her, honestly. mwah, bye! πŸ’–πŸ’…πŸŽ€

πŸ“¦ where this page comes from