1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 18:28:47 +02:00
phorge-phorge/src/applications/feed
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 Use ApplicationSearch in Feed 2013-08-05 14:10:41 -07:00
builder Add hovercard on/off option to PhabricatorFeedStory 2013-08-14 13:20:25 -07:00
conduit Refresh Feed Design 2013-04-13 09:09:42 -07:00
config Feed options. 2013-01-14 18:35:30 -08:00
constants Delete license headers from files 2012-11-05 11:16:51 -08:00
controller Remove dust from page construction 2013-08-19 18:09:35 -07:00
management Push feed publishing deeper into the task queue 2013-06-25 16:29:47 -07:00
query Allow construction of ApplicationSearch queries with GET 2013-08-29 11:52:29 -07:00
storage Apply lint rules to Phabricator 2013-02-19 13:33:10 -08:00
story Fix Phriction feed stories text rendering 2013-08-27 09:34:13 -07:00
worker Allow Feed HTTP hooks to be https:// 2013-07-08 09:26:21 -07:00
PhabricatorFeedStoryPublisher.php Push feed publishing deeper into the task queue 2013-06-25 16:29:47 -07:00