Skip to content

Conversation

@Agrendalath
Copy link
Member

Context

The SiteConfiguration and SiteConfigurationHistory models had their values field renamed to site_values in a few PRs from #22692 to #22753. The testing plan has been defined in Data Engineering docs, however these docs don't mention that each stage should be performed in separate release to avoid downtime or altering business logic between releases, as defined in Architecture and Engineering docs.

This is a PoC PR that reverts stage 2 and 3 of #22753. The only conflict was in the common/djangoapps/util/tests/test_db.py file, so these reverts do not seem to be too invasive code-wise. Not sure about any other implications, though. It would be good to get some edX feedback here.

Note: This is missing the relevant migrations, so it won't work as-is. We would need to add back the reverted migrations and then create new migrations that would:

  1. Bring back the removed values fields of siteconfiguration and siteconfigurationhistory.
  2. Copy the contents of site_values fields into values fields.

@openedx-webhooks
Copy link

Thanks for the pull request, @Agrendalath! I've created OSPR-4679 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@openedx-webhooks openedx-webhooks added needs triage open-source-contribution PR author is not from Axim or 2U labels Jun 9, 2020
@edx-status-bot
Copy link

Your PR has finished running tests. The following contexts failed:

  • jenkins/a11y
  • jenkins/quality

@natabene
Copy link
Contributor

@Agrendalath Thank you for your contribution. Please let me know once it is ready for our review.

@openedx-webhooks openedx-webhooks added waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. and removed needs triage labels Jun 10, 2020
@nedbat
Copy link
Contributor

nedbat commented Jun 10, 2020

For context, here is a discussion in Slack about the friction in the Juniper upgrade that this PR is trying to fix: https://openedx.slack.com/archives/CSAC4QHC7/p1591672127105600

@nedbat
Copy link
Contributor

nedbat commented Jun 15, 2020

Are we still pursuing this?

Copy link
Contributor

@pwnage101 pwnage101 left a comment

Choose a reason for hiding this comment

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

Based on the conversation in slack that Ned posted, I assume the intention of this PR is to un-do this column rename which currently breaks zero-downtime open edX releases. Since this is not the only column rename, and this also doesn't completely revert the changes for this particular rename (i.e. stage 1 would also need to be reverted for this to make any sense), I would reject it.

@Agrendalath
Copy link
Member Author

@nedbat, @pwnage101, thank you for providing the context here. We're closing this, as these breaking changes were done many months ago and reverting them just for Juniper in a forward-compatible way is tricky due to a few previous reverts, plus Juniper is already released, so many could have already upgraded to it.

@Agrendalath Agrendalath deleted the agrendalath/revert_siteconfiguration_values_rename branch June 19, 2020 20:35
@openedx-webhooks
Copy link

@Agrendalath Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future.

@openedx-webhooks openedx-webhooks added rejected and removed waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. labels Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

open-source-contribution PR author is not from Axim or 2U rejected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants