Created evolution to add extra_data field to ChangeDescription model
Review Request #12038 — Created Feb. 4, 2022 and updated
Created evolution file to add
extra_data
JSON field to
ChangeDescription model in order to pass in automate=True flag to
track the originator of the close action when review request is closed
by third-party repo services.
I have run
./manage.py evolve --execute
to apply the changes to the
database.Even though unit test is not required to test for a newly added field,
I did a quick sanity check if theextra_data
field is added
successfully to the ChangeDescription model. I have attached the
screenshot to show that.
Summary | ID | Author |
---|---|---|
bdb6a7d48f20b8a37a638ac5fcbaf3f0aaac9a92 | sng06 | |
e7c59310bd103aa5cb4302bba84ace5fdc1a3e41 | sng06 |
Description | From | Last Updated |
---|---|---|
You can move the statement about running the evolution into the "testing done" field. |
david | |
Please wrap your description and testing done to 70 columns for easier readability. |
david | |
Let's add a module docstring to this (many old files don't have them, but any new files should have it … |
david | |
Test comment |
vilavivida |
- Change Summary:
-
Added screenshot to show the newly added field
- Summary:
-
[WIP] Created evolution to add extra_data field to ChangeDescription modelCreated evolution to add extra_data field to ChangeDescription model
- Description:
-
Created evolution file to add
extra_data
JSON field to ChangeDescription model in order to pass in automate=True flag to track the originator of the close action when review request is closed by third-party repo services.~ I have not run
./manage.py evolve --execute
to apply the changes to the database yet as I would like to get this reviewed and confirmed if this change is correct before running the execute command to apply the changes.~ I have run
./manage.py evolve --execute
to apply the changes to the database. - Testing Done:
-
~ I think I am not able to do any testing on the new field before running the execute command to apply the changes to the database. Also, I am not sure if it is required to create unit test to test a newly added field as the existing unit tests are mainly testing the methods inside the model files instead of testing for a newly added field.
~ Even though unit test is not required to test for a newly added field, I did a quick sanity check if the
extra_data
field is added successfully to the ChangeDescription model. I have attached the screenshot to show that.- - However, Django Evolution documentation suggested to test prior to execution. Please advice if unit test is necessary/ what kind of test I should be doing before applying the changes.
- Added Files:
- Change Summary:
-
Added module docstring to evolution file.
- Description:
-
~ Created evolution file to add
extra_data
JSON field to ChangeDescription model in order to pass in automate=True flag to track the originator of the close action when review request is closed by third-party repo services.~ ~ I have run
./manage.py evolve --execute
to apply the changes to the database.~ Created evolution file to add
extra_data
JSON field to~ ChangeDescription model in order to pass in automate=True flag to ~ track the originator of the close action when review request is closed + by third-party repo services. - Testing Done:
-
~ Even though unit test is not required to test for a newly added field, I did a quick sanity check if the
extra_data
field is added successfully to the ChangeDescription model. I have attached the screenshot to show that.~ I have run
./manage.py evolve --execute
to apply the changes to the+ database. + + Even though unit test is not required to test for a newly added field,
+ I did a quick sanity check if the extra_data
field is added+ successfully to the ChangeDescription model. I have attached the + screenshot to show that. - Commits:
-
Summary ID Author aece120422829fd4afaba9d45f4cc8d3f7f29461 sng06 bdb6a7d48f20b8a37a638ac5fcbaf3f0aaac9a92 sng06 e7c59310bd103aa5cb4302bba84ace5fdc1a3e41 sng06