1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 02:02:41 +01:00
phorge-phorge/src/applications/files
epriestley f1c75a6382 Allow construction of ApplicationSearch queries with GET
Summary:
Ref T3775 (discussion here). Ref T2625.

T3775 presents two problems:

  # Existing tools which linked to `/differential/active/epriestley/` (that is, put a username in the URL) can't generate search links now.
  # Humans can't edit the URL anymore, either.

I think (1) is an actual issue, and this fixes it. I think (2) is pretty fluff, and this doesn't really try to fix it, although it probably improves it.

The fix for (1) is:

  - Provide a helper to read a parameter containing either a list of user PHIDs or a list of usernames, so `/?users[]=PHID-USER-xyz` (from a tokenizer) and `/?users=alincoln,htaft` (from an external program) are equivalent inputs.
  - Rename all the form parameters to be more digestable (`authorPHIDs` -> `authors`). Almost all of them were in this form already anyway. This just gives us `?users=alincoln` instead of `userPHIDs=alincoln`.
  - Inside ApplicationSearch, if a request has no query associated with it but does have query parameters, build a query from the request instead of issuing the user's default query. Basically, this means that `/differential/` runs the default query, while `/differential/?users=x` runs a custom query.

Test Plan: {F56612}

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2625, T3775

Differential Revision: https://secure.phabricator.com/D6840
2013-08-29 11:52:29 -07:00
..
application Simplify and generalize remarkup engine construction 2013-07-09 16:23:33 -07:00
conduit Uninstall Conduit calls when uninstalling applications 2013-03-13 07:09:05 -07:00
config Add some create mail handlers for paste and files 2013-07-30 13:26:55 -07:00
controller Update Form Layouts 2013-08-26 11:53:11 -07:00
engine Document where Arcanist configuration can be set 2013-04-20 11:44:29 -07:00
engineselector Delete license headers from files 2012-11-05 11:16:51 -08:00
exception Delete license headers from files 2012-11-05 11:16:51 -08:00
lipsum Made Changes to Mock and File generation after pushing some methods to superclass 2013-05-06 13:32:01 -07:00
mail Add some create mail handlers for paste and files 2013-07-30 13:26:55 -07:00
management Fix a small bug - %d => %s 2013-08-02 11:20:25 -07:00
phid Use Application PHIDs in Files 2013-07-22 12:17:39 -07:00
query Allow construction of ApplicationSearch queries with GET 2013-08-29 11:52:29 -07:00
remarkup Implement text mode for Phabricator Remarkup rules 2013-03-22 17:33:36 -07:00
storage Use Application PHIDs in Files 2013-07-22 12:17:39 -07:00
view Fix file upload redirect URI 2013-05-31 14:35:25 -07:00
PhabricatorImageTransformer.php Improve UI for selecting profile pictures 2013-07-09 16:23:54 -07:00