Skip to content
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

accessing tag_list incomplete #1148

Open
hasandiwan opened this issue Dec 31, 2024 · 1 comment
Open

accessing tag_list incomplete #1148

hasandiwan opened this issue Dec 31, 2024 · 1 comment

Comments

@hasandiwan
Copy link

> t.tag_list
=> ["diagnosis", "Los Angeles", "autism"]
> t
=>
#<TreatmentCentre:0x00007fa5d9fe85e0
 id: 12,
 country: "USA",
 area: "California",
 city: "Los Angeles",
 comments: "Friendly",
 addendum: nil,
 created_at: Tue, 31 Dec 2024 19:55:26.506831000 UTC +00:00,
 updated_at: Tue, 31 Dec 2024 19:57:46.368020000 UTC +00:00,
 link: "https://www.uclahealth.org/locations/jane-and-terry-semel-institute-neuroscience-and-human",
 tag_list: nil>

Why don't all the tags show when I look at the whole object?

@hasandiwan
Copy link
Author

More things from further investigation:

The tagger_type, tenant, and tagger_id fields are null:

select * from tags join taggings on tag_id = tags.id;
id | name | created_at | updated_at | taggings_count | id | tag_id | taggable_type | taggable_id | tagger_type | tagger_id | context | created_at | tenant
----+-------------+----------------------------+----------------------------+----------------+----+--------+-----------------+-------------+-------------+-----------+---------+----------------------------+--------
1 | diagnosis | 2024-12-31 19:34:15.853969 | 2024-12-31 19:34:15.853969 | 1 | 22 | 1 | TreatmentCentre | 12 | | | tags | 2024-12-31 19:55:26.517184 |
2 | Los Angeles | 2024-12-31 19:34:15.858638 | 2024-12-31 19:34:15.858638 | 1 | 23 | 2 | TreatmentCentre | 12 | | | tags | 2024-12-31 19:55:26.522885 |
3 | autism | 2024-12-31 19:34:15.861829 | 2024-12-31 19:34:15.861829 | 1 | 24 | 3 | TreatmentCentre | 12 | | | tags | 2024-12-31 19:55:26.528892 |

Can look deeper into the code, if there's any interest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant