marty 1.2.9 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +11 -9
- data/Gemfile.lock +93 -80
- data/app/components/marty/data_grid_view.rb +1 -1
- data/app/components/marty/main_auth_app.rb +1 -1
- data/app/components/marty/mcfly_grid_panel/client/dup_in_form.js +1 -1
- data/app/components/marty/posting_grid.rb +1 -1
- data/app/components/marty/promise_view.rb +1 -1
- data/app/components/marty/simple_app.rb +1 -1
- data/app/controllers/marty/application_controller.rb +2 -2
- data/app/controllers/marty/diagnostic/controller.rb +1 -5
- data/app/models/marty/api_auth.rb +6 -4
- data/app/models/marty/config.rb +1 -1
- data/app/models/marty/data_grid.rb +13 -13
- data/app/models/marty/delorean_rule.rb +2 -2
- data/app/models/marty/event.rb +1 -1
- data/app/models/marty/import_type.rb +2 -2
- data/app/models/marty/name_validator.rb +1 -1
- data/app/models/marty/posting.rb +0 -5
- data/app/models/marty/user.rb +1 -1
- data/app/views/marty/diagnostic/diag.html.erb +0 -2
- data/config/routes.rb +2 -2
- data/db/migrate/003_create_marty_users.rb +1 -1
- data/db/migrate/004_create_marty_roles.rb +1 -1
- data/db/migrate/005_create_marty_user_roles.rb +1 -1
- data/db/migrate/006_create_marty_tokens.rb +1 -1
- data/db/migrate/008_create_marty_posting_types.rb +1 -1
- data/db/migrate/068_create_marty_import_types.rb +1 -1
- data/db/migrate/069_create_marty_import_synonyms.rb +1 -1
- data/db/migrate/070_create_versions.rb +1 -1
- data/db/migrate/071_add_object_changes_column_to_versions.rb +1 -1
- data/db/migrate/072_add_validation_function_to_import_types.rb +1 -1
- data/db/migrate/073_add_preprocess_function_to_import_types.rb +1 -1
- data/db/migrate/090_create_delayed_jobs.rb +1 -1
- data/db/migrate/091_create_marty_promises.rb +1 -1
- data/db/migrate/096_add_user_roles_to_import_types.rb +1 -1
- data/db/migrate/097_drop_versions.rb +1 -1
- data/db/migrate/099_create_marty_configs.rb +1 -1
- data/db/migrate/101_create_marty_grid_index_numranges.rb +1 -1
- data/db/migrate/102_create_marty_grid_index_int4ranges.rb +1 -1
- data/db/migrate/103_create_marty_grid_index_integers.rb +1 -1
- data/db/migrate/104_create_marty_grid_index_strings.rb +1 -1
- data/db/migrate/105_create_marty_grid_index_booleans.rb +1 -1
- data/db/migrate/106_make_grid_indexes_nullable.rb +1 -1
- data/db/migrate/200_create_marty_event_operation_enum.rb +1 -1
- data/db/migrate/201_create_marty_events.rb +1 -1
- data/db/migrate/202_add_completion_status_to_event.rb +1 -1
- data/db/migrate/300_create_marty_api_configs.rb +1 -1
- data/db/migrate/301_create_marty_api_log.rb +1 -1
- data/db/migrate/302_add_api_configs_validate_result.rb +1 -1
- data/db/migrate/303_create_marty_logs.rb +1 -1
- data/db/migrate/304_drop_marty_api_logs.rb +1 -1
- data/db/migrate/400_create_dg_plv8_v1_fns.rb +1 -1
- data/lib/marty/migrations.rb +7 -8
- data/lib/marty/monkey.rb +2 -30
- data/lib/marty/version.rb +1 -1
- data/marty.gemspec +3 -4
- data/other/marty/diagnostic/aws/ec2_instance.rb +65 -25
- data/other/marty/diagnostic/base.rb +14 -5
- data/other/marty/diagnostic/collection.rb +1 -0
- data/other/marty/diagnostic/{delayed_job.rb → delayed_job_version.rb} +2 -8
- data/other/marty/diagnostic/delayed_job_workers.rb +11 -0
- data/other/marty/diagnostic/environment_variables.rb +4 -6
- data/other/marty/diagnostic/fatal.rb +0 -5
- data/other/marty/diagnostic/node.rb +4 -3
- data/other/marty/diagnostic/nodes.rb +46 -13
- data/other/marty/diagnostic/packer.rb +22 -25
- data/other/marty/diagnostic/version.rb +19 -21
- data/script_id, +0 -0
- data/spec/controllers/diagnostic/controller_spec.rb +8 -7
- data/spec/controllers/job_controller_spec.rb +5 -5
- data/spec/controllers/rpc_controller_spec.rb +52 -57
- data/spec/controllers/rpc_import_spec.rb +1 -1
- data/spec/dummy/config/environments/test.rb +4 -2
- data/spec/dummy/db/migrate/20140000000000_create_enums.rb +1 -1
- data/spec/dummy/db/migrate/20150406171536_create_categories.rb +2 -2
- data/spec/dummy/db/migrate/20150408200916_create_loan_programs.rb +1 -1
- data/spec/dummy/db/migrate/20150408201429_create_types.rb +1 -1
- data/spec/dummy/db/migrate/20151023000001_create_simple.rb +1 -1
- data/spec/dummy/db/migrate/20160100000038_create_gemini_states.rb +1 -1
- data/spec/dummy/db/migrate/20160923183516_add_bulk_pricing_event_ops.rb +1 -1
- data/spec/dummy/db/migrate/20170706081300_add_state_array_to_lp.rb +1 -1
- data/spec/dummy/db/migrate/20170725160000_add_misc_arrays_to_lp.rb +1 -1
- data/spec/dummy/db/migrate/20171220150101_add_rule_type_enums.rb +1 -1
- data/spec/dummy/db/migrate/20171222150100_add_rule_indices.rb +1 -1
- data/spec/features/auth_app_spec.rb +1 -0
- data/spec/features/data_import_spec.rb +2 -2
- data/spec/features/log_view_spec.rb +4 -4
- data/spec/features/reporting_spec.rb +16 -19
- data/spec/features/rule_spec.rb +11 -8
- data/spec/features/scripting_spec.rb +2 -2
- data/spec/features/scripting_test_spec.rb +0 -2
- data/spec/features/user_view_spec.rb +4 -6
- data/spec/lib/logger_spec.rb +4 -4
- data/spec/models/event_spec.rb +4 -4
- data/spec/models/promise_spec.rb +1 -1
- data/spec/other/diagnostic/base_spec.rb +12 -12
- data/spec/other/diagnostic/collection_spec.rb +8 -8
- data/spec/other/diagnostic/{delayed_job_spec.rb → delayed_job_version_spec.rb} +4 -4
- data/spec/other/diagnostic/delayed_job_workers_spec.rb +44 -0
- data/spec/other/diagnostic/reporter_spec.rb +13 -17
- data/spec/spec_helper.rb +36 -14
- data/spec/support/clean_db_helpers.rb +2 -2
- metadata +14 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d9d9f5c0e9c2652723559940f1b2914b383a979
|
4
|
+
data.tar.gz: 2070a22df262364639b039d103fc788e0c98636d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7548a3dd1274bbd4e8245cc7fc05186386b936801f22ab1ce3e8b1d9fdf17d4b7ffa096ed9a3d8232f612ee4a55f4c0295a3e27cad07aee8eb9665585547405
|
7
|
+
data.tar.gz: 65a33ee22a28c6aedd262b505f5fc83d12ecf33821fe725f132c8cdfa1b7f1823da0ecb84283ac12696ed3eb5b04cf18a07f60f60e09b41249c43afbcb371b61
|
data/Gemfile
CHANGED
@@ -7,7 +7,7 @@ gemspec
|
|
7
7
|
|
8
8
|
gem 'delayed_job_active_record'
|
9
9
|
gem 'daemons', '~> 1.1.9'
|
10
|
-
gem 'rails', '~>
|
10
|
+
gem 'rails', '~> 5.1.4'
|
11
11
|
gem 'pg'
|
12
12
|
gem 'sqlite3'
|
13
13
|
# for signing of aws ec2 requests
|
@@ -16,17 +16,19 @@ gem 'aws-sigv4', '~> 1.0', '>= 1.0.2'
|
|
16
16
|
|
17
17
|
group :development, :test do
|
18
18
|
gem 'pry-rails'
|
19
|
-
gem 'rspec-rails'
|
19
|
+
gem 'rspec-rails'
|
20
20
|
gem 'capybara'
|
21
|
-
gem
|
21
|
+
gem 'selenium-webdriver'
|
22
|
+
gem 'chromedriver-helper'
|
22
23
|
gem 'timecop'
|
23
24
|
gem 'database_cleaner'
|
25
|
+
gem 'rails-controller-testing'
|
26
|
+
gem 'connection_pool'
|
24
27
|
|
25
|
-
gem '
|
26
|
-
gem '
|
27
|
-
gem 'netzke
|
28
|
-
gem 'rspec-instafail', require: false
|
28
|
+
# gem 'mcfly', path: File.expand_path('../../mcfly', __FILE__)
|
29
|
+
gem 'mcfly'
|
30
|
+
gem 'netzke', '6.5.0.0'
|
29
31
|
|
30
|
-
# gem 'marty_rspec', path: File.expand_path('../../marty_rspec', __FILE__)
|
31
|
-
gem 'marty_rspec'
|
32
|
+
# gem 'marty_rspec', path: File.expand_path('../../marty_rspec', __FILE__)
|
33
|
+
gem 'marty_rspec'
|
32
34
|
end
|
data/Gemfile.lock
CHANGED
@@ -6,10 +6,9 @@ PATH
|
|
6
6
|
coderay
|
7
7
|
delorean_lang (~> 0.3.33)
|
8
8
|
json-schema
|
9
|
-
mcfly (= 0.0.
|
9
|
+
mcfly (= 0.0.20)
|
10
10
|
net-ldap (= 0.12.1)
|
11
|
-
netzke
|
12
|
-
netzke-core (~> 1.0.0)
|
11
|
+
netzke (= 6.5.0.0)
|
13
12
|
pg (~> 0.21)
|
14
13
|
rubyzip
|
15
14
|
sqlite3
|
@@ -17,43 +16,48 @@ PATH
|
|
17
16
|
GEM
|
18
17
|
remote: http://rubygems.org/
|
19
18
|
specs:
|
20
|
-
|
21
|
-
actionpack (=
|
22
|
-
|
23
|
-
|
19
|
+
actioncable (5.1.5)
|
20
|
+
actionpack (= 5.1.5)
|
21
|
+
nio4r (~> 2.0)
|
22
|
+
websocket-driver (~> 0.6.1)
|
23
|
+
actionmailer (5.1.5)
|
24
|
+
actionpack (= 5.1.5)
|
25
|
+
actionview (= 5.1.5)
|
26
|
+
activejob (= 5.1.5)
|
24
27
|
mail (~> 2.5, >= 2.5.4)
|
25
|
-
rails-dom-testing (~>
|
26
|
-
actionpack (
|
27
|
-
actionview (=
|
28
|
-
activesupport (=
|
29
|
-
rack (~>
|
30
|
-
rack-test (
|
31
|
-
rails-dom-testing (~>
|
28
|
+
rails-dom-testing (~> 2.0)
|
29
|
+
actionpack (5.1.5)
|
30
|
+
actionview (= 5.1.5)
|
31
|
+
activesupport (= 5.1.5)
|
32
|
+
rack (~> 2.0)
|
33
|
+
rack-test (>= 0.6.3)
|
34
|
+
rails-dom-testing (~> 2.0)
|
32
35
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
33
|
-
actionview (
|
34
|
-
activesupport (=
|
36
|
+
actionview (5.1.5)
|
37
|
+
activesupport (= 5.1.5)
|
35
38
|
builder (~> 3.1)
|
36
|
-
|
37
|
-
rails-dom-testing (~>
|
39
|
+
erubi (~> 1.4)
|
40
|
+
rails-dom-testing (~> 2.0)
|
38
41
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
39
|
-
activejob (
|
40
|
-
activesupport (=
|
41
|
-
globalid (>= 0.3.
|
42
|
-
activemodel (
|
43
|
-
activesupport (=
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
42
|
+
activejob (5.1.5)
|
43
|
+
activesupport (= 5.1.5)
|
44
|
+
globalid (>= 0.3.6)
|
45
|
+
activemodel (5.1.5)
|
46
|
+
activesupport (= 5.1.5)
|
47
|
+
activerecord (5.1.5)
|
48
|
+
activemodel (= 5.1.5)
|
49
|
+
activesupport (= 5.1.5)
|
50
|
+
arel (~> 8.0)
|
51
|
+
activesupport (5.1.5)
|
52
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
50
53
|
i18n (~> 0.7)
|
51
54
|
minitest (~> 5.1)
|
52
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
53
55
|
tzinfo (~> 1.1)
|
54
56
|
addressable (2.5.2)
|
55
57
|
public_suffix (>= 2.0.2, < 4.0)
|
56
|
-
|
58
|
+
archive-zip (0.7.0)
|
59
|
+
io-like (~> 0.3.0)
|
60
|
+
arel (8.0.0)
|
57
61
|
aws-sigv4 (1.0.2)
|
58
62
|
axlsx (3.0.0.pre)
|
59
63
|
htmlentities (~> 4.3, >= 4.3.4)
|
@@ -70,12 +74,16 @@ GEM
|
|
70
74
|
xpath (>= 2.0, < 4.0)
|
71
75
|
childprocess (0.8.0)
|
72
76
|
ffi (~> 1.0, >= 1.0.11)
|
77
|
+
chromedriver-helper (1.1.0)
|
78
|
+
archive-zip (~> 0.7.0)
|
79
|
+
nokogiri (~> 1.6)
|
73
80
|
coderay (1.1.2)
|
74
81
|
coffee-script (2.4.1)
|
75
82
|
coffee-script-source
|
76
83
|
execjs
|
77
84
|
coffee-script-source (1.12.2)
|
78
85
|
concurrent-ruby (1.0.5)
|
86
|
+
connection_pool (2.2.1)
|
79
87
|
crass (1.0.3)
|
80
88
|
daemons (1.1.9)
|
81
89
|
database_cleaner (1.6.2)
|
@@ -84,11 +92,11 @@ GEM
|
|
84
92
|
delayed_job_active_record (4.1.2)
|
85
93
|
activerecord (>= 3.0, < 5.2)
|
86
94
|
delayed_job (>= 3.0, < 5)
|
87
|
-
delorean_lang (0.3.
|
95
|
+
delorean_lang (0.3.37)
|
88
96
|
activerecord (>= 3.2)
|
89
97
|
treetop (~> 1.5)
|
90
98
|
diff-lcs (1.3)
|
91
|
-
|
99
|
+
erubi (1.7.1)
|
92
100
|
execjs (2.7.0)
|
93
101
|
ffi (1.9.23)
|
94
102
|
globalid (0.4.1)
|
@@ -96,16 +104,17 @@ GEM
|
|
96
104
|
htmlentities (4.3.4)
|
97
105
|
i18n (0.9.5)
|
98
106
|
concurrent-ruby (~> 1.0)
|
107
|
+
io-like (0.3.0)
|
99
108
|
json-schema (2.8.0)
|
100
109
|
addressable (>= 2.4)
|
101
|
-
loofah (2.2.
|
110
|
+
loofah (2.2.2)
|
102
111
|
crass (~> 1.0.2)
|
103
112
|
nokogiri (>= 1.5.9)
|
104
113
|
mail (2.7.0)
|
105
114
|
mini_mime (>= 0.1.1)
|
106
115
|
marty_rspec (0.1)
|
107
116
|
rspec-by
|
108
|
-
mcfly (0.0.
|
117
|
+
mcfly (0.0.20)
|
109
118
|
delorean_lang (~> 0.1)
|
110
119
|
pg (~> 0.17)
|
111
120
|
method_source (0.9.0)
|
@@ -115,13 +124,18 @@ GEM
|
|
115
124
|
mini_portile2 (2.3.0)
|
116
125
|
minitest (5.11.3)
|
117
126
|
net-ldap (0.12.1)
|
118
|
-
netzke
|
119
|
-
|
127
|
+
netzke (6.5.0.0)
|
128
|
+
netzke-basepack (= 6.5.0.0)
|
129
|
+
netzke-core (= 6.5.0.0)
|
130
|
+
netzke-testing (= 6.5.0.0)
|
131
|
+
netzke-basepack (6.5.0.0)
|
132
|
+
netzke-core (6.5.0.0)
|
120
133
|
execjs
|
121
134
|
mime-types (< 3)
|
122
135
|
uglifier
|
123
136
|
netzke-testing (6.5.0.0)
|
124
137
|
coffee-script
|
138
|
+
nio4r (2.3.0)
|
125
139
|
nokogiri (1.8.2)
|
126
140
|
mini_portile2 (~> 2.3.0)
|
127
141
|
pg (0.21.0)
|
@@ -132,38 +146,37 @@ GEM
|
|
132
146
|
pry-rails (0.3.6)
|
133
147
|
pry (>= 0.10.4)
|
134
148
|
public_suffix (3.0.2)
|
135
|
-
rack (
|
136
|
-
rack-test (0.
|
137
|
-
rack (>= 1.0)
|
138
|
-
rails (
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
149
|
+
rack (2.0.4)
|
150
|
+
rack-test (1.0.0)
|
151
|
+
rack (>= 1.0, < 3)
|
152
|
+
rails (5.1.5)
|
153
|
+
actioncable (= 5.1.5)
|
154
|
+
actionmailer (= 5.1.5)
|
155
|
+
actionpack (= 5.1.5)
|
156
|
+
actionview (= 5.1.5)
|
157
|
+
activejob (= 5.1.5)
|
158
|
+
activemodel (= 5.1.5)
|
159
|
+
activerecord (= 5.1.5)
|
160
|
+
activesupport (= 5.1.5)
|
161
|
+
bundler (>= 1.3.0)
|
162
|
+
railties (= 5.1.5)
|
163
|
+
sprockets-rails (>= 2.0.0)
|
164
|
+
rails-controller-testing (1.0.2)
|
165
|
+
actionpack (~> 5.x, >= 5.0.1)
|
166
|
+
actionview (~> 5.x, >= 5.0.1)
|
167
|
+
activesupport (~> 5.x)
|
168
|
+
rails-dom-testing (2.0.3)
|
169
|
+
activesupport (>= 4.2.0)
|
170
|
+
nokogiri (>= 1.6)
|
171
|
+
rails-html-sanitizer (1.0.4)
|
172
|
+
loofah (~> 2.2, >= 2.2.2)
|
173
|
+
railties (5.1.5)
|
174
|
+
actionpack (= 5.1.5)
|
175
|
+
activesupport (= 5.1.5)
|
176
|
+
method_source
|
160
177
|
rake (>= 0.8.7)
|
161
178
|
thor (>= 0.18.1, < 2.0)
|
162
|
-
rake (12.3.
|
163
|
-
rspec (3.7.0)
|
164
|
-
rspec-core (~> 3.7.0)
|
165
|
-
rspec-expectations (~> 3.7.0)
|
166
|
-
rspec-mocks (~> 3.7.0)
|
179
|
+
rake (12.3.1)
|
167
180
|
rspec-by (0.0.7)
|
168
181
|
rspec-core (>= 3)
|
169
182
|
rspec-core (3.7.1)
|
@@ -171,8 +184,6 @@ GEM
|
|
171
184
|
rspec-expectations (3.7.0)
|
172
185
|
diff-lcs (>= 1.2.0, < 2.0)
|
173
186
|
rspec-support (~> 3.7.0)
|
174
|
-
rspec-instafail (1.0.0)
|
175
|
-
rspec
|
176
187
|
rspec-mocks (3.7.0)
|
177
188
|
diff-lcs (>= 1.2.0, < 2.0)
|
178
189
|
rspec-support (~> 3.7.0)
|
@@ -186,10 +197,9 @@ GEM
|
|
186
197
|
rspec-support (~> 3.7.0)
|
187
198
|
rspec-support (3.7.1)
|
188
199
|
rubyzip (1.2.1)
|
189
|
-
selenium-webdriver (
|
200
|
+
selenium-webdriver (3.8.0)
|
190
201
|
childprocess (~> 0.5)
|
191
202
|
rubyzip (~> 1.0)
|
192
|
-
websocket (~> 1.0)
|
193
203
|
sprockets (3.7.1)
|
194
204
|
concurrent-ruby (~> 1.0)
|
195
205
|
rack (> 1, < 3)
|
@@ -201,13 +211,15 @@ GEM
|
|
201
211
|
thor (0.20.0)
|
202
212
|
thread_safe (0.3.6)
|
203
213
|
timecop (0.9.1)
|
204
|
-
treetop (1.6.
|
214
|
+
treetop (1.6.10)
|
205
215
|
polyglot (~> 0.3)
|
206
216
|
tzinfo (1.2.5)
|
207
217
|
thread_safe (~> 0.1)
|
208
218
|
uglifier (4.1.6)
|
209
219
|
execjs (>= 0.3.0, < 3)
|
210
|
-
websocket (
|
220
|
+
websocket-driver (0.6.5)
|
221
|
+
websocket-extensions (>= 0.1.0)
|
222
|
+
websocket-extensions (0.1.3)
|
211
223
|
xpath (3.0.0)
|
212
224
|
nokogiri (~> 1.8)
|
213
225
|
|
@@ -217,20 +229,21 @@ PLATFORMS
|
|
217
229
|
DEPENDENCIES
|
218
230
|
aws-sigv4 (~> 1.0, >= 1.0.2)
|
219
231
|
capybara
|
232
|
+
chromedriver-helper
|
233
|
+
connection_pool
|
220
234
|
daemons (~> 1.1.9)
|
221
235
|
database_cleaner
|
222
236
|
delayed_job_active_record
|
223
237
|
marty!
|
224
238
|
marty_rspec
|
225
|
-
|
226
|
-
netzke
|
227
|
-
netzke-testing
|
239
|
+
mcfly
|
240
|
+
netzke (= 6.5.0.0)
|
228
241
|
pg
|
229
242
|
pry-rails
|
230
|
-
rails (~>
|
231
|
-
|
232
|
-
rspec-rails
|
233
|
-
selenium-webdriver
|
243
|
+
rails (~> 5.1.4)
|
244
|
+
rails-controller-testing
|
245
|
+
rspec-rails
|
246
|
+
selenium-webdriver
|
234
247
|
sqlite3
|
235
248
|
timecop
|
236
249
|
|
@@ -12,7 +12,7 @@ module Marty; class DataGridView < McflyGridPanel
|
|
12
12
|
|
13
13
|
javascript = l(<<-JS)
|
14
14
|
function() {
|
15
|
-
var sel = this.getSelectionModel().
|
15
|
+
var sel = this.getSelectionModel().getSelection()[0];
|
16
16
|
var record_id = sel && sel.getId();
|
17
17
|
this.server.showGrid({record_id: record_id,
|
18
18
|
data_grid: "#{dg}",
|
@@ -31,7 +31,7 @@ class Marty::MainAuthApp < Marty::AuthApp
|
|
31
31
|
def icon_hack(name)
|
32
32
|
# There's a Netzke bug whereby, using an icon name in a hash
|
33
33
|
# doesn't generate a proper URL.
|
34
|
-
"#{Netzke::Core.ext_uri}/../
|
34
|
+
"#{Netzke::Core.ext_uri}/../icons/#{name}.png"
|
35
35
|
end
|
36
36
|
|
37
37
|
def posting_menu
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// copied from basepack grid's onEditInForm
|
3
3
|
netzkeOnDupInForm: function(){
|
4
4
|
var selModel = this.getSelectionModel();
|
5
|
-
var recordId = selModel.
|
5
|
+
var recordId = selModel.getSelection()[0].getId();
|
6
6
|
this.netzkeLoadComponent("edit_window", {
|
7
7
|
title: "Duplicate in Form",
|
8
8
|
serverConfig: {record_id: recordId},
|
@@ -35,7 +35,7 @@ class Marty::PostingGrid < Marty::Grid
|
|
35
35
|
|
36
36
|
c.detail = l(<<-JS)
|
37
37
|
function() {
|
38
|
-
record_id = this.getSelectionModel().
|
38
|
+
record_id = this.getSelectionModel().getSelection()[0].getId();
|
39
39
|
this.server.detail({record_id: record_id});
|
40
40
|
}
|
41
41
|
JS
|
@@ -82,7 +82,7 @@ class Marty::PromiseView < Netzke::Tree::Base
|
|
82
82
|
|
83
83
|
config.netzke_on_download = l(<<-JS)
|
84
84
|
function() {
|
85
|
-
var jid = this.getSelectionModel().
|
85
|
+
var jid = this.getSelectionModel().getSelection()[0].getId();
|
86
86
|
// FIXME: seems pretty hacky
|
87
87
|
window.location = "#{Marty::Util.marty_path}/job/download?job_id=" + jid;
|
88
88
|
}
|
@@ -32,7 +32,7 @@ class Marty::SimpleApp < Netzke::Base
|
|
32
32
|
client_class do |c|
|
33
33
|
c.extend = "Ext.container.Viewport"
|
34
34
|
c.layout = :border
|
35
|
-
c.require Netzke::Core.ext_path.join("
|
35
|
+
c.require Netzke::Core.ext_path.join("packages/ux/classic/src/statusbar/StatusBar.js"), :statusbar_ext
|
36
36
|
c.include :simple_app
|
37
37
|
end
|
38
38
|
|
@@ -11,7 +11,7 @@ class Marty::ApplicationController < ActionController::Base
|
|
11
11
|
cookies.delete(:autologin)
|
12
12
|
end
|
13
13
|
|
14
|
-
|
14
|
+
before_action :session_expiration,
|
15
15
|
:user_setup
|
16
16
|
|
17
17
|
def get_conf
|
@@ -99,7 +99,7 @@ class Marty::ApplicationController < ActionController::Base
|
|
99
99
|
def logout_user
|
100
100
|
if Marty::User.current
|
101
101
|
cookies.delete :autologin
|
102
|
-
Marty::Token.
|
102
|
+
Marty::Token.where(user_id: Marty::User.current.id).delete_all unless
|
103
103
|
Marty::Util.db_in_recovery?
|
104
104
|
self.set_user(nil)
|
105
105
|
end
|
@@ -1,10 +1,6 @@
|
|
1
1
|
module Marty::Diagnostic; class Controller < ActionController::Base
|
2
2
|
def self.inherited(klass)
|
3
|
-
namespace =
|
4
|
-
klass.name.deconstantize.split('::')[0]
|
5
|
-
rescue
|
6
|
-
''
|
7
|
-
end
|
3
|
+
namespace = klass.name.deconstantize.split('::')[0] rescue ''
|
8
4
|
Reporter.namespaces.unshift(namespace)
|
9
5
|
super
|
10
6
|
end
|
@@ -9,12 +9,14 @@ class Marty::ApiAuth < Marty::Base
|
|
9
9
|
|
10
10
|
class ApiAuthValidator < ActiveModel::Validator
|
11
11
|
def validate(api)
|
12
|
-
api.errors
|
13
|
-
|
12
|
+
api.errors.add(
|
13
|
+
:base,
|
14
|
+
"API Key length must be #{KEY_SIZE*2}") if
|
14
15
|
api.api_key && api.api_key.length != KEY_SIZE*2
|
15
16
|
|
16
|
-
|
17
|
-
|
17
|
+
api.errors.add(
|
18
|
+
:base,
|
19
|
+
"Script Name must reference a valid script") if
|
18
20
|
Marty::Script.find_script(api.script_name, nil).nil?
|
19
21
|
end
|
20
22
|
end
|