Commit e83a6e5270d6a3d732a01f48398eb94ddf194bea
Exists in
master
and in
1 other branch
Merge branch 'master' into mongoid-3
Showing
4 changed files
with
22 additions
and
2 deletions
Show diff stats
CHANGELOG.md
... | ... | @@ -12,17 +12,24 @@ |
12 | 12 | ### Improvements |
13 | 13 | |
14 | 14 | - [#552][] Limite size of asset on errbit ([@tscolari][]) |
15 | +- [#562][] See the version number of errbit on footer ([@nashby][]) | |
16 | +- [#555][] Avoid same group by same error if other line of backtrace | |
17 | + instead of first change ([@shingara][]) | |
15 | 18 | |
16 | 19 | ### Bug Fixes |
17 | 20 | |
18 | 21 | - [#558][] Avoid failure if you remote bitbucket_rest_api gem |
19 | 22 | ([@shingara][]) |
23 | +- [#559][] Fix some issue on the migration with old database | |
24 | + ([@shingara][]) | |
20 | 25 | |
26 | +[@nashby]: https://github.com/nashby | |
21 | 27 | [@shingara]: https://github.com/shingara |
22 | 28 | [@tscolari]: https://github.com/tscolari |
23 | 29 | |
24 | 30 | [#552]: https://github.com/errbit/errbit/issues/552 |
25 | 31 | [#558]: https://github.com/errbit/errbit/issues/558 |
32 | +[#562]: https://github.com/errbit/errbit/issues/562 | |
26 | 33 | |
27 | 34 | ## 0.2.0 - 2013-09-11 |
28 | 35 | ... | ... |
CONTRIBUTORS.md
... | ... | @@ -8,9 +8,13 @@ |
8 | 8 | |
9 | 9 | ## 0.2.1 - Not released yet |
10 | 10 | |
11 | +- [@anicet][] | |
12 | +- [@nashby][] | |
11 | 13 | - [@shingara][] |
12 | 14 | - [@tscolari][] |
13 | 15 | |
16 | +[@anicet]: https://github.com/anicet | |
17 | +[@nashby]: https://github.com/nashby | |
14 | 18 | [@shingara]: https://github.com/shingara |
15 | 19 | [@tscolari]: https://github.com/tscolari |
16 | 20 | ... | ... |
db/migrate/20110422152027_move_notices_to_separate_collection.rb
... | ... | @@ -21,6 +21,13 @@ class MoveNoticesToSeparateCollection < Mongoid::Migration |
21 | 21 | e.app.update_attribute(:notify_on_errs, old_notify) |
22 | 22 | errs_coll.find({ "_id" => err['_id']}).update({ "$unset" => { "notices" => 1}}) |
23 | 23 | end |
24 | + ( | |
25 | + Problem.where(:environment => '') | | |
26 | + Problem.where(:environment => nil) | | |
27 | + Problem.where(:environment => {}) | |
28 | + ).each {|pr| | |
29 | + pr.update_attributes(:environment => 'old') | |
30 | + } | |
24 | 31 | Rake::Task["errbit:db:update_notices_count"].invoke |
25 | 32 | Rake::Task["errbit:db:update_problem_attrs"].invoke |
26 | 33 | end | ... | ... |
db/migrate/20121005142110_regenerate_err_fingerprints.rb
... | ... | @@ -10,8 +10,10 @@ class RegenerateErrFingerprints < Mongoid::Migration |
10 | 10 | :environment => err.environment, |
11 | 11 | :api_key => err.app.api_key |
12 | 12 | } |
13 | - fingerprint = Digest::SHA1.hexdigest(fingerprint_source.to_s) | |
14 | - err.update_attribute(:fingerprint, fingerprint) | |
13 | + err.update_attribute( | |
14 | + :fingerprint, | |
15 | + Fingerprint.generate(err.notices.first, err.app.api_key) | |
16 | + ) | |
15 | 17 | end |
16 | 18 | end |
17 | 19 | end | ... | ... |