qube_rails 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +105 -0
- data/README.md +213 -56
- data/app/assets/javascripts/qube_rails/question.js +80 -41
- data/app/assets/stylesheets/qube_rails.css +143 -0
- data/app/controllers/qube_rails/connections_controller.rb +19 -3
- data/app/controllers/qube_rails/storyboard_controller.rb +1 -1
- data/app/models/qube_rails/connection.rb +110 -8
- data/app/models/qube_rails/quickbooks_record.rb +22 -0
- data/app/views/qube_rails/_manage_connection.html.erb +19 -0
- data/app/views/qube_rails/question/_choice.html.erb +2 -4
- data/app/views/qube_rails/question/_disclosure.html.erb +7 -0
- data/app/views/qube_rails/question/_footer.html.erb +2 -8
- data/app/views/qube_rails/question/_inline_search.html.erb +12 -0
- data/app/views/qube_rails/question/_pick.html.erb +25 -7
- data/app/views/qube_rails/question/_picks.html.erb +2 -3
- data/app/views/qube_rails/question/_question.html.erb +22 -13
- data/app/views/qube_rails/question/fields/_search.html.erb +3 -2
- data/app/views/qube_rails/storyboard/show.html.erb +4 -3
- data/config/locales/en.yml +7 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20261124000000_add_qube_company_file_change.rb +17 -0
- data/lib/generators/qube_rails/templates/connection_events.rb.tt +17 -1
- data/lib/qube_rails/configuration.rb +2 -0
- data/lib/qube_rails/connection_events.rb +67 -7
- data/lib/qube_rails/engine.rb +1 -0
- data/lib/qube_rails/link_check.rb +274 -0
- data/lib/qube_rails/operation.rb +1 -0
- data/lib/qube_rails/question_view.rb +170 -118
- data/lib/qube_rails/request.rb +2 -0
- data/lib/qube_rails/storyboard/ask_about_add.json +1 -1
- data/lib/qube_rails/storyboard/choose.json +2 -2
- data/lib/qube_rails/storyboard/enum_select.json +1 -1
- data/lib/qube_rails/storyboard/missing_record.json +1 -1
- data/lib/qube_rails/storyboard/name_clash.json +41 -3
- data/lib/qube_rails/storyboard/near_match.json +8 -3
- data/lib/qube_rails/storyboard/number_boolean.json +1 -1
- data/lib/qube_rails/storyboard/record_search.json +2 -2
- data/lib/qube_rails/storyboard/refusal.json +7 -2
- data/lib/qube_rails/storyboard/rows.json +35 -18
- data/lib/qube_rails/storyboard.rb +21 -5
- data/lib/qube_rails/sync_status.rb +12 -1
- data/lib/qube_rails/version.rb +1 -1
- data/lib/qube_rails.rb +9 -0
- metadata +6 -1
data/lib/qube_rails/request.rb
CHANGED
|
@@ -28,6 +28,8 @@ module QubeRails
|
|
|
28
28
|
"qube_id): the customer finishes onboarding first"
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
connection.wait_for_link_check!(record, name) if connection.is_a?(QubeRails::Connection)
|
|
32
|
+
|
|
31
33
|
row, params_error = claim(record, connection)
|
|
32
34
|
raise params_error if params_error
|
|
33
35
|
return retry_queue(row) if row.reused?
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "A lost answer",
|
|
3
|
-
"note": "
|
|
3
|
+
"note": "QuickBooks never answered the add, so it isn't known whether the invoice went in. Your user picks the invoice that matches, adds it again, or cancels.",
|
|
4
4
|
"prompt": {
|
|
5
5
|
"id": "add_transaction / ask_about_add",
|
|
6
6
|
"kind": "decision",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "
|
|
3
|
-
"note": "
|
|
2
|
+
"title": "More than one match",
|
|
3
|
+
"note": "More than one invoice could be the one your app meant. Your user picks one, says none of these is it, or cancels.",
|
|
4
4
|
"prompt": {
|
|
5
5
|
"id": "resolve_transaction / ask",
|
|
6
6
|
"kind": "decision",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "A fixed list",
|
|
3
|
-
"note": "A
|
|
3
|
+
"note": "A question can ask for one value from a fixed list, shown as a dropdown. No shipped workflow asks this yet. A custom workflow can.",
|
|
4
4
|
"prompt": {
|
|
5
5
|
"id": "route_order / ask_route",
|
|
6
6
|
"kind": "decision",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "A missing customer",
|
|
3
|
-
"note": "
|
|
3
|
+
"note": "The invoice names a customer QuickBooks doesn't have. Your user creates it, or searches QuickBooks for an existing one to use.",
|
|
4
4
|
"prompt": {
|
|
5
5
|
"id": "add_transaction / ask_missing",
|
|
6
6
|
"kind": "decision",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "A name clash",
|
|
3
|
-
"note": "
|
|
3
|
+
"note": "QuickBooks already has this name, and it treats names that differ only in case as the same. Your user uses the existing record or adds theirs under another name.",
|
|
4
4
|
"prompt": {
|
|
5
5
|
"id": "ensure / ask_use",
|
|
6
6
|
"kind": "decision",
|
|
@@ -10,6 +10,25 @@
|
|
|
10
10
|
"kind": "customer",
|
|
11
11
|
"name": "Riverbend Electric",
|
|
12
12
|
"existing": {
|
|
13
|
+
"list_id": "80000012-1709391240",
|
|
14
|
+
"time_created": "2024-03-02T09:14:00-06:00",
|
|
15
|
+
"time_modified": "2026-10-28T16:02:11-05:00",
|
|
16
|
+
"edit_sequence": "1761685331",
|
|
17
|
+
"name": "RIVERBEND ELECTRIC",
|
|
18
|
+
"full_name": "RIVERBEND ELECTRIC",
|
|
19
|
+
"is_active": true,
|
|
20
|
+
"company_name": "Riverbend Electric LLC",
|
|
21
|
+
"bill_address": {
|
|
22
|
+
"addr1": "Riverbend Electric LLC",
|
|
23
|
+
"addr2": "2201 E Cesar Chavez St",
|
|
24
|
+
"city": "Austin",
|
|
25
|
+
"state": "TX",
|
|
26
|
+
"postal_code": "78702"
|
|
27
|
+
},
|
|
28
|
+
"phone": "512-555-0142",
|
|
29
|
+
"email": "ap@riverbend.example",
|
|
30
|
+
"balance": 1250.0,
|
|
31
|
+
"total_balance": 1250.0,
|
|
13
32
|
"list": "customer"
|
|
14
33
|
}
|
|
15
34
|
},
|
|
@@ -18,8 +37,27 @@
|
|
|
18
37
|
{
|
|
19
38
|
"id": "use_existing",
|
|
20
39
|
"label": "Use the existing record",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
40
|
+
"title": "RIVERBEND ELECTRIC",
|
|
41
|
+
"action": "Use existing",
|
|
42
|
+
"description": null,
|
|
43
|
+
"detail": "ap@riverbend.example · 512-555-0142 · Austin · Company Riverbend Electric LLC · Balance 1,250.00 · Added Mar 2, 2024",
|
|
44
|
+
"lines": [
|
|
45
|
+
"ap@riverbend.example · 512-555-0142 · Austin"
|
|
46
|
+
],
|
|
47
|
+
"facts": [
|
|
48
|
+
{
|
|
49
|
+
"label": "Company",
|
|
50
|
+
"value": "Riverbend Electric LLC"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"label": "Balance",
|
|
54
|
+
"value": "1,250.00"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"label": "Added",
|
|
58
|
+
"value": "Mar 2, 2024"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
23
61
|
"fields": [],
|
|
24
62
|
"role": "answer"
|
|
25
63
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "A near match",
|
|
3
|
-
"note": "
|
|
3
|
+
"note": "QuickBooks has no customer with exactly this name, but it has similar ones. Your user uses one of them, adds the customer as new, or searches QuickBooks for another.",
|
|
4
4
|
"prompt": {
|
|
5
5
|
"choices": [
|
|
6
6
|
{
|
|
@@ -29,11 +29,16 @@
|
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"description": null,
|
|
32
|
-
"detail":
|
|
32
|
+
"detail": "new customer in QuickBooks",
|
|
33
33
|
"fields": [],
|
|
34
34
|
"id": "none",
|
|
35
35
|
"label": "It's not in QuickBooks: add \"Riverbend\" as new",
|
|
36
|
-
"role": "decline"
|
|
36
|
+
"role": "decline",
|
|
37
|
+
"title": "Riverbend",
|
|
38
|
+
"action": "Add as new",
|
|
39
|
+
"lines": [
|
|
40
|
+
"new customer in QuickBooks"
|
|
41
|
+
]
|
|
37
42
|
},
|
|
38
43
|
{
|
|
39
44
|
"description": null,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Number and yes/no fields",
|
|
3
|
-
"note": "A
|
|
3
|
+
"note": "A question can ask for a number or a yes/no, shown as a number box and a checkbox. No shipped workflow asks these yet. A custom workflow can.",
|
|
4
4
|
"prompt": {
|
|
5
5
|
"id": "adjust / ask_quantity",
|
|
6
6
|
"kind": "decision",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "A
|
|
3
|
-
"note": "
|
|
2
|
+
"title": "A missing account",
|
|
3
|
+
"note": "QuickBooks has no account with this name. Your user picks one of the accounts listed or searches QuickBooks for another.",
|
|
4
4
|
"prompt": {
|
|
5
5
|
"id": "resolve / ask_pick",
|
|
6
6
|
"kind": "decision",
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "An answer QuBe Sync refused (422)",
|
|
3
|
-
"note": "
|
|
3
|
+
"note": "QuBe Sync couldn't take the answer, here a new name QuickBooks already has. The question comes back saying why, with what your user typed still in place.",
|
|
4
4
|
"error": "That answer couldn't be used: a new name can't be one QuickBooks already has.",
|
|
5
|
-
"refused": {
|
|
5
|
+
"refused": {
|
|
6
|
+
"choice": "rename",
|
|
7
|
+
"values": {
|
|
8
|
+
"name": "Riverbend Electric"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
6
11
|
"prompt": {
|
|
7
12
|
"id": "ensure / ask_rename",
|
|
8
13
|
"kind": "decision",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Records not in QuickBooks yet",
|
|
3
|
-
"note": "
|
|
3
|
+
"note": "The invoice names several records QuickBooks doesn't have. Your user goes through them one at a time, creating each or using an existing one. A new item asks for its type and accounts.",
|
|
4
4
|
"prompt": {
|
|
5
5
|
"id": "add_transaction / ask_missing",
|
|
6
6
|
"kind": "decision",
|
|
@@ -263,93 +263,110 @@
|
|
|
263
263
|
{
|
|
264
264
|
"value": "80000001-1700000000",
|
|
265
265
|
"label": "Riverbend Electric",
|
|
266
|
-
"detail": "Customer"
|
|
266
|
+
"detail": "Customer",
|
|
267
|
+
"kind": "customer"
|
|
267
268
|
},
|
|
268
269
|
{
|
|
269
270
|
"value": "80000002-1700000000",
|
|
270
271
|
"label": "Riverbend Supply Co.",
|
|
271
|
-
"detail": "Customer"
|
|
272
|
+
"detail": "Customer",
|
|
273
|
+
"kind": "customer"
|
|
272
274
|
},
|
|
273
275
|
{
|
|
274
276
|
"value": "80000003-1700000000",
|
|
275
277
|
"label": "Lone Star Supply",
|
|
276
|
-
"detail": "Customer"
|
|
278
|
+
"detail": "Customer",
|
|
279
|
+
"kind": "customer"
|
|
277
280
|
},
|
|
278
281
|
{
|
|
279
282
|
"value": "80000011-1700000000",
|
|
280
283
|
"label": "Vinyl Banner 3x6",
|
|
281
|
-
"detail": "Inventory part"
|
|
284
|
+
"detail": "Inventory part",
|
|
285
|
+
"kind": "item"
|
|
282
286
|
},
|
|
283
287
|
{
|
|
284
288
|
"value": "80000012-1700000000",
|
|
285
289
|
"label": "Hardware Kit",
|
|
286
|
-
"detail": "Non-inventory part"
|
|
290
|
+
"detail": "Non-inventory part",
|
|
291
|
+
"kind": "item"
|
|
287
292
|
}
|
|
288
293
|
],
|
|
289
294
|
"records.income_account": [
|
|
290
295
|
{
|
|
291
296
|
"value": "8000000A-1700000000",
|
|
292
297
|
"label": "Sales",
|
|
293
|
-
"detail": "Income"
|
|
298
|
+
"detail": "Income",
|
|
299
|
+
"kind": "account"
|
|
294
300
|
},
|
|
295
301
|
{
|
|
296
302
|
"value": "8000000B-1700000000",
|
|
297
303
|
"label": "Sales:Signs",
|
|
298
|
-
"detail": "Income"
|
|
304
|
+
"detail": "Income",
|
|
305
|
+
"kind": "account"
|
|
299
306
|
},
|
|
300
307
|
{
|
|
301
308
|
"value": "80000005-1700000000",
|
|
302
309
|
"label": "Inventory Asset",
|
|
303
|
-
"detail": "Other current asset"
|
|
310
|
+
"detail": "Other current asset",
|
|
311
|
+
"kind": "account"
|
|
304
312
|
},
|
|
305
313
|
{
|
|
306
314
|
"value": "80000006-1700000000",
|
|
307
315
|
"label": "Cost of Goods Sold",
|
|
308
|
-
"detail": "Cost of goods sold"
|
|
316
|
+
"detail": "Cost of goods sold",
|
|
317
|
+
"kind": "account"
|
|
309
318
|
}
|
|
310
319
|
],
|
|
311
320
|
"records.asset_account": [
|
|
312
321
|
{
|
|
313
322
|
"value": "8000000A-1700000000",
|
|
314
323
|
"label": "Sales",
|
|
315
|
-
"detail": "Income"
|
|
324
|
+
"detail": "Income",
|
|
325
|
+
"kind": "account"
|
|
316
326
|
},
|
|
317
327
|
{
|
|
318
328
|
"value": "8000000B-1700000000",
|
|
319
329
|
"label": "Sales:Signs",
|
|
320
|
-
"detail": "Income"
|
|
330
|
+
"detail": "Income",
|
|
331
|
+
"kind": "account"
|
|
321
332
|
},
|
|
322
333
|
{
|
|
323
334
|
"value": "80000005-1700000000",
|
|
324
335
|
"label": "Inventory Asset",
|
|
325
|
-
"detail": "Other current asset"
|
|
336
|
+
"detail": "Other current asset",
|
|
337
|
+
"kind": "account"
|
|
326
338
|
},
|
|
327
339
|
{
|
|
328
340
|
"value": "80000006-1700000000",
|
|
329
341
|
"label": "Cost of Goods Sold",
|
|
330
|
-
"detail": "Cost of goods sold"
|
|
342
|
+
"detail": "Cost of goods sold",
|
|
343
|
+
"kind": "account"
|
|
331
344
|
}
|
|
332
345
|
],
|
|
333
346
|
"records.cogs_account": [
|
|
334
347
|
{
|
|
335
348
|
"value": "8000000A-1700000000",
|
|
336
349
|
"label": "Sales",
|
|
337
|
-
"detail": "Income"
|
|
350
|
+
"detail": "Income",
|
|
351
|
+
"kind": "account"
|
|
338
352
|
},
|
|
339
353
|
{
|
|
340
354
|
"value": "8000000B-1700000000",
|
|
341
355
|
"label": "Sales:Signs",
|
|
342
|
-
"detail": "Income"
|
|
356
|
+
"detail": "Income",
|
|
357
|
+
"kind": "account"
|
|
343
358
|
},
|
|
344
359
|
{
|
|
345
360
|
"value": "80000005-1700000000",
|
|
346
361
|
"label": "Inventory Asset",
|
|
347
|
-
"detail": "Other current asset"
|
|
362
|
+
"detail": "Other current asset",
|
|
363
|
+
"kind": "account"
|
|
348
364
|
},
|
|
349
365
|
{
|
|
350
366
|
"value": "80000006-1700000000",
|
|
351
367
|
"label": "Cost of Goods Sold",
|
|
352
|
-
"detail": "Cost of goods sold"
|
|
368
|
+
"detail": "Cost of goods sold",
|
|
369
|
+
"kind": "account"
|
|
353
370
|
}
|
|
354
371
|
]
|
|
355
372
|
}
|
|
@@ -93,11 +93,14 @@ module QubeRails
|
|
|
93
93
|
error: refusal ? nil : screen.sample["error"], refusal: refusal)
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
-
# The sample's matches for a search: at most 20 whose label holds q.
|
|
97
|
-
|
|
96
|
+
# The sample's matches for a search: at most 20 whose label holds q. In a rows field, only
|
|
97
|
+
# the records of the row's kind, as QuBe Sync's search scopes by row.
|
|
98
|
+
def matches(screen, field, q, row = nil)
|
|
98
99
|
list = screen && screen.kind == :question ? Array(screen.sample["search"][field.to_s]) : []
|
|
100
|
+
kind = row && row_kind(screen.sample, field.to_s, row.to_s)
|
|
99
101
|
q = q.to_s.strip.downcase
|
|
100
|
-
list.select { |m| m["
|
|
102
|
+
list.select { |m| kind.nil? || m["kind"].nil? || m["kind"] == kind }
|
|
103
|
+
.select { |m| m["label"].to_s.downcase.include?(q) }.first(20)
|
|
101
104
|
end
|
|
102
105
|
|
|
103
106
|
# The file an app puts at that path to override a piece.
|
|
@@ -108,6 +111,17 @@ module QubeRails
|
|
|
108
111
|
|
|
109
112
|
private
|
|
110
113
|
|
|
114
|
+
# The kind of record a rows field's column takes in that row (its "kinds"), or nil.
|
|
115
|
+
def row_kind(sample, field, row)
|
|
116
|
+
name, column = field.split(".", 2)
|
|
117
|
+
return nil unless column
|
|
118
|
+
|
|
119
|
+
rows_field = Array(sample["prompt"]["choices"]).flat_map { |c| Array(c["fields"]) }
|
|
120
|
+
.find { |f| f["name"] == name && f["type"] == "rows" }
|
|
121
|
+
found = rows_field && Array(rows_field["rows"]).find { |r| r["key"] == row }
|
|
122
|
+
found && (found["kinds"] || {})[column]
|
|
123
|
+
end
|
|
124
|
+
|
|
111
125
|
def run_status_screens
|
|
112
126
|
RUN_STATUSES.map do |key, title, status, run, pieces, note|
|
|
113
127
|
partials = %w[run_status/status run_status/summary] + pieces
|
|
@@ -134,10 +148,12 @@ module QubeRails
|
|
|
134
148
|
list << "question/details" if Array(prompt["details"]).any?
|
|
135
149
|
view = QuestionView.new(prompt, action_url: "", search_url: "")
|
|
136
150
|
list.concat(%w[question/picks question/pick]) if view.picks.any?
|
|
137
|
-
list << "question/
|
|
151
|
+
list << "question/inline_search" if view.searches.any?
|
|
152
|
+
list << "question/disclosure" if view.disclosed.any?
|
|
153
|
+
list << "question/choice" if (view.forms + view.exits + view.alongside + view.disclosed).any?
|
|
138
154
|
list << "question/submit" if view.choices.any?
|
|
139
155
|
list << "question/exit_button" if view.joined_form && view.exits.any?
|
|
140
|
-
list << "question/footer" if
|
|
156
|
+
list << "question/footer" if !view.joined_form && view.exits.any?
|
|
141
157
|
list << "error" if sample["error"]
|
|
142
158
|
fields = Array(prompt["choices"]).flat_map { |choice| Array(choice["fields"]) }
|
|
143
159
|
fields.each do |field|
|
|
@@ -26,6 +26,8 @@ module QubeRails
|
|
|
26
26
|
# 4. the latest run completed and linked nothing (an operation that doesn't link its record):
|
|
27
27
|
# :done, which a start may follow, since nothing in QuickBooks stands for the record;
|
|
28
28
|
# 5. neither: :not_sent.
|
|
29
|
+
# A run made before the connection last changed company file (company_file_changed_at) counts
|
|
30
|
+
# as none, and a stale link (not yet checked on the new file) as no link.
|
|
29
31
|
class SyncStatus
|
|
30
32
|
STATUSES = %i[not_sent sending needs_answer in_quickbooks done failed cancelled].freeze
|
|
31
33
|
|
|
@@ -34,8 +36,9 @@ module QubeRails
|
|
|
34
36
|
# record's status on connection for operation (its SLUG).
|
|
35
37
|
def self.for(connection, record, operation:)
|
|
36
38
|
run = QubeRails::Run.where(connection: connection).latest_for(record, operation)
|
|
39
|
+
run = nil if run && before_file_change?(run, connection)
|
|
37
40
|
type, id = QubeRails::ApplicationRecord.key_for(record)
|
|
38
|
-
link = connection.quickbooks_records.where(record_type: type, record_id: id)
|
|
41
|
+
link = connection.quickbooks_records.current.where(record_type: type, record_id: id)
|
|
39
42
|
.order(updated_at: :desc, id: :desc).first
|
|
40
43
|
new(status_of(run, link), run, link)
|
|
41
44
|
end
|
|
@@ -49,6 +52,14 @@ module QubeRails
|
|
|
49
52
|
self.for(run.connection, record, operation: operation)
|
|
50
53
|
end
|
|
51
54
|
|
|
55
|
+
# A run from before the customer switched the connection to another company file: it was the
|
|
56
|
+
# old file's, so the record reads as not sent on the new one.
|
|
57
|
+
def self.before_file_change?(run, connection)
|
|
58
|
+
changed_at = connection.company_file_changed_at
|
|
59
|
+
!changed_at.nil? && run.created_at < changed_at
|
|
60
|
+
end
|
|
61
|
+
private_class_method :before_file_change?
|
|
62
|
+
|
|
52
63
|
def self.status_of(run, link)
|
|
53
64
|
return :failed if run&.realtime_required?
|
|
54
65
|
return in_flight(run) if run && !run.ended?
|
data/lib/qube_rails/version.rb
CHANGED
data/lib/qube_rails.rb
CHANGED
|
@@ -9,6 +9,7 @@ require "qube_rails/database_dedupe"
|
|
|
9
9
|
require "qube_rails/json_coder"
|
|
10
10
|
require "qube_rails/operation"
|
|
11
11
|
require "qube_rails/request"
|
|
12
|
+
require "qube_rails/link_check"
|
|
12
13
|
require "qube_rails/sync_status"
|
|
13
14
|
require "qube_rails/connection_events"
|
|
14
15
|
require "qube_rails/question_view"
|
|
@@ -31,6 +32,14 @@ module QubeRails
|
|
|
31
32
|
# connection.connected at once). The job raises it so the queue retries once it's there.
|
|
32
33
|
class NotReady < StandardError; end
|
|
33
34
|
|
|
35
|
+
# Operation.start or Request.queue for a record whose link waits for its check after a company
|
|
36
|
+
# file change (Connection#checking_link?). Try again once it's settled; a job can retry on it.
|
|
37
|
+
class LinkBeingChecked < NotReady; end
|
|
38
|
+
|
|
39
|
+
# The same for a record whose link the new company file has under another name: the app settles
|
|
40
|
+
# it with Connection#confirm_link or #reject_link (README).
|
|
41
|
+
class LinkNeedsReview < NotReady; end
|
|
42
|
+
|
|
34
43
|
# Operation.start was given a connection QuBe Sync hasn't made yet (no qube_id): the customer
|
|
35
44
|
# hasn't finished onboarding, or QuBe Sync didn't answer it.
|
|
36
45
|
class NotConnected < ArgumentError; end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: qube_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Garrett Lancaster
|
|
@@ -85,13 +85,16 @@ files:
|
|
|
85
85
|
- app/models/qube_rails/run.rb
|
|
86
86
|
- app/models/qube_rails/sync_mark.rb
|
|
87
87
|
- app/views/qube_rails/_error.html.erb
|
|
88
|
+
- app/views/qube_rails/_manage_connection.html.erb
|
|
88
89
|
- app/views/qube_rails/_question.html.erb
|
|
89
90
|
- app/views/qube_rails/_run_status.html.erb
|
|
90
91
|
- app/views/qube_rails/question/_choice.html.erb
|
|
91
92
|
- app/views/qube_rails/question/_details.html.erb
|
|
93
|
+
- app/views/qube_rails/question/_disclosure.html.erb
|
|
92
94
|
- app/views/qube_rails/question/_exit_button.html.erb
|
|
93
95
|
- app/views/qube_rails/question/_field.html.erb
|
|
94
96
|
- app/views/qube_rails/question/_footer.html.erb
|
|
97
|
+
- app/views/qube_rails/question/_inline_search.html.erb
|
|
95
98
|
- app/views/qube_rails/question/_message.html.erb
|
|
96
99
|
- app/views/qube_rails/question/_pick.html.erb
|
|
97
100
|
- app/views/qube_rails/question/_picks.html.erb
|
|
@@ -120,6 +123,7 @@ files:
|
|
|
120
123
|
- db/migrate/20261027000000_create_qube_sync_marks.rb
|
|
121
124
|
- db/migrate/20261028000000_create_qube_requests.rb
|
|
122
125
|
- db/migrate/20261031000000_add_qube_connection_type_and_run_headline.rb
|
|
126
|
+
- db/migrate/20261124000000_add_qube_company_file_change.rb
|
|
123
127
|
- lib/generators/qube_rails/install_generator.rb
|
|
124
128
|
- lib/generators/qube_rails/templates/connection_events.rb.tt
|
|
125
129
|
- lib/generators/qube_rails/templates/initializer.rb.tt
|
|
@@ -132,6 +136,7 @@ files:
|
|
|
132
136
|
- lib/qube_rails/database_dedupe.rb
|
|
133
137
|
- lib/qube_rails/engine.rb
|
|
134
138
|
- lib/qube_rails/json_coder.rb
|
|
139
|
+
- lib/qube_rails/link_check.rb
|
|
135
140
|
- lib/qube_rails/operation.rb
|
|
136
141
|
- lib/qube_rails/question_view.rb
|
|
137
142
|
- lib/qube_rails/request.rb
|