-
Notifications
You must be signed in to change notification settings - Fork 8
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
187384622/new email model - PR1 - Add new EmailAddress Model without Schema Change on Original Models #308
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
187129573 change teacher status
187186207/iter1 golden repo fixes
Country field added for international schools
Cleanup schools bug fix
perryzjc
changed the title
187384622/new email model
187384622/new email model - PR1 - Add new EmailAddress Model without Schema Change on Original Models
Apr 19, 2024
3 tasks
@cycomachead To avoid merge conflict, it's easier to just review Arush's PR for merging teacher, which already merges PR1,2,3&4 from New Email Model and handled merge conflicts. |
This was referenced Apr 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some review have already been made on the Original PR
Pivotal Tracker Link1
What This PR Does
This pull request is the first in a series intended to facilitate easier code review. It restructures the
teacher
model to enable ateacher
to have multipleemail_addresses
. The primary goals of this feature are:Notably, this PR does not introduce new tests. Its primary objective is to ensure that existing tests continue to pass without issues. Subsequent PRs will include:
Screenshots and Visuals
After running
rails db:migrate
andrails db:seed
, the following changes are observable:email
field for original entries in the database. This is due to the migration of the database schema without corresponding data migration, leaving the new email model without the original email information. A forthcoming PR will address this with a data migration script.Who authored this PR?
How should this PR be tested?
At least make sure every original feature doesn't break.
Specs & Features are basically same as the original tests, with changes only relevant to some keywords changing & the way mocking the data (such as originally we can directly create a teacher with a email, now we need to associate them together)
For this PR, at least make sure it didn't break any existing test.
Are there any complications to deploying this?
rails db:migrate
rails db:seed
Checklist:
michael/12345-add-new-feature
Any branch name will do as long as the story ID is there. You can usegit checkout -b [new-branch-name]
)