File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11GIT
22 remote: https://github.com/flyerhzm/bullet
3- revision: a769a0831f2819b501eba6b388bde88b469bd357
3+ revision: b34f34e10d8cdcb685b8ebc9a716afffaede1d15
44 branch: main
55 specs:
6- bullet (8.0.0 )
6+ bullet (8.0.1 )
77 activesupport (>= 3.0.0 )
88 uniform_notifier (~> 1.11 )
99
118118 base64 (0.2.0 )
119119 bcrypt (3.1.20 )
120120 benchmark (0.4.0 )
121- bigdecimal (3.1.8 )
121+ bigdecimal (3.1.9 )
122122 bootsnap (1.18.4 )
123123 msgpack (~> 1.2 )
124124 brakeman (6.2.2 )
146146 commento (0.2.0 )
147147 rainbow (>= 2.2.2 )
148148 terminal-table (>= 3.0 )
149- concurrent-ruby (1.3.4 )
150- connection_pool (2.4.1 )
149+ concurrent-ruby (1.3.5 )
150+ connection_pool (2.5.0 )
151151 crass (1.0.6 )
152152 cypress-on-rails (1.17.0 )
153153 rack
219219 foreman (0.88.1 )
220220 globalid (1.2.1 )
221221 activesupport (>= 6.1 )
222- i18n (1.14.6 )
222+ i18n (1.14.7 )
223223 concurrent-ruby (~> 1.0 )
224224 io-console (0.8.0 )
225225 irb (1.14.1 )
244244 childprocess (~> 5.0 )
245245 letter_opener (1.10.0 )
246246 launchy (>= 2.2 , < 4 )
247- logger (1.6.2 )
247+ logger (1.6.6 )
248248 loofah (2.23.1 )
249249 crass (~> 1.0.2 )
250250 nokogiri (>= 1.12.0 )
441441 rubocop-rspec (~> 3 , >= 3.0.1 )
442442 ruby-next-core (1.0.3 )
443443 ruby-progressbar (1.13.0 )
444- securerandom (0.3.2 )
444+ securerandom (0.4.1 )
445445 shoulda-matchers (6.4.0 )
446446 activesupport (>= 5.2.0 )
447447 simplecov (0.22.0 )
Original file line number Diff line number Diff line change 22
33module Frontend
44 class CompaniesController < Frontend ::BaseController
5- include Deps [ add_company : 'commands.add_company' ]
5+ include Deps [
6+ add_company : 'commands.add_company' ,
7+ monitoring : 'monitoring.client'
8+ ]
69
710 def create
811 # commento: companies.title, companies.user_id
@@ -22,13 +25,28 @@ def json_response(response, result)
2225 end
2326
2427 def user
28+ monitoring_company_creation
2529 return current_user if current_user . uuid == account_uuid || account_uuid . nil?
2630
2731 account = User . find_by! ( uuid : account_uuid )
2832 current_user . receive_invites . coowner . accepted . write . find_by! ( inviteable_id : account . id )
2933 account
3034 end
3135
36+ def monitoring_company_creation
37+ access_token = cookies [ :pullmetry_access_token ] . presence || params [ :pullmetry_access_token ]
38+ monitoring . notify (
39+ exception : 'Creating company' ,
40+ metadata : {
41+ access_token : access_token ,
42+ current_user : current_user . uuid ,
43+ account_uuid : account_uuid ,
44+ company_params : company_params
45+ } ,
46+ severity : :info
47+ )
48+ end
49+
3250 def account_uuid
3351 params [ :company ] [ :user_uuid ]
3452 end
You can’t perform that action at this time.
0 commit comments