Page MenuHomePhabricator

Diffusion + Herald - warn users if importing repository
ClosedPublic

Authored by btrahan on Apr 29 2014, 9:12 PM.
Tags
None
Referenced Files
F18816286: D8903.diff
Tue, Oct 21, 5:48 AM
F18812579: D8903.id.diff
Mon, Oct 20, 10:31 AM
F18791648: D8903.id21135.diff
Thu, Oct 16, 4:29 PM
F18759944: D8903.diff
Mon, Oct 6, 6:59 AM
F18734784: D8903.id.diff
Tue, Sep 30, 11:02 PM
F18631005: D8903.diff
Sep 16 2025, 1:54 PM
F18629737: D8903.id.diff
Sep 16 2025, 9:45 AM
F18621329: D8903.diff
Sep 15 2025, 7:48 AM
Subscribers

Details

Summary

'cuz things fail a bunch until importing is done. Fixes T4094.

Test Plan

set isImporting to return true. Browsed Diffusion and saw helpful warnings everywhere. Browse Herald transcript and saw a helpful warning

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

btrahan retitled this revision from to Diffusion + Herald - warn users if importing repository.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
epriestley edited edge metadata.
epriestley added inline comments.
src/applications/diffusion/controller/DiffusionController.php
48–57

Maybe throw (or at least phlog()) if we fail to insert? I don't see a cleaner way to do this right now, but it would be nice to get told if this breaks.

(Maybe we eventually separate $crumbs out so that we can just prepend the message.)

This revision is now accepted and ready to land.Apr 29 2014, 9:17 PM
src/applications/diffusion/controller/DiffusionController.php
48–57

I was trying to be fairly clever here as not all pages will have crumbs, and the ones that don't tend not to need such a message. An example is the commit edit controller.

I think maybe the best way is to explicitly build this warning on a per controller basis rather than automagically do it and show iff there is some crumbs UI. That said, I was torn on which would be easiest for the next developer, and the explicitly build version sounds like a pain.

Ah, that makes sense. Yeah, I don't see a clean way to do this right now and it doesn't seem important enough to go on a rampage restructuring everything.

btrahan updated this revision to Diff 21135.

Closed by commit rP7ed28dacb585 (authored by @btrahan).