1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 15:22:41 +01:00
phorge-phorge/webroot/rsrc/css
epriestley ebb7ca8cbd Convert Owners paths to application transactions
Summary:
Ref T8320. Fixes T8317. Fixes T2831. Fixes T8073. Fixes T7127.

There was a bug with this line:

  for ($ii = 0; $ii < count($paths); $ii++) {

...because the array may be sparse if there have been deletes, so `count($paths)` might be 3, but the real keys could be `1`, `5` and `6`. I think this was the primary issue behind T7127.

The old Editor did a lot of work to try to validate paths. When a path failed to validate, it silently discarded it. This was silly and pointless: it's incredibly bad UX; and it's totally fine if users saves "invalid" paths. This was likely the cause of T8317, and probably the cause of T8073.

T2831 I'm less sure about, but I can't reproduce it and I rewrote all the logic so I suspect it's gone.

This also records and shows edits, so if stuff does keep happening it should be more clear what's going on.

I removed some adjacent stuff:

  - I removed the ability to delete packages. I'll add "disable" in a future diff, plus `bin/remove destroy`, like other objects. Getting rid of this now let me get rid of all the mail stuff.
  - I removed "path validation" where packages would try to automatically update in response to commits. This doesn't necessarily make sense in Git/Mercurial, is sketchy, could easily have been the source of T2831, and seems generally complicated and not very valuable. We could maybe restore it some day, but I'd like to get Owners stable before trying to do crazy stuff like that.

Test Plan: {F437687}

Reviewers: chad, btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T8317, T8073, T7127, T2831, T8320

Differential Revision: https://secure.phabricator.com/D13032
2015-05-27 10:30:26 -07:00
..
aphront Convert Owners paths to application transactions 2015-05-27 10:30:26 -07:00
application Allow inline comments to be individually hidden 2015-05-27 10:28:38 -07:00
core Rescheduling events by dragging them in day view 2015-05-23 19:47:23 -07:00
diviner Support WOFF files in Celerity and add Source Sans Pro 2014-03-06 11:28:24 -08:00
font Fix FontAwesome fonts in Firefox 2015-04-30 15:16:55 -07:00
layout Replace user "status" with "availability" 2015-05-14 11:15:04 -07:00
phui Decouple date and time input classes on AphrontFormDateControl's so that disabling time doesn't disable date. 2015-05-26 11:27:51 -07:00
sprite-gradient.css Move ActionHeaders to PHUI, add ObjectBox Support, new Colors 2014-06-24 09:39:32 -07:00
sprite-login.css Recompress login sprite 2015-05-07 10:49:54 -07:00
sprite-main-header.css Add "Blindigo" header color 2015-03-01 12:03:02 -08:00
sprite-menu.css Increase height of logo 2015-02-19 14:43:33 -08:00
sprite-projects.css Rename group to users in project icons 2015-01-14 10:49:36 -08:00
sprite-tokens.css Add Pebkac app icon, 2x Tokens 2013-11-04 11:50:19 -08:00