-
Notifications
You must be signed in to change notification settings - Fork 125
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
Start passing in an option to ActiveRecordColumns
compiler for how to generate column types
#1888
Commits on May 2, 2024
-
Add ability to inject options into a DSL compiler
Co-authored-by: Alexandre Terrasa <583144+Morriar@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 4e3f042 - Browse repository at this point
Copy the full SHA 4e3f042View commit details -
Add column type option to AR column compiler
This is either 'untyped', 'nilable', or 'persisted', with the old behaviour being approximated by 'persisted' Co-authored-by: Alexandre Terrasa <583144+Morriar@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for f049087 - Browse repository at this point
Copy the full SHA f049087View commit details -
Allow passing compiler options to
rbi_for
test helper methodCo-authored-by: Alexandre Terrasa <583144+Morriar@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 1173936 - Browse repository at this point
Copy the full SHA 1173936View commit details -
Move non-StrongTypeGeneration extending tests to 'untyped' tests
All the tests that were testing existence of StrongTypeGeneration but with the model not extending it are now actually testing the "untyped" option for the `column_types` compiler option to AR columns compiler. Co-authored-by: Alexandre Terrasa <583144+Morriar@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 2b718ba - Browse repository at this point
Copy the full SHA 2b718baView commit details -
Add tests for "nilable" column types option for AR columns compiler
Co-authored-by: Alexandre Terrasa <583144+Morriar@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for d16788a - Browse repository at this point
Copy the full SHA d16788aView commit details -
Remove
StrongTypeGeneration
testsCo-authored-by: Alexandre Terrasa <583144+Morriar@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 2fa7d23 - Browse repository at this point
Copy the full SHA 2fa7d23View commit details -
Start passing in DSL compiler options from CLI down to DSL pipeline
Co-authored-by: Alexandre Terrasa <583144+Morriar@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for b039225 - Browse repository at this point
Copy the full SHA b039225View commit details -
Start passing options for each compiler to its constructor
Co-authored-by: Alexandre Terrasa <583144+Morriar@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for bceba57 - Browse repository at this point
Copy the full SHA bceba57View commit details -
Don't enforce hash values to always be strings for
compiler_options
Co-authored-by: Alexandre Terrasa <583144+Morriar@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ff08af4 - Browse repository at this point
Copy the full SHA ff08af4View commit details -
Add CLI test for passing in options to ActiveRecordColumns compiler
Co-authored-by: Alexandre Terrasa <583144+Morriar@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 3cda0f3 - Browse repository at this point
Copy the full SHA 3cda0f3View commit details -
Update README with new CLI flag docs
Co-authored-by: Alexandre Terrasa <583144+Morriar@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 975d4f2 - Browse repository at this point
Copy the full SHA 975d4f2View commit details -
IdentityCache
needs column type option as nilable for backcompatCo-authored-by: Alexandre Terrasa <583144+Morriar@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for aa324a6 - Browse repository at this point
Copy the full SHA aa324a6View commit details -
Hide
compiler-options
as a command line optionSince this option cannot be supplied properly on the command line, we should hide it as a command line option, but support it in the configuration file. We also error out if the option as supplied does not have proper hashes as values.
Configuration menu - View commit details
-
Copy full SHA for 0da147c - Browse repository at this point
Copy the full SHA 0da147cView commit details
Commits on Jun 4, 2024
-
Parse DSL compiler options into YAML if they are supplied as strings
Instead of erroring out when the compiler options are not supplied as hashes, we could try to first parse them as YAML (if they are supplied as strings) and only then error if any of the compiler options isn't a hash. This allows users to supply compiler options as strings in the `tapioca` CLI as: ``` dsl Post --compiler-options='ActiveRecordColumns:{types: untyped}' ``` which is more user-friendly than not being able to pass these options on the command line.
Configuration menu - View commit details
-
Copy full SHA for ca2eb8d - Browse repository at this point
Copy the full SHA ca2eb8dView commit details