Skip to content
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

Rename values in SiteConfiguration (2/3) attempt #2 #23214

Conversation

pwnage101
Copy link
Contributor

@pwnage101 pwnage101 commented Feb 26, 2020

commit 3400326e502c9d83d2856700d51211b408eb525f
Author: Troy Sankey <tsankey@edx.org>
Date:   Wed Feb 26 13:43:23 2020 -0500

    Fix migration issue with the missing method.
    
    This commit fixes an issue originally in 3541643d where an instance
    method on a model was missing in a migration.  The problem was that
    Django is smarter than we thought, and is somehow able to construct an
    older version of the model before the commit, where there was no such
    method.  The solution is just to pull the method out of the model.
    
    DENG-18

commit c422dec08318dd56d5c6f02bf6bd129b9a5c5265
Author: Troy Sankey <tsankey@edx.org>
Date:   Wed Feb 26 12:54:24 2020 -0500

    Revert "Revert "Rename values in SiteConfiguration (2/3)""
    
    This reverts commit b85aa4b3fbe7c9c0561125bc8b2eacae7ed6b9dd.

This time, I tested actually running migrations from manage.py lms migrate in devstack, not just copy+pasting the code into a python shell.

DENG-18

@pwnage101 pwnage101 requested review from a team February 26, 2020 18:51
@pwnage101 pwnage101 requested a review from a team as a code owner February 26, 2020 18:51
@pwnage101 pwnage101 requested a review from a team February 26, 2020 18:51
@pwnage101 pwnage101 force-pushed the pwnage101/rename_site_configuration_siteconfiguration_values_2.1 branch from eb7d61c to a1e968d Compare February 26, 2020 19:44
This commit fixes an issue originally in 3541643 where an instance
method on a model was missing in a migration.  The problem was that
Django is smarter than we thought, and is somehow able to construct an
older version of the model before the commit, where there was no such
method.  The solution is just to pull the method out of the model.

DENG-18
@pwnage101 pwnage101 force-pushed the pwnage101/rename_site_configuration_siteconfiguration_values_2.1 branch from a1e968d to 3400326 Compare February 26, 2020 19:44
Copy link
Contributor

@bmedx bmedx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Sorry I missed that first time around :/

@edx-status-bot
Copy link

Your PR has finished running tests. There were no failures.

@pwnage101 pwnage101 requested a review from doctoryes February 26, 2020 20:45
@pwnage101 pwnage101 merged commit 3fdd08b into master Feb 27, 2020
@pwnage101 pwnage101 deleted the pwnage101/rename_site_configuration_siteconfiguration_values_2.1 branch February 27, 2020 15:34
@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR may have caused e2e tests to fail on Stage. If you're a member of the edX org, please visit #e2e-troubleshooting on Slack to help diagnose the cause of these failures. Otherwise, it is the reviewer's responsibility. E2E tests have failed. https://gocd.tools.edx.org/go/tab/pipeline/history/deploy_to_stage

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants