Commit graph

9 commits

Author SHA1 Message Date
Stan Hu
f93b2e02a5 Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
Thong Kuah
d119d3d1b2 Align UrlValidator to validate_url gem implementation.
Renamed UrlValidator to AddressableUrlValidator to avoid 'url:' naming collision with ActiveModel::Validations::UrlValidator in 'validates' statement.
Make use of the options attribute of the parent class ActiveModel::EachValidator.
Add more options: allow_nil, allow_blank, message.
Renamed 'protocols' option to 'schemes' to match the option naming from UrlValidator.
2019-04-11 06:29:07 +00:00
Reuben Pereira
c558d72b5b Handle missing keys in sentry api response
- Do not raise error when there are missing non-essential keys in sentry
api response.
- Add specs for to check for missing keys behavior.
2019-03-29 14:53:40 +00:00
Nick Thomas
013f7cd24c
Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
Reuben Pereira
43e713eb41 Refactor model and spec
- Move some specs into contexts
- Let get_slugs method take a parameter and return a specific slug.
- Add rescues when using Addressable::URI.
2019-03-01 14:51:54 +00:00
Reuben Pereira
536463295c Catch exception in calculate reactive cache
Return the exception as an error.
2019-02-21 11:19:51 +00:00
Reuben Pereira
2079444091 DB and model changes for Sentry project selection dropdown 2019-02-04 12:12:24 +00:00
Reuben Pereira
d69074fc72 Service for calling Sentry issues api 2019-01-09 21:04:27 +00:00
Reuben Pereira
f40b5860d7 Add table and model for error tracking settings 2019-01-07 17:55:21 +00:00