1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-30 10:42:41 +01:00
phorge-phorge/webroot/rsrc/css/aphront
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-bars.css Standard colors for progress bars 2013-09-13 08:29:16 -07:00
dark-console.css Move #888 and #999 to $lightgreytext 2013-09-02 08:12:18 -07:00
dialog-view.css Tweak dialog header, mask color 2015-05-02 15:26:58 -07:00
lightbox-attachment.css Various linter fixes. 2014-02-26 12:44:58 -08:00
list-filter-view.css AphrontFilterView should have 8px spacing on tablet 2015-04-08 10:44:11 -07:00
multi-column.css Collapse Dashboards to single column when durable present and narrow 2015-03-14 09:14:50 -07:00
notification.css Add "High Security" mode to support multi-factor auth 2014-04-27 17:31:11 -07:00
pager-view.css Pager buttons 2013-11-28 07:33:27 -08:00
panel-view.css Remove AphrontPanelView 2015-03-06 16:44:18 -08:00
phabricator-nav-view.css Minor fixes for CSS linter issues 2014-12-30 02:48:26 -08:00
table-view.css Convert Owners paths to application transactions 2015-05-27 10:30:26 -07:00
tokenizer.css Tweak colors of new magic tokens 2015-04-19 09:08:19 -07:00
tooltip.css Add some spacing around jx-tooltips 2015-03-27 10:38:28 -07:00
two-column.css Phriction Redesign 2013-04-11 15:05:50 -07:00
typeahead-browse.css Tweak browse-more CSS 2015-04-20 10:19:39 -07:00
typeahead.css Minor indentation fixes 2014-12-30 02:50:01 -08:00