Details
- Reviewers
amckinley - Maniphest Tasks
- T13197: 2018 Week 37 Bonus Content
- Commits
- rP09703938fb44: Migrate old commit saved queries to new audit status constants
Saved some queries on master with numeric constants, ran the migration, saw string constants in the database and equivalent behavior in the UI.
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
resources/sql/autopatches/20180910.audit.01.searches.php | ||
---|---|---|
7–14 | I sanity-checked this against the code and it's correct, but isn't there an easy way to pull this array out of PhabricatorAuditCommitStatusConstants? | |
29–32 | So "statuses": 1 as a constraint doesn't work? Or just malformed because diffusion.commit.search and audit.query are both expecting statuses to be list<string>, and this is just very defensive programming? |
resources/sql/autopatches/20180910.audit.01.searches.php | ||
---|---|---|
7–14 | I'm hard-coding the list in this migration (and two later migrations) so that I can remove the constants from PhabricatorAuditCommitStatusConstants without retaining any confusion/ambiguity going forward. | |
29–32 | Yeah, this is mostly just defensive -- "statuses": 1 should be impossible. It also probably doesn't work. |