Closed brandondrew closed 1 month ago
Thanks for reporting this and apologies for the long delay. I recently started a job and have been trying to ramp up quickly. I'll take an initial look at this in my evening.
thanks for your time!
Took a look, so for that option, it looks like you just need to pass a regex. It doesn't seem to support column names directly.
For example, annotaterb models -I '(id|updated_at|created_at)'
this works in the CLI, and you can use the non-quoted version in the yml file.
ahh, okay, that's useful, although it never occurred to me to try a regular expression.
It might be a good idea to add something like that as an example in the comments near that key
:ignore_columns: # (id|updated_at|created_at)
I've tried to ignore several columns, and have not had any success with any syntax that seems plausible. Since there are other settings that have (empty) arrays, it seemed like these might be expected on a single line as an array, so tried using square brackets with the fields inside, but I also tried without the square brackets. I tried naming the fields with bare words, single- and double-quoted names, and symbol syntax. None of that worked. I also tried putting the fields on subsequent lines using normal YAML syntax. None of that worked either.
There is nothing I see that serves as an example.
Permutations Attempted
The first one results in
The second, third, fourth, ninth, tenth, eleventh, and twelfth permutations all result in
The fifth and eigth permutations don't give any errors, but fail to filter out the specified columns.
The sixth and seventh permutations showed YAML errors in my editors, and result in
Unless I'm failing to see a possibility, it appears that filtering columns is not working.
Versions
annotaterb (4.12.0)
Rails 7.1.4
ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [arm64-darwin23]
pg (1.5.8)