Commit Graph

800 Commits

Author SHA1 Message Date
James Brooks 6803f8e4a8 Improve handling of BasicAuth errors. 2015-05-22 18:29:09 +01:00
James Brooks e4ef64d014 Fix generation of metrics, no longer sub an extra hour in calculation 2015-05-22 15:32:55 +01:00
James Brooks d24e83e0ae Account for BasicAuth within ApiAuthenticate 2015-05-22 15:11:44 +01:00
James Brooks aeea02efa2 Fix conditional check for segment_write_key 2015-05-22 14:04:23 +01:00
James Brooks 8e2ab97dfa Fix fetching settings from env never falling to default 2015-05-22 07:34:17 +01:00
James Brooks 0be55c75c0 Merge pull request #654 from cachethq/api-auth
Authenticate api requests
2015-05-20 23:07:01 +01:00
Joseph Cohen 78b7dc92d6 Authenticate api requests 2015-05-20 17:05:37 -05:00
James Brooks d70ca8d4e5 Fixes #653 2015-05-20 22:38:09 +01:00
James Brooks af69c99896 Alias the Setting model 2015-05-20 20:24:54 +01:00
Joseph Cohen 088b54a5ce Abstract presenter, timestampstrait, update api responses 2015-05-20 14:19:01 -05:00
Joseph Cohen 10bcbc6169 Get default value on config repository 2015-05-20 14:19:01 -05:00
Joseph Cohen 33f6bf167c Make presenters work with the api 2015-05-20 14:19:01 -05:00
James Brooks cc755f5184 Improve the username regex 2015-05-20 16:16:25 +01:00
James Brooks 8840bca990 Use the env function rather than getenv 2015-05-20 10:39:31 +01:00
James Brooks 79889edd29 Fix editing of incident.created_at under Postgres 2015-05-20 08:18:48 +01:00
James Brooks 053ed46b97 Fix docblock 2015-05-20 08:09:10 +01:00
James Brooks a1ab59a15a Remove old Cors middleware 2015-05-20 08:08:53 +01:00
James Brooks 9337c1a75b Allows ordering of component groups. Closes #573. 2015-05-19 22:54:28 +01:00
James Brooks bc376748c8 Fixes #628 - Handle Cors properly. 2015-05-19 20:54:23 +01:00
James Brooks 1aedce0219 Merge pull request #646 from cachethq/incident-format-presenter
Fixes #644 - Incident presenter respects the date format.
2015-05-19 20:17:41 +01:00
James Brooks d9b5c31a06 Merge pull request #647 from cachethq/change-incident-timestamps
Allow changing of incident dates. Closes #615
2015-05-19 20:17:24 +01:00
James Brooks f2e869f610 Fixes #644 - Incident presenter respects the date format. 2015-05-19 20:04:11 +01:00
James Brooks c04ac4a5e3 Fix RedirectIfAuthenticate middleware redirecting to wrong location 2015-05-19 19:30:16 +01:00
James Brooks 166e6f8d59 Fixes #648 2015-05-19 19:14:21 +01:00
James Brooks 77d0c20015 Allow changing of incident dates. Closes #615 2015-05-19 17:40:04 +01:00
James Brooks 4d28b28bdf Better handling of the custom theme settings. 2015-05-19 17:06:39 +01:00
James Brooks 0928251673 Add Joseph Cohem and Graham Campbell to the copyright headers. 2015-05-19 10:45:38 +01:00
James Brooks 05dfb3038b Reduce line lengths, format queries 2015-05-19 08:12:50 +01:00
James Brooks 9b4e626447 Shorten code 2015-05-13 08:08:45 +01:00
James Brooks 0569142f84 Update the Incident model attributes 2015-05-10 19:41:33 +01:00
James Brooks 43eaf2aa2d Add cookies warning to login. Closes #525. 2015-05-10 19:16:34 +01:00
James Brooks 06b9bc2757 Prevent bots from indexing date ranges with no incidents. Closes #624. 2015-05-08 11:06:02 +01:00
Joe Cohen 2c0e806ad6 Merge pull request #598 from experty/L5
Use APC cache for Docker and fix bug with changing component sort order
2015-05-07 10:44:21 -05:00
Joseph Cohen a5526c7ca7 Remove tz form formatted date helper 2015-05-07 10:37:32 -05:00
James Brooks 4eb1bee983 Merge pull request #627 from cachethq/fix-config-and-tests
Update loading config to fix failing builds
2015-05-07 16:28:06 +01:00
Joseph Cohen bb5fd311fe Update loading config to fix failing builds 2015-05-07 09:38:58 -05:00
Joseph Cohen 5280fc8df4 Fix incidents timezones and order 2015-05-07 09:15:00 -05:00
James Brooks 65debb5014 Fixes #621 - Use zero-prefixed day formatting. 2015-05-02 14:57:48 +01:00
James Brooks 8a9456ab42 Fixes #618 - Only fetch Segment key if we want to help usage stats. 2015-05-02 09:29:00 +01:00
James Brooks 444b236f9f Fixes #619 2015-05-02 09:19:01 +01:00
James Brooks 8f9d2614e9 Fix sorting of days 2015-05-02 09:09:02 +01:00
Vincent Klaiber b26bef7251 Fix typo in AbstractApiController 2015-04-28 18:22:23 +02:00
EdeMeijer c4c55a73cb Use APC cache for Docker and fix bug with changing component sort order
By default, the file cache is used, but this breaks the throttling detection when authenticating.
The APC cache is tagged and will allow you to log in again after installation.
---
When changing the sort order, a form with hidden inputs for every component was serialized. The hidden inputs
had names in the form of `component[id]`. When you removed components, there would be holes in this ID sequence,
yielding a serialized array with empty values (since JS arrays always have every index until the highest one, even
if you don't specify a value).

This is fixed by just passing an array of component IDs in the desired sort order to the API endpoint. The API
will then update the components based on the implicit given sort order. Much simpler.
2015-04-25 12:00:53 +02:00
James Brooks cbf59b9b78 Merge pull request #597 from Lavoaster/fix/homepage_excessive_queriesv2
Refactored the way incidents are pulled out of the database + Sort fix
2015-04-23 08:08:32 +01:00
naabster 968abd0dc0 controller class names made case sensitive for router 2015-04-22 23:24:37 +02:00
Adam Lavin 8b200ef35e Refactored the way incidents are pulled out of the database + Sort fix
Incidents are now pulled out via the database, grouped together via php, then missing days are added to the data.
2015-04-21 12:45:36 +01:00
James Brooks 1543643f4c Revert "Refactored the way incidents are pulled out of the database on the homepage" 2015-04-21 10:13:08 +01:00
Adam Lavin 04438e31ed CS Fixes 2015-04-20 23:44:29 +01:00
Adam Lavin 4c4a32da3d Refactored the way incidents are pulled out of the database
Incidents are now pulled out via the database, grouped together via php, then missing days are added to the data
2015-04-20 23:28:53 +01:00
James Brooks c3c62a6b4e Add TrustProxies to Http middleware 2015-04-19 09:04:50 +01:00