-
Notifications
You must be signed in to change notification settings - Fork 5
Run the operations API on the main thread #355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
40600bf
a7fabca
680e0d6
43ba7bb
360fc70
7443ea1
f2be3cd
3b8a84b
84de288
ec80bcc
cae3071
8c72fa3
91b5600
f621d48
556a902
aed0013
4cb42ae
eeb425f
5d01f57
6708a64
5473805
cb61ae2
54bc8f8
ac61236
6d86178
5970583
a697f0b
f0a2e72
80525c6
eec629e
b3443ba
8c9030b
0824ec6
c67050a
bc1b3d9
635f825
5baefb4
e772633
174ae84
af7a9f3
ab7e634
817d25c
5652fa4
8e92cc3
b5f2bc5
864e38c
956c1c3
c8baa03
9a05201
c9f00bb
bb12fcf
aa693bd
58ade04
90cec3a
a4d5673
8f31201
0ce1879
a050a77
3c0f74c
dae7b6c
be835f7
f20091b
9aa2d36
c2e885c
fadc5f5
855c61b
90e0680
6b82485
02ebbb2
341aa5e
19d77c7
073948d
dac101f
3b84134
99d1656
bd8002a
778c0a0
9377390
82a9e8c
285ba80
63278fe
dfc927f
a9f1dcd
95c0fd6
dce966a
3c4bc5a
215cd30
8b7385f
4dec2a5
663fd2d
e6dc490
3958090
9959da5
3cc46d0
17439c8
31ac1b6
d959328
7f161e8
debbae1
4be927f
855a784
d2cd329
43dccda
55da10f
b6f7844
60b4c78
2b03a75
5ce5cc6
d9ff9ee
c6f49f6
a51c1f6
ba08011
4281f9f
ec2ae54
4bb88ab
7e3a0ce
bf8fb32
b48c050
ee1a193
93c490d
cf18348
5e1132b
ad1759d
2905b02
1f290a3
015f2b1
2b9e33e
be9b722
016dd70
4ae6c70
1699197
bb9ac61
031dd7b
e4f2145
bbb01b0
88db3ef
2992d96
3fe930d
a883b13
1c2db42
c5dccbb
804fab0
c8f0b6f
08c3fc9
9a8dc6e
025b32a
39c3a24
d090858
2458b83
2505a2b
5bbcd75
61e6655
dbb97cf
2c318dc
d2bd475
b8e7b7c
0b2a08d
a7ebbd0
2e514b2
bf30f37
40a04c1
38fa53b
c45307c
861f868
e0d7b03
1ece975
77d8d07
b1b4258
33d77cc
6ef3a3e
28bdb45
401fefa
2063307
c2a39f0
e130435
4432c64
24d9f9f
c7fc20c
536e364
4491564
22de601
58ee866
4ec5ca3
1c047e7
548f737
11bc253
87be177
6acfdd8
c993d42
ac44190
9c80111
7db9741
4e27004
6660c9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,17 +2,16 @@ import { describe, it, beforeEach } from 'node:test'; | |
| import assert from 'node:assert/strict'; | ||
| import { req, reqRest } from '../utils/request.mjs'; | ||
| import { timestamp } from '../utils/timestamp.mjs'; | ||
| import request from 'supertest'; | ||
| import { envUrlRest, headers } from '../config/envConfig.mjs'; | ||
|
|
||
| describe('18. Computed indexed properties', () => { | ||
| beforeEach(timestamp); | ||
|
|
||
| //Computed indexed properties Folder | ||
|
|
||
| it('Insert data', () => { | ||
| return req() | ||
| .send({ operation: 'insert', table: 'Product', records: [{ id: '1', price: 100, taxRate: 0.19 }] }) | ||
| .expect((r) => assert.ok(r.body.message.includes('inserted 1 of 1 records'), r.text)) | ||
| .expect(200); | ||
| it('PUT data', () => { | ||
| return request(envUrlRest).put('/Product/1').set(headers).send({ id: '1', price: 100, taxRate: 0.19 }).expect(204); | ||
| }); | ||
|
|
||
| it('Search for attribute', () => { | ||
|
|
@@ -48,7 +47,6 @@ describe('18. Computed indexed properties', () => { | |
| assert.equal(r.body[0].taxRate, 0.19, r.text); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is
The new However, this search goes through the REST endpoint, which hits workers that do load Could you clarify:
Silently dropping this assertion could mask a correctness regression for users relying on |
||
| assert.equal(r.body[0].totalPrice, 119, r.text); | ||
| assert.equal(r.body[0].notIndexedTotalPrice, 119, r.text); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The commit title "Use application pathways for JS computed properties" explains the intent, but a note in the test would make it self-documenting. Consider either removing |
||
| assert.equal(r.body[0].jsTotalPrice, 119, r.text); | ||
| }) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
This is an intentional limitation of the design, but it is undocumented. Please either:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. JS-function-registered computed attributes ( The This is a silent behavioral regression for any integrator who combines JS-computed attributes with the operations API. Minimum fix: add a comment here explaining why the assertion was removed, and note the limitation in |
||
| .expect(200); | ||
| }); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.