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 using STI for decision model #16008
Start using STI for decision model #16008
Conversation
4b58537
to
9bd7141
Compare
8aa582e
to
27b0227
Compare
e2cd231
to
77420e9
Compare
40dc496
to
738a06d
Compare
@hellcp-work The changes related to canned responses LGTM. Just fixing linters complaints is missing. |
7eec7e4
to
351a34c
Compare
ed955ef
to
acf0ba8
Compare
0db0415
to
6658392
Compare
src/api/spec/components/notification_action_description_component_spec.rb
Outdated
Show resolved
Hide resolved
I would rename the last commit which includes all the changes to the specs from "Fix feature specs for canned responses with the new decision sti" to something more generic, like, for example, "Fix specs with the new decision sti". |
With the proposed changes, we can get something like this:
a newly created Decision where However, there is a gap between the code changes being applied and the data migration run, where someone can create a new decision and I know we have little risk for this to happen, but who knows? We have to take OBS and IBS in mind. And the fix shouldn't be too difficult: write to both We've just done something similar in PR #16017, I could take care. What do you think? |
It's not difficult to implement, we might as well do it |
The renaming of the spec commit message is missing
d74893b
to
f848427
Compare
Done |
I'm not fully convinced with "Make feature specs work with Decision STI". I would get rid of "feature". We are touching more specs than feature specs... |
Alright |
f848427
to
0510314
Compare
Expands the decision model into an STI model with two new classes.
Keep in mind this uses data migration, so if you try using this in your development setup, start off by running a
rails data:migrate
Remaining tasks: