Skip to content

Commit 10f4354

Browse files
committed
chore: add tests for nested many to many issue
1 parent 846a98a commit 10f4354

19 files changed

+877
-1
lines changed
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"attributes": [
3+
{
4+
"allow_nil?": false,
5+
"default": "nil",
6+
"generated?": false,
7+
"primary_key?": true,
8+
"references": {
9+
"deferrable": false,
10+
"destination_attribute": "id",
11+
"destination_attribute_default": null,
12+
"destination_attribute_generated": null,
13+
"index?": false,
14+
"match_type": null,
15+
"match_with": null,
16+
"multitenancy": {
17+
"attribute": null,
18+
"global": null,
19+
"strategy": null
20+
},
21+
"name": "comment_links_source_id_fkey",
22+
"on_delete": null,
23+
"on_update": null,
24+
"primary_key?": true,
25+
"schema": "public",
26+
"table": "comments"
27+
},
28+
"size": null,
29+
"source": "source_id",
30+
"type": "uuid"
31+
},
32+
{
33+
"allow_nil?": false,
34+
"default": "nil",
35+
"generated?": false,
36+
"primary_key?": true,
37+
"references": {
38+
"deferrable": false,
39+
"destination_attribute": "id",
40+
"destination_attribute_default": null,
41+
"destination_attribute_generated": null,
42+
"index?": false,
43+
"match_type": null,
44+
"match_with": null,
45+
"multitenancy": {
46+
"attribute": null,
47+
"global": null,
48+
"strategy": null
49+
},
50+
"name": "comment_links_dest_id_fkey",
51+
"on_delete": null,
52+
"on_update": null,
53+
"primary_key?": true,
54+
"schema": "public",
55+
"table": "comments"
56+
},
57+
"size": null,
58+
"source": "dest_id",
59+
"type": "uuid"
60+
}
61+
],
62+
"base_filter": null,
63+
"check_constraints": [],
64+
"custom_indexes": [],
65+
"custom_statements": [],
66+
"has_create_action": true,
67+
"hash": "C6B8BE5033D412C2E597F975082E6D985EC260BED163E504500FFB684FAD0BD2",
68+
"identities": [
69+
{
70+
"all_tenants?": false,
71+
"base_filter": null,
72+
"index_name": "comment_links_unique_link_index",
73+
"keys": [
74+
{
75+
"type": "atom",
76+
"value": "source_id"
77+
},
78+
{
79+
"type": "atom",
80+
"value": "dest_id"
81+
}
82+
],
83+
"name": "unique_link",
84+
"nils_distinct?": true,
85+
"where": null
86+
}
87+
],
88+
"multitenancy": {
89+
"attribute": null,
90+
"global": null,
91+
"strategy": null
92+
},
93+
"repo": "Elixir.AshPostgres.TestRepo",
94+
"schema": null,
95+
"table": "comment_links"
96+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"attributes": [
3+
{
4+
"allow_nil?": false,
5+
"default": "fragment(\"gen_random_uuid()\")",
6+
"generated?": false,
7+
"primary_key?": true,
8+
"references": null,
9+
"size": null,
10+
"source": "id",
11+
"type": "uuid"
12+
},
13+
{
14+
"allow_nil?": false,
15+
"default": "fragment(\"(now() AT TIME ZONE 'utc')\")",
16+
"generated?": false,
17+
"primary_key?": false,
18+
"references": null,
19+
"size": null,
20+
"source": "inserted_at",
21+
"type": "utc_datetime_usec"
22+
},
23+
{
24+
"allow_nil?": false,
25+
"default": "fragment(\"(now() AT TIME ZONE 'utc')\")",
26+
"generated?": false,
27+
"primary_key?": false,
28+
"references": null,
29+
"size": null,
30+
"source": "updated_at",
31+
"type": "utc_datetime_usec"
32+
},
33+
{
34+
"allow_nil?": true,
35+
"default": "nil",
36+
"generated?": false,
37+
"primary_key?": false,
38+
"references": {
39+
"deferrable": false,
40+
"destination_attribute": "id",
41+
"destination_attribute_default": null,
42+
"destination_attribute_generated": null,
43+
"index?": false,
44+
"match_type": null,
45+
"match_with": null,
46+
"multitenancy": {
47+
"attribute": null,
48+
"global": null,
49+
"strategy": null
50+
},
51+
"name": "content_note_id_fkey",
52+
"on_delete": null,
53+
"on_update": null,
54+
"primary_key?": true,
55+
"schema": "public",
56+
"table": "note"
57+
},
58+
"size": null,
59+
"source": "note_id",
60+
"type": "uuid"
61+
}
62+
],
63+
"base_filter": null,
64+
"check_constraints": [],
65+
"custom_indexes": [],
66+
"custom_statements": [],
67+
"has_create_action": true,
68+
"hash": "F045A8746F9BEC0CA9C585954072792A9DEB0FE0702789163E2F6BF9CC1A41A1",
69+
"identities": [],
70+
"multitenancy": {
71+
"attribute": null,
72+
"global": null,
73+
"strategy": null
74+
},
75+
"repo": "Elixir.AshPostgres.TestRepo",
76+
"schema": null,
77+
"table": "content"
78+
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"attributes": [
3+
{
4+
"allow_nil?": false,
5+
"default": "nil",
6+
"generated?": false,
7+
"primary_key?": true,
8+
"references": {
9+
"deferrable": false,
10+
"destination_attribute": "id",
11+
"destination_attribute_default": null,
12+
"destination_attribute_generated": null,
13+
"index?": false,
14+
"match_type": null,
15+
"match_with": null,
16+
"multitenancy": {
17+
"attribute": null,
18+
"global": null,
19+
"strategy": null
20+
},
21+
"name": "content_visibility_group_content_id_fkey",
22+
"on_delete": null,
23+
"on_update": null,
24+
"primary_key?": true,
25+
"schema": "public",
26+
"table": "content"
27+
},
28+
"size": null,
29+
"source": "content_id",
30+
"type": "uuid"
31+
},
32+
{
33+
"allow_nil?": false,
34+
"default": "nil",
35+
"generated?": false,
36+
"primary_key?": true,
37+
"references": {
38+
"deferrable": false,
39+
"destination_attribute": "id",
40+
"destination_attribute_default": null,
41+
"destination_attribute_generated": null,
42+
"index?": false,
43+
"match_type": null,
44+
"match_with": null,
45+
"multitenancy": {
46+
"attribute": null,
47+
"global": null,
48+
"strategy": null
49+
},
50+
"name": "content_visibility_group_staff_group_id_fkey",
51+
"on_delete": null,
52+
"on_update": null,
53+
"primary_key?": true,
54+
"schema": "public",
55+
"table": "staff_group"
56+
},
57+
"size": null,
58+
"source": "staff_group_id",
59+
"type": "uuid"
60+
}
61+
],
62+
"base_filter": null,
63+
"check_constraints": [],
64+
"custom_indexes": [],
65+
"custom_statements": [],
66+
"has_create_action": true,
67+
"hash": "36C3B7305D83A64EAB2A7B934D2961D7ACA0557254D2DF059EF500BADFF4A177",
68+
"identities": [],
69+
"multitenancy": {
70+
"attribute": null,
71+
"global": null,
72+
"strategy": null
73+
},
74+
"repo": "Elixir.AshPostgres.TestRepo",
75+
"schema": null,
76+
"table": "content_visibility_group"
77+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"attributes": [
3+
{
4+
"allow_nil?": false,
5+
"default": "fragment(\"gen_random_uuid()\")",
6+
"generated?": false,
7+
"primary_key?": true,
8+
"references": null,
9+
"size": null,
10+
"source": "id",
11+
"type": "uuid"
12+
},
13+
{
14+
"allow_nil?": false,
15+
"default": "nil",
16+
"generated?": false,
17+
"primary_key?": false,
18+
"references": null,
19+
"size": null,
20+
"source": "body",
21+
"type": "text"
22+
},
23+
{
24+
"allow_nil?": false,
25+
"default": "fragment(\"(now() AT TIME ZONE 'utc')\")",
26+
"generated?": false,
27+
"primary_key?": false,
28+
"references": null,
29+
"size": null,
30+
"source": "inserted_at",
31+
"type": "utc_datetime_usec"
32+
},
33+
{
34+
"allow_nil?": false,
35+
"default": "fragment(\"(now() AT TIME ZONE 'utc')\")",
36+
"generated?": false,
37+
"primary_key?": false,
38+
"references": null,
39+
"size": null,
40+
"source": "updated_at",
41+
"type": "utc_datetime_usec"
42+
}
43+
],
44+
"base_filter": null,
45+
"check_constraints": [],
46+
"custom_indexes": [],
47+
"custom_statements": [],
48+
"has_create_action": false,
49+
"hash": "3AEFA76A190732E6BDB6EA0686B4D6872F1E6395CFD58975853FDA3C3CADD98C",
50+
"identities": [],
51+
"multitenancy": {
52+
"attribute": null,
53+
"global": null,
54+
"strategy": null
55+
},
56+
"repo": "Elixir.AshPostgres.TestRepo",
57+
"schema": null,
58+
"table": "note"
59+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"attributes": [
3+
{
4+
"allow_nil?": false,
5+
"default": "fragment(\"gen_random_uuid()\")",
6+
"generated?": false,
7+
"primary_key?": true,
8+
"references": null,
9+
"size": null,
10+
"source": "id",
11+
"type": "uuid"
12+
},
13+
{
14+
"allow_nil?": false,
15+
"default": "fragment(\"(now() AT TIME ZONE 'utc')\")",
16+
"generated?": false,
17+
"primary_key?": false,
18+
"references": null,
19+
"size": null,
20+
"source": "inserted_at",
21+
"type": "utc_datetime_usec"
22+
},
23+
{
24+
"allow_nil?": false,
25+
"default": "fragment(\"(now() AT TIME ZONE 'utc')\")",
26+
"generated?": false,
27+
"primary_key?": false,
28+
"references": null,
29+
"size": null,
30+
"source": "updated_at",
31+
"type": "utc_datetime_usec"
32+
}
33+
],
34+
"base_filter": null,
35+
"check_constraints": [],
36+
"custom_indexes": [],
37+
"custom_statements": [],
38+
"has_create_action": true,
39+
"hash": "4353CC893BCF75218813E38289037CD3F213C4CFC4200426351DDCD5BA48F778",
40+
"identities": [],
41+
"multitenancy": {
42+
"attribute": null,
43+
"global": null,
44+
"strategy": null
45+
},
46+
"repo": "Elixir.AshPostgres.TestRepo",
47+
"schema": null,
48+
"table": "staff_group"
49+
}

0 commit comments

Comments
 (0)