Page MenuHomePhabricator
Feed Advanced Search

Nov 15 2015

joshuaspence created T9789: Make it easier to write custom transaction types.
Nov 15 2015, 12:05 AM · Modernization, Transactions

Nov 14 2015

epriestley added a comment to T9787: Raw files in Paste no longer attach to Pastes properly after ApplicationEditor.

I'm partly just guessing here but I think It's almost certainly my fault.

Nov 14 2015, 11:46 PM · ApplicationEditor, Paste
joshuaspence added a comment to T9787: Raw files in Paste no longer attach to Pastes properly after ApplicationEditor.

Thanks, I spent ~10 minutes on it but couldn't figure it out.

Nov 14 2015, 11:45 PM · ApplicationEditor, Paste
epriestley added a comment to T9787: Raw files in Paste no longer attach to Pastes properly after ApplicationEditor.

File should be getting attached to the paste, but isn't. I think I accidentally caused a side effect here when changing how the transaction works.

Nov 14 2015, 11:44 PM · ApplicationEditor, Paste
epriestley claimed T9787: Raw files in Paste no longer attach to Pastes properly after ApplicationEditor.
Nov 14 2015, 11:44 PM · ApplicationEditor, Paste
joshuaspence added a comment to T9787: Raw files in Paste no longer attach to Pastes properly after ApplicationEditor.

Actually something weird is going on... I can't edit pastes either, even if the Edit Policy is set to "All Users".

Nov 14 2015, 11:35 PM · ApplicationEditor, Paste
joshuaspence added a comment to T9787: Raw files in Paste no longer attach to Pastes properly after ApplicationEditor.

I'm not sure how to fix this without adding pastePHID to PhabricatorFile, which doesn't feel like the best approach.

Nov 14 2015, 11:33 PM · ApplicationEditor, Paste
joshuaspence added a comment to T9787: Raw files in Paste no longer attach to Pastes properly after ApplicationEditor.

I started looking at this. It seems like the file attached to the Paste has a view policy of no-one, whereas it should probably inherit the view policy of the parent Paste.

Nov 14 2015, 11:28 PM · ApplicationEditor, Paste
joshuaspence created T9787: Raw files in Paste no longer attach to Pastes properly after ApplicationEditor.
Nov 14 2015, 11:26 PM · ApplicationEditor, Paste
epriestley closed T9786: Creating Hosted Repo leads to Almanac Exception as Invalid.

User Guide: Prototype Applications

Nov 14 2015, 10:53 PM
joshuaspence updated the task description for T4245: Make repository URIs slightly prettier.
Nov 14 2015, 9:44 PM · Prioritized, Diffusion (v3), KDE, Restricted Project
stevenjt awarded T5474: Support workboard column triggers which activate when a task is dropped into a column a Like token.
Nov 14 2015, 5:41 PM · Workboards (v3), Restricted Project
joshuaspence added a revision to T9762: Removing devices from Almanac services: Unknown Object (Differential Revision).
Nov 14 2015, 10:46 AM · Almanac (v2)
joshuaspence added a revision to T4245: Make repository URIs slightly prettier: Unknown Object (Differential Revision).
Nov 14 2015, 10:38 AM · Prioritized, Diffusion (v3), KDE, Restricted Project
epriestley updated subscribers of T8971: Auto-fix patch is wrong when multiple issue affect the same line.
Nov 14 2015, 12:56 AM · Restricted Project, Arcanist
epriestley merged task T9783: Multiple linters affecting same line, one of which applying autocorrect into T8971: Auto-fix patch is wrong when multiple issue affect the same line.
Nov 14 2015, 12:56 AM · Restricted Project, Lint

Nov 13 2015

joshuaspence added a comment to T9783: Multiple linters affecting same line, one of which applying autocorrect.

In the general case, this is impossible to resolve. Suppose that you had conflicting linter rules, such as one whiche enforced that files end with a newline character and another which enforces that files do not end with a newline character.

Nov 13 2015, 11:36 PM · Restricted Project, Lint
joshuaspence added a comment to T9773: Unit tests are slow.

MySQL version is 5.6.27-0ubuntu1.

Nov 13 2015, 10:54 PM · Infrastructure
joshuaspence added a comment to T9773: Unit tests are slow.
> time ./bin/storage upgrade --namespace testT9773 --force --no-adjust
Loading quickstart template...
Applying patch 'phabricator:db.xhpast'...
Applying patch 'phabricator:20150906.mailinglist.sql'...
Applying patch 'phabricator:20150930.drydock.log.1.sql'...
Applying patch 'phabricator:20151001.drydock.rname.1.sql'...
Applying patch 'phabricator:20151002.dashboard.status.1.sql'...
Applying patch 'phabricator:20151002.harbormaster.bparam.1.sql'...
Applying patch 'phabricator:20151009.drydock.auth.1.sql'...
Applying patch 'phabricator:20151010.drydock.auth.2.sql'...
Applying patch 'phabricator:20151013.drydock.op.1.sql'...
Applying patch 'phabricator:20151023.harborpolicy.1.sql'...
Applying patch 'phabricator:20151023.harborpolicy.2.php'...
Applying patch 'phabricator:20151023.patchduration.sql'...
Applying patch 'phabricator:20151030.harbormaster.initiator.sql'...
Applying patch 'phabricator:20151106.editengine.1.table.sql'...
Applying patch 'phabricator:20151106.editengine.2.xactions.sql'...
Applying patch 'phabricator:20151106.phame.post.mailkey.1.sql'...
Applying patch 'phabricator:20151106.phame.post.mailkey.2.php'...
Applying patch 'phabricator:20151107.phame.blog.mailkey.1.sql'...
Applying patch 'phabricator:20151107.phame.blog.mailkey.2.php'...
Applying patch 'phabricator:20151108.phame.blog.joinpolicy.sql'...
Applying patch 'phabricator:20151108.xhpast.stderr.sql'...
Applying patch 'phabricator:20151109.phame.post.comments.1.sql'...
Applying patch 'phabricator:20151109.repository.coverage.1.sql'...
Applying patch 'phabricator:20151109.xhpast.db.1.sql'...
Applying patch 'phabricator:20151109.xhpast.db.2.sql'...
Applying patch 'phabricator:20151110.daemonenvhash.sql'...
Storage is up to date. Use 'storage status' for details.
Declining to apply storage adjustments.
Nov 13 2015, 10:52 PM · Infrastructure
joshuaspence added a comment to T4245: Make repository URIs slightly prettier.

This is the only thing that is blocking me from migrating all of our repositories from Gitlab to Phabricator. Is there a clear path forward here? If so, I could potentially work on this.

Nov 13 2015, 10:35 PM · Prioritized, Diffusion (v3), KDE, Restricted Project
epriestley updated subscribers of T4863: Allow Workboard Cards to be customized for display.
Nov 13 2015, 7:58 PM · Projects, Workboards, Wikimedia
epriestley merged task T9782: On a dashboard, the Differential panel should show the repository. into T4863: Allow Workboard Cards to be customized for display.
Nov 13 2015, 7:58 PM · Dashboards, Differential
epriestley added a comment to T9770: It is possible to use the same 2FA token more than once.

(HTTP over public wireless has those properties, but using MFA and not using HTTPS is silly and the lack of HTTPS is a far greater problem than the larger MFA vulnerability window.)

Nov 13 2015, 7:56 PM · Security, Auth
epriestley added a comment to T9770: It is possible to use the same 2FA token more than once.

could MITM the connection between the verifier and prover

Nov 13 2015, 7:53 PM · Security, Auth
epriestley added a comment to T9770: It is possible to use the same 2FA token more than once.

There are some attacks that could be performed on such MFA schemes but that are not applicable in phabricator's security model.

Nov 13 2015, 7:40 PM · Security, Auth
epriestley added a comment to T9770: It is possible to use the same 2FA token more than once.

I think the RFC should be followed.

Nov 13 2015, 7:33 PM · Security, Auth
epriestley added a comment to T9773: Unit tests are slow.

I can't reproduce this either, nor does it reproduce on this install.

Nov 13 2015, 7:26 PM · Infrastructure
epriestley added a comment to T9770: It is possible to use the same 2FA token more than once.

I'd like to understand the reason behind this before moving forward.

Nov 13 2015, 7:17 PM · Security, Auth
epriestley closed T9776: Process Herald rules recursively as Wontfix.

I don't want to introduce this level of complexity into Herald.

Nov 13 2015, 6:57 PM · Herald
epriestley added Q219: What is the difference between the individual and corporate CLA? (Answer 252).
Nov 13 2015, 6:50 PM
joshuaspence added a comment to T9773: Unit tests are slow.

One thing I noticed is that I have a large number of test databases locally.

Nov 13 2015, 11:26 AM · Infrastructure
joshuaspence added a comment to T9773: Unit tests are slow.

Here is a profile from running ManiphestTaskTestCase only (and without coverage): https://secure.phabricator.com/xhprof/profile/PHID-FILE-fkx2c4q3wtfn6cetww6s/

Nov 13 2015, 11:21 AM · Infrastructure
joshuaspence added a comment to T9773: Unit tests are slow.

See https://secure.phabricator.com/xhprof/profile/PHID-FILE-jfpnkcj4lvtjwojxmttl/, which shows the profile from running arc unit --everything.

Nov 13 2015, 11:14 AM · Infrastructure
joshuaspence closed T9778: Allow DarkConsole to be enabled based on policies as Wontfix.

Right, I see. I had darkconsole.always-on enabled.

Nov 13 2015, 11:10 AM · Infrastructure
joshuaspence added a comment to T9778: Allow DarkConsole to be enabled based on policies.

I'm not concern ed from a security point of view... I'd just rather not give people functionality that they don't need. Specifically, I'm sure someone will open DarkConsole by mistake and not know how to close it.

Nov 13 2015, 6:06 AM · Infrastructure
joshuaspence created T9778: Allow DarkConsole to be enabled based on policies.
Nov 13 2015, 4:55 AM · Infrastructure
joshuaspence added a comment to T7053: Restart daemons automagically.

This also seems to work properly on this host, although I hit the "daemons are not running" setup warning once, presumably by racing their restart. If this is an issue we can tweak how that warning works, I think.

Nov 13 2015, 3:43 AM · Daemons
joshuaspence created T9776: Process Herald rules recursively.
Nov 13 2015, 1:21 AM · Herald

Nov 12 2015

joshuaspence added a comment to T9773: Unit tests are slow.

Running on a local MySQL server... I'll try to profile the tests later.

Nov 12 2015, 11:26 PM · Infrastructure
joshuaspence updated Q219: What is the difference between the individual and corporate CLA? from to What is the difference between the individual and corporate CLA?.
Nov 12 2015, 9:22 PM · Phacility
joshuaspence created T9773: Unit tests are slow.
Nov 12 2015, 8:33 PM · Infrastructure
joshuaspence closed T9763: "Merged to" does not handle plural correctly as Resolved by committing Restricted Diffusion Commit.
Nov 12 2015, 8:04 PM · Maniphest, Localization
Feed Story Failed to Render (PhabricatorApplicationTransactionFeedStory)
Exception: Unknown edge constant "59"!
Nov 12 2015, 7:44 PM
epriestley added a member for Blessed Committers: turadg.
Nov 12 2015, 7:23 PM
epriestley closed T9772: Fatal error when running conduit.query as Resolved by committing Restricted Diffusion Commit.
Nov 12 2015, 7:22 PM · ApplicationEditor, Conduit
epriestley added a revision to T9772: Fatal error when running conduit.query: Unknown Object (Differential Revision).
Nov 12 2015, 7:15 PM · ApplicationEditor, Conduit
epriestley claimed T9772: Fatal error when running conduit.query.
Nov 12 2015, 6:47 PM · ApplicationEditor, Conduit
joshuaspence renamed T9643: XHPast Parse error when extracting i18n from XHPast Parse error when etracting i18n to XHPast Parse error when extracting i18n.
Nov 12 2015, 10:20 AM · XHPAST
joshuaspence added a revision to T9763: "Merged to" does not handle plural correctly: Unknown Object (Differential Revision).
Nov 12 2015, 9:51 AM · Maniphest, Localization
joshuaspence created T9771: Objects which are restricted because of Spaces render as "Unknown" instead of "Restricted".
Nov 12 2015, 9:30 AM · Policy, Spaces
joshuaspence added a revision to T9757: Add subscribers to Herald: Unknown Object (Differential Revision).
Nov 12 2015, 8:59 AM · Herald
joshuaspence deleted ☃.
Nov 12 2015, 8:12 AM
joshuaspence added a revision to T9019: Create a "Project Members" object policy for Projects: Unknown Object (Differential Revision).
Nov 12 2015, 8:06 AM · Projects, Policy
joshuaspence created Phlux.
Nov 12 2015, 7:42 AM
joshuaspence added a comment to T9766: Expose conduit API to activate/disable Herald rules.

A somewhat generic way to do this is to create the notion of a variable such as is_in_deployment and allow Herald rules to check to see if this is set/true/a specific value. If the API to expose the variable is exposed to conduit then also allows for far more interesting workflows (especially when combined with relying on other Herald rules).

Nov 12 2015, 7:41 AM · Restricted Project, Restricted Project, Conduit, Herald
joshuaspence renamed T9766: Expose conduit API to activate/disable Herald rules from Expose conduit API to activate/disable herald rules? to Expose conduit API to activate/disable Herald rules.
Nov 12 2015, 7:40 AM · Restricted Project, Restricted Project, Conduit, Herald
joshuaspence renamed T9768: `arc diff` blows up if providing bad JIRA ticket name from arc diffs blows up if providing bad JIRA ticket name to `arc diff` blows up if providing bad JIRA ticket name .
Nov 12 2015, 7:38 AM · Restricted Project, Arcanist
epriestley added a comment to T9770: It is possible to use the same 2FA token more than once.

Is there a specific security purpose behind this? That is, what attack is this measure aimed at defusing?

Nov 12 2015, 7:05 AM · Security, Auth
joshuaspence closed T9769: Test as Spite.
Nov 12 2015, 1:15 AM · Search
joshuaspence created T9769: Test.
Nov 12 2015, 12:57 AM · Search

Nov 11 2015

joshuaspence added a comment to T9767: Add View Options to Diffusion File Viewer.
In T9767#144214, @chad wrote:

Maybe add a "View Options" button to "File Contents" in Diffusion? That seems most consistent.

Nov 11 2015, 8:10 PM · Diffusion
joshuaspence added a comment to T9767: Add View Options to Diffusion File Viewer.

Oh, right... it's not explicit in Differential. But rather when the file is too large for syntax highlighting.

Nov 11 2015, 8:08 PM · Diffusion
joshuaspence added a comment to T9767: Add View Options to Diffusion File Viewer.

Hmm, why not? I'd prefer it (and it would be more consistent) if it wasn't editable, as in Differential.

Nov 11 2015, 7:39 PM · Diffusion
joshuaspence created T9767: Add View Options to Diffusion File Viewer.
Nov 11 2015, 7:13 PM · Diffusion
epriestley added a comment to T9766: Expose conduit API to activate/disable Herald rules.

Just to clarify, you would rather rely on an external script to activate and deactivate this rule every day instead of having a Herald condition like "Current time is between 5PM and 9AM"?

Nov 11 2015, 6:57 PM · Restricted Project, Restricted Project, Conduit, Herald
r0bbie awarded T5474: Support workboard column triggers which activate when a task is dropped into a column a Like token.
Nov 11 2015, 4:40 PM · Workboards (v3), Restricted Project
epriestley closed T9765: Add support to Remarkup for "custom local links" eg. within same domain but not handled by phabricator as Wontfix.

I don't plan to support this in the upstream. This configuration is inherently dangerous because the custom application has access to Phabricator's cookies, and not one we recommend.

Nov 11 2015, 4:09 PM · Remarkup
joshuaspence added a revision to T9715: Prevent upgrade scripts from being run multiple times simultaneously: Unknown Object (Differential Revision).
Nov 11 2015, 12:17 PM · Database
joshuaspence added a comment to T3670: Add subprojects.

Ah OK, good to know.

Nov 11 2015, 11:18 AM · KDE, Projects (v3), Restricted Project, FreeBSD, Wikimedia
epriestley added a comment to T3670: Add subprojects.

You should be able to batch edit infinite tasks.

Nov 11 2015, 11:16 AM · KDE, Projects (v3), Restricted Project, FreeBSD, Wikimedia
joshuaspence added a comment to Q203: How do I embed YouTube videos?.

How exactly are you embedding it?

Nov 11 2015, 10:12 AM · Remarkup
joshuaspence added a comment to T7053: Restart daemons automagically.
  • When editing the small amount of config which can't auto-restart (phd.user, phd.start-taskmasters). I think phd.user already has an existing warning anyway.

Yeah, I would like to handle this properly but I'm not sure if it is worthwhile doing so?

Nov 11 2015, 8:21 AM · Daemons
joshuaspence added a comment to T3670: Add subprojects.

This is currently difficult to do because it involves bulk editing our entire workboard

What's difficult about this? Can't you just use the bulk editor to "Remove project X" and "Add project Y"?

Nov 11 2015, 8:14 AM · KDE, Projects (v3), Restricted Project, FreeBSD, Wikimedia
joshuaspence added a comment to T9759: Show more history.

We don't show a specific amount of history: we show all activity since your last activity.

Nov 11 2015, 1:34 AM · Transactions
joshuaspence renamed T9760: Autoscaling for Almanac devices from Easier creation of Almanac devices to Autoscaling for Almanac devices.
Nov 11 2015, 1:33 AM · Drydock, Almanac
joshuaspence created T9762: Removing devices from Almanac services.
Nov 11 2015, 1:31 AM · Almanac (v2)
joshuaspence updated Q175: Should I Reuse Device Keys? from Should I Reuse Device Keys to Should I Reuse Device Keys?.
Nov 11 2015, 12:04 AM · Drydock, Almanac
joshuaspence updated Q179: How do you configure an Almanac based Drydock resource from How do you configure an Almanac based Drydock ressource to How do you configure an Almanac based Drydock resource.
Nov 11 2015, 12:04 AM · Drydock

Nov 10 2015

joshuaspence added a comment to T9760: Autoscaling for Almanac devices.

Right, Almanac does not support autoscaling.

Nov 10 2015, 11:59 PM · Drydock, Almanac
epriestley added a comment to T9760: Autoscaling for Almanac devices.

Right, Almanac does not support autoscaling. We'll have an EC2 blueprint (and similar) in the future which can manage autoscaling more simply. Almanac is the ground level "I have a list of IPs" version of things.

Nov 10 2015, 11:58 PM · Drydock, Almanac
epriestley added a comment to T9760: Autoscaling for Almanac devices.

bin/almanac register is just a shortcut for "put the private half of a key in the right place on disk, and the public half on the specified Almanac device". Maybe a clearer name would be bin/almanac install-keys.

Nov 10 2015, 11:57 PM · Drydock, Almanac
joshuaspence added a comment to T9760: Autoscaling for Almanac devices.

Right okay, but I can't autoscale the Drydock Pool right? Because I need to manually create new devices through the UI.

Nov 10 2015, 11:57 PM · Drydock, Almanac
epriestley added a comment to T9760: Autoscaling for Almanac devices.

This just means adding a device interface?

Nov 10 2015, 11:54 PM · Drydock, Almanac
joshuaspence added a comment to T9760: Autoscaling for Almanac devices.
  • Bind it to your pool to actually put it in service.
Nov 10 2015, 11:52 PM · Drydock, Almanac
joshuaspence added a comment to T9760: Autoscaling for Almanac devices.

So what does ./bin/almanac register actually do?

Nov 10 2015, 11:51 PM · Drydock, Almanac
epriestley added a comment to T9760: Autoscaling for Almanac devices.

Right. You just need to:

Nov 10 2015, 11:49 PM · Drydock, Almanac
joshuaspence added a comment to T9760: Autoscaling for Almanac devices.

Ok thanks. So I don't need to register my build agent with ./bin/almanac register?

Nov 10 2015, 11:49 PM · Drydock, Almanac
epriestley added a comment to T9760: Autoscaling for Almanac devices.

Don't do steps (3) or (4)! Those are useless at best, and dangerous at worst.

Nov 10 2015, 11:43 PM · Drydock, Almanac
joshuaspence created T9760: Autoscaling for Almanac devices.
Nov 10 2015, 11:39 PM · Drydock, Almanac
epriestley added a comment to T6049: Implement Phurl, a URL shortener/bookmarking application.
  • The view page doesn't actually show the short URL anywhere. You can copy it from "View URL", but I think this isn't totally obvious, and we probably have enough room to reasonably add it (e.g., "Short URL: ..." under "Original URL: ...").
  • If a link has an alias, "View URL" still links to the non-alias version (e.g. U6 links to /u/6, but a more-preferred link would be /u/bug).
  • The "Remarkup Reference" document (https://secure.phabricator.com/book/phabricator/article/remarkup/) should explain how to use ((6)) and ((bug)). It might be worthwhile to hint these on the U6 page itself, e.g. In Remarkup: ((bug)) in the properties? Not sure how useful/cluttered that would look.
  • Maybe show aliases on the list at /phurl/?
  • Maybe let users search for the link with a particular alias? If I know ((bug)), there's no way for me to actually find the URL object right now. Hovercards would be one fix but just going to Phurl and being able to search for "Alias: bug" is probably good too.
Nov 10 2015, 10:37 PM · Phurl
epriestley added a comment to T7053: Restart daemons automagically.

This also seems to work properly on this host, although I hit the "daemons are not running" setup warning once, presumably by racing their restart. If this is an issue we can tweak how that warning works, I think.

Nov 10 2015, 10:30 PM · Daemons
epriestley added a comment to T6049: Implement Phurl, a URL shortener/bookmarking application.

Oh, transaction publishing from Phurl also currently fails in the daemons:

Nov 10 2015, 10:25 PM · Phurl
epriestley added a comment to T7053: Restart daemons automagically.

One possible minor followup to maybe keep on the radar is showing some extra warnings in a few cases:

Nov 10 2015, 10:20 PM · Daemons
epriestley added a comment to T6049: Implement Phurl, a URL shortener/bookmarking application.

A couple of notes so far, after poking at this:

Nov 10 2015, 10:19 PM · Phurl
epriestley closed T9322: Avoid spawning setup errors when changing parameters in application "Config" as Resolved.
Nov 10 2015, 10:15 PM · Phacility Support, Phacility
epriestley added a comment to T9322: Avoid spawning setup errors when changing parameters in application "Config".

The resolution of T7053 should indirectly resolve this.

Nov 10 2015, 10:15 PM · Phacility Support, Phacility
epriestley awarded T7053: Restart daemons automagically a Mountain of Wealth token.
Nov 10 2015, 10:14 PM · Daemons
epriestley added a comment to T3670: Add subprojects.

This is currently difficult to do because it involves bulk editing our entire workboard

Nov 10 2015, 10:13 PM · KDE, Projects (v3), Restricted Project, FreeBSD, Wikimedia
joshuaspence added a comment to T3670: Add subprojects.

I have a use case which is maybe suited for subprojects, but I don't exactly know how you are planning on implementing this...

Nov 10 2015, 9:59 PM · KDE, Projects (v3), Restricted Project, FreeBSD, Wikimedia
epriestley added a comment to T9758: Diff context for Objective-C doesn't show method name if open brace is on newline.

We run this entire algorithm ourselves and it's pretty simple (basically just looks at indent levels, no language awareness). Should be pretty easy to have it peek at the previous line if it initially finds a line containing only "{" and see if that line is at the same indent level and otherwise suitable.

Nov 10 2015, 9:55 PM · Differential