-
Notifications
You must be signed in to change notification settings - Fork 47
Comparing changes
Open a pull request
base repository: drwl/annotaterb
base: v4.14.0
head repository: drwl/annotaterb
compare: v4.15.0
- 9 commits
- 16 files changed
- 9 contributors
Commits on Feb 17, 2025
-
Generate changelog for v4.14.0 (#191)
Manually generating changelogs for time being.
Configuration menu - View commit details
-
Copy full SHA for efc56fb - Browse repository at this point
Copy the full SHA efc56fbView commit details
Commits on Mar 3, 2025
-
Fix
changelog_uri
in gemspec (#192)This repository uses `main` for the default branch. This can reduce a redirect when accessing the URI.
Configuration menu - View commit details
-
Copy full SHA for 578447a - Browse repository at this point
Copy the full SHA 578447aView commit details
Commits on Mar 31, 2025
-
feat: add
timestamp_columns
config option (#173)I'm working with a codebase that doesn't use Rails' default timestamp columns, so being able to customise those would be helpful. This adds `timestamp_columns` as a configurable option for classified sorting, and sorts them in config order rather than alphabetical order. Co-authored-by: Andrew W. Lee <git@drewlee.com>
Configuration menu - View commit details
-
Copy full SHA for fd73335 - Browse repository at this point
Copy the full SHA fd73335View commit details
Commits on Apr 11, 2025
-
fix: Handle case when table_name_prefix specified as symbol (#208)
During of annotation of indexes I have received exception (`'String#sub': wrong argument type Symbol (expected Regexp) (TypeError)`) when some of my AR models use `table_name_prefix` option with Symbol value. In this PR I fixed it and added some specs to cover it by tests ENV: Rails 8.0.1, Ruby 3.4.1
Configuration menu - View commit details
-
Copy full SHA for df91a4e - Browse repository at this point
Copy the full SHA df91a4eView commit details
Commits on May 30, 2025
-
Add debug logs for model annotation (#217)
We have a pretty large monolith (as well as a second database host that tends to get bogged down after it runs for a while in development), so we find it useful to see some progress indicator while annotations are running. This adds them in for each model when debug is set. This uses `puts` to match the current debug log that exists.
Configuration menu - View commit details
-
Copy full SHA for ec48669 - Browse repository at this point
Copy the full SHA ec48669View commit details -
Cache retrieved indexes in ModelWrapper (#215)
When upgrading rails project with 200+ models from annotate to this gem (thanks for creating and maintaining it!), we noticed that annotation became a lot slower. We managed to pinpoint the problem to `indexes = @klass.connection.indexes(table_name)` which was invoked from `AnnotationBuilder::Annotation#columns` for every column of every model. Original annotate: ``` bundle exec annotate --models 7,72s user 0,82s system 68% cpu 12,553 total ``` Before this change: ``` bundle exec annotaterb models 27,14s user 2,19s system 60% cpu 48,816 total ``` After this change: ``` bundle exec annotaterb models 7,22s user 0,82s system 82% cpu 9,748 total ``` Co-authored-by: David Hajčiar <david.hajciar@juicymo.cz> Co-authored-by: Andrew W. Lee <git@drewlee.com>
Configuration menu - View commit details
-
Copy full SHA for 90df34c - Browse repository at this point
Copy the full SHA 90df34cView commit details -
feat: identify unique indexes in simple_indexes option (#214)
When generating simple indexes, there is no identifier for unique indexes. This PR updates the `simple_index` option to annotate with `uniquely indexed` for unique indexes. Screenshot from a project I tested with:  Co-authored-by: Andrew W. Lee <git@drewlee.com>
Configuration menu - View commit details
-
Copy full SHA for 208646a - Browse repository at this point
Copy the full SHA 208646aView commit details -
Support the glob pattern in
root_dir
andmodel_dir
(#198)We often want to specify multiple directories in `root_dir` and `model_dir`. For example, when using engines, packs-rails, etc. * https://github.com/rubyatscale/packs-rails * https://guides.rubyonrails.org/engines.html This commit supports the glob pattern with these options, making it easy to specify multiple directories. fixes #99 Co-authored-by: Andrew W. Lee <git@drewlee.com>
Configuration menu - View commit details
-
Copy full SHA for 98d7856 - Browse repository at this point
Copy the full SHA 98d7856View commit details -
Bump version to v4.15.0 (#218)
Manually doing releases until an automated solution is put in place.
Configuration menu - View commit details
-
Copy full SHA for 78ec7bc - Browse repository at this point
Copy the full SHA 78ec7bcView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v4.14.0...v4.15.0