Skip to content

Commit 2094102

Browse files
committed
Normalize all issue links
1 parent 76c2510 commit 2094102

File tree

9 files changed

+32
-32
lines changed

9 files changed

+32
-32
lines changed

src/datascript/query.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@
482482
(da/aset tuples-args i (get attrs arg)))
483483
(da/aset static-args i arg))))
484484
;; CLJS `apply` + `vector` will hold onto mutable array of arguments directly
485-
;; https://github.com/tonsky/datascript/issues/262
485+
;; issue-262
486486
(if #?(:clj false
487487
:cljs (identical? f vector))
488488
(fn [tuple]

test/datascript/test/explode.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
[{:name "Ivan" :profile {:email "@2"}}]
6868
#{[1 :name "Ivan"] [1 :profile 2] [2 :email "@2"]}
6969

70-
;; https://github.com/tonsky/datascript/issues/59
70+
;; issue-59
7171
[{:profile {:email "@2"}}]
7272
#{[2 :profile 1] [1 :email "@2"]}
7373

test/datascript/test/lookup_refs.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
#{[[:name "Ivan"] [:name "Petr"]]
229229
[[:name "Petr"] [:name "Oleg"]]}))
230230

231-
;; https://github.com/tonsky/datascript/issues/214
231+
;; issue-214
232232
(is (= (d/q '[:find ?e
233233
:in $ [?e ...]
234234
:where [?e :friend 3]]

test/datascript/test/pull_api.cljc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
(is (= {:name "Petr" :_father [{:name "David"} {:name "Thomas"}]}
9595
(d/pull test-db '[:name {:_father [:name]}] 1))))
9696

97-
(testing "Multiple reverse refs #412"
97+
(testing "Multiple reverse refs issue-412"
9898
(is (= {:name "Petr" :_father [{:db/id 2} {:db/id 3}]}
9999
(d/pull test-db '[:name :_father :_child] 1)))))
100100

@@ -144,7 +144,7 @@
144144
(testing "Like explicit recursion, expansion will not allow loops"
145145
(is (= rpart (d/pull recdb '[:name :part] 10))))
146146

147-
(testing "Reverse recursive component #411"
147+
(testing "Reverse recursive component issue-411"
148148
(is (= {:name "Part A.A.A.B" :_part {:name "Part A.A.A" :_part {:name "Part A.A" :_part {:name "Part A"}}}}
149149
(d/pull test-db '[:name {:_part ...}] 14)))
150150
(is (= {:name "Part A.A.A.B" :_part {:name "Part A.A.A" :_part {:name "Part A.A"}}}
@@ -433,7 +433,7 @@
433433
(is (= (str "Person-" (dec depth))
434434
(:name (get-in pulled path))))))
435435

436-
; https://github.com/tonsky/datascript/issues/430
436+
; issue-430
437437
(deftest test-component-reverse
438438
(let [schema {:ref {:db/valueType :db.type/ref
439439
:db/isComponent true}}
@@ -474,7 +474,7 @@
474474
{[:child :xform vector] '...}]
475475
1)))
476476

477-
(testing ":xform on cardinality/one ref #455"
477+
(testing ":xform on cardinality/one ref issue-455"
478478
(is (= {:name "David" :father "Petr"}
479479
(d/pull test-db [:name {[:father :xform #(:name %)] ['*]}] 2))))
480480

test/datascript/test/query_or.cljc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
[(ground "Ivan") ?n]]
102102
#{2 6})
103103

104-
;; #348
104+
;; issue-348
105105
(is (= #{[1] [3] [4] [5]}
106106
(d/q '[:find ?e
107107
:in $ ?a
@@ -110,7 +110,7 @@
110110
[?e :name "Oleg"])]
111111
@test-db 10)))
112112

113-
;; #348
113+
;; issue-348
114114
(is (= #{[1] [3] [4] [5]}
115115
(d/q '[:find ?e
116116
:in $ ?a
@@ -119,7 +119,7 @@
119119
[?e :name "Oleg"])]
120120
@test-db 10)))
121121

122-
;; #348
122+
;; issue-348
123123
(is (= #{[1] [3] [4] [5]}
124124
(d/q '[:find ?e
125125
:in $ ?a

test/datascript/test/query_rules.cljc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
[(even? ?e)]
134134
[(even? ?e2)]]])
135135
#{[4 6] [2 4]})))
136-
(testing "Calling rule twice (#44)"
136+
(testing "Calling rule twice (issue-44)"
137137
(d/q '[:find ?p
138138
:in $ % ?fn
139139
:where (rule ?p ?fn "a")
@@ -159,21 +159,21 @@
159159
[(>= ?a 18)]]])
160160
#{["Oleg"]})))
161161

162-
(testing "Rule name validation #319"
162+
(testing "Rule name validation issue-319"
163163
(is (thrown-msg? "Unknown rule 'wat in (wat ?x)"
164164
(d/q '[:find ?x
165165
:in $ %
166166
:where (wat ?x)]
167167
[] []))))
168168

169169
(testing "Rule vars validation"
170-
(is (thrown-msg? "Cannot parse var, expected symbol starting with ?, got: $e1" ;; #300
170+
(is (thrown-msg? "Cannot parse var, expected symbol starting with ?, got: $e1" ;; issue-300
171171
(d/q '[:find ?e :in $ % :where [?e]]
172172
(d/empty-db)
173173
'[[(rule $e1 ?e2)
174174
[?e1 :ref ?e2]]])))))
175175

176-
;; https://github.com/tonsky/datascript/issues/218
176+
;; issue-218
177177
(deftest test-false-arguments
178178
(let [db (d/db-with (d/empty-db)
179179
[[:db/add 1 :attr true]
@@ -190,7 +190,7 @@
190190
db rules)))))
191191

192192

193-
; https://github.com/tonsky/datascript/issues/456
193+
; issue-456
194194
; this used to stall for nearly a minute and/or fail with an OOM exception
195195
; due to propagation of a relation with duplicate tuples during rule solving
196196
(deftest test-rule-performance-on-larger-datasets

test/datascript/test/transact.cljc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
:where [2 ?a ?v]] db)
110110
#{[:name "Petr"] [:age 37]})))))
111111

112-
(deftest test-retract-without-value-339
112+
(deftest test-retract-without-value-issue-339
113113
(let [db (-> (d/empty-db {:aka {:db/cardinality :db.cardinality/many}
114114
:friend {:db/valueType :db.type/ref}})
115115
(d/db-with [{:db/id 1, :name "Ivan", :age 15, :aka ["X" "Y" "Z"], :friend 2}
@@ -275,7 +275,7 @@
275275
(is (= #{[1 :name "Ivan"] [2 :ref 1]}
276276
(tdc/all-datoms db'))))
277277

278-
(testing "#363"
278+
(testing "issue-363"
279279
(let [db' (-> db
280280
(d/db-with [[:db/add -1 :name "Ivan"]])
281281
(d/db-with [[:db/add -1 :name "Ivan"]
@@ -287,7 +287,7 @@
287287
[:db/add -2 :ref -1]]))]
288288
(is (= #{[1 :aka "Batman"] [2 :ref 1]} (tdc/all-datoms db')))))))
289289

290-
(deftest test-tempid-ref-295
290+
(deftest test-tempid-ref-issue-295
291291
(let [db (-> (d/empty-db {:ref {:db/unique :db.unique/identity
292292
:db/valueType :db.type/ref}})
293293
(d/db-with [[:db/add -1 :name "Ivan"]
@@ -327,15 +327,15 @@
327327
(let [db (d/empty-db {:friend {:db/valueType :db.type/ref}
328328
:comp {:db/valueType :db.type/ref, :db/isComponent true}
329329
:multi {:db/cardinality :db.cardinality/many}})]
330-
(testing "Unused tempid" ;; #304
330+
(testing "Unused tempid" ;; issue-304
331331
(is (thrown-msg? "Tempids used only as value in transaction: (-2)"
332332
(d/db-with db [[:db/add -1 :friend -2]])))
333333
(is (thrown-msg? "Tempids used only as value in transaction: (-2)"
334334
(d/db-with db [{:db/id -1 :friend -2}])))
335335
(is (thrown-msg? "Tempids used only as value in transaction: (-1)"
336336
(d/db-with db [{:db/id -1}
337337
[:db/add -2 :friend -1]])))
338-
; Needs #357
338+
; Needs issue-357
339339
; (is (thrown-msg? "Tempids used only as value in transaction: (-1)"
340340
; (d/db-with db [{:db/id -1 :comp {}}
341341
; [:db/add -2 :friend -1]])))
@@ -374,8 +374,8 @@
374374
(is (= (into {} (d/entity @conn tx-id))
375375
{:prop4 "prop4"})))))))
376376

377-
(deftest test-transient-294
378-
"db.fn/retractEntity retracts attributes of adjacent entities #294"
377+
(deftest test-transient-issue-294
378+
"db.fn/retractEntity retracts attributes of adjacent entities issue-294"
379379
(let [db (reduce #(d/db-with %1 [{:db/id %2 :a1 1 :a2 2 :a3 3}])
380380
(d/empty-db)
381381
(range 1 10))
@@ -389,7 +389,7 @@
389389
(d/datom 2 :a3 3)]
390390
(:tx-data report)))))
391391

392-
(deftest test-large-ids-292
392+
(deftest test-large-ids-issue-292
393393
(let [db (d/empty-db {:ref {:db/valueType :db.type/ref}})]
394394
(is (thrown-msg? "Highest supported entity id is 2147483647, got 285873023227265"
395395
(d/with db [[:db/add 285873023227265 :name "Valerii"]])))
@@ -404,7 +404,7 @@
404404
(is (thrown-msg? "Highest supported entity id is 2147483647, got 285873023227265"
405405
(d/with db [(db/datom 1 :ref 285873023227265)]))))))
406406

407-
(deftest test-uncomparable-356
407+
(deftest test-uncomparable-issue-356
408408
(let [db (d/empty-db {:multi {:db/cardinality :db.cardinality/many}
409409
:index {:db/index true}})]
410410

@@ -445,12 +445,12 @@
445445
(is (= [(db/datom 1 :index {:map 3})]
446446
(vec (d/datoms db' :avet :index {:map 3} 1)))))))
447447

448-
(deftest test-compare-numbers-js-404
448+
(deftest test-compare-numbers-js-issue-404
449449
(let [db (d/db-with (d/empty-db) [{:num 42.5}])
450450
db' (d/db-with db [[:db/retract 1 :num 42]])]
451451
(is (= #{[1 :num 42.5]} (tdc/all-datoms db')))))
452452

453-
(deftest test-transitive-type-compare-386
453+
(deftest test-transitive-type-compare-issue-386
454454
(let [txs [[{:block/uid "2LB4tlJGy"}]
455455
[{:block/uid "2ON453J0Z"}]
456456
[{:block/uid "2KqLLNbPg"}]

test/datascript/test/tuples.cljc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
[2 :c "c"]}
216216
(tdc/all-datoms (d/db conn))))))
217217

218-
;; https://github.com/tonsky/datascript/issues/473
218+
;; issue-473
219219
(deftest test-upsert-by-tuple-components
220220
(let [db (d/empty-db {:a+b {:db/tupleAttrs [:a :b]
221221
:db/unique :db.unique/identity}})
@@ -294,7 +294,7 @@
294294
:c "c"}
295295
(d/pull (d/db conn) '[*] [:a+b ["a" "b"]])))))
296296

297-
;; https://github.com/tonsky/datascript/issues/452
297+
;; issue-452
298298
(deftest lookup-refs-in-tuple
299299
(let [schema {:ref {:db/valueType :db.type/ref}
300300
:name {:db/unique :db.unique/identity}

test/datascript/test/upsert.cljc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
(is (= {:db/id 4 :name "Olga" :email "@4" :ref 1 :age 38}
183183
(pull tx 4)))))
184184

185-
;; https://github.com/tonsky/datascript/issues/464
185+
;; issue-464
186186
(testing "not upsert by ref"
187187
(let [tx (d/with db [{:db/id -1 :name "Igor"}
188188
{:db/id -2 :name "Anna" :ref -1}])]
@@ -211,7 +211,7 @@
211211
(d/with db [{:db/id -1 :name "Ivan" :age 35}
212212
{:db/id -1 :name "Oleg" :age 36}])))))
213213

214-
;; https://github.com/tonsky/datascript/issues/285
214+
;; issue-285
215215
(deftest test-retries-order
216216
(let [db (-> (d/empty-db {:name {:db/unique :db.unique/identity}})
217217
(d/db-with [[:db/add -1 :age 42]
@@ -229,7 +229,7 @@
229229
(is (= {:db/id 2, :name "Bob", :likes "Pizza", :age 42}
230230
(tdc/entity-map db 2)))))
231231

232-
;; https://github.com/tonsky/datascript/issues/403
232+
;; issue-403
233233
(deftest test-upsert-string-tempid-ref
234234
(let [db (-> (d/empty-db {:name {:db/unique :db.unique/identity}
235235
:ref {:db/valueType :db.type/ref}})
@@ -250,7 +250,7 @@
250250
(d/db-with db [[:db/add -1, :name "Alice"]
251251
{:age 36, :ref -1}]))))))
252252

253-
;; https://github.com/tonsky/datascript/issues/472
253+
;; issue-472
254254
(deftest test-two-tempids-two-retries
255255
(let [schema {:name {:db/unique :db.unique/identity}
256256
:ref {:db/valueType :db.type/ref}}

0 commit comments

Comments
 (0)