Skip to content

Imports must replace drafts w/ published in split - #6032

Merged
adampalay merged 1 commit into
releasefrom
hotfix/2014-11-22
Nov 24, 2014
Merged

Imports must replace drafts w/ published in split#6032
adampalay merged 1 commit into
releasefrom
hotfix/2014-11-22

Conversation

@dmitchell

Copy link
Copy Markdown
Contributor

PLAT_299

@adampalay please review & decide whether to add another bug report for old mongo (which does not work)
any(@cpennington @doctoryes @nasthagiri) please review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Perhaps more correct idea: if the draft represents a change done in dest course, then don't overwrite it. That condition is simply, draft_dest_module.update_version != pub_dest_module.source_version

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's run this by @explorerleslie , but I think even in this case the draft should be overwritten. If a module is in draft in the destination course, but is not in the imported course, after importing I'd think the module in the destination course should not be in draft.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

So, I believe old mongo has both this existing bug and fails at "If a module is in draft in the destination course, but is not in the imported course, after importing I'd think the module in the destination course should not be in draft." This fix makes split act the way you're saying.

@adampalay

Copy link
Copy Markdown
Contributor

👍

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The comment for DIRECT_ONLY_CATEGORIES says "Things w/ these categories should never be marked as version=DRAFT". Why?

@doctoryes

Copy link
Copy Markdown
Contributor

👍 after test failure resolved.

adampalay added a commit that referenced this pull request Nov 24, 2014
Imports must replace drafts w/ published in split
@adampalay
adampalay merged commit 22d4468 into release Nov 24, 2014
@benpatterson
benpatterson deleted the hotfix/2014-11-22 branch January 7, 2015 13:14
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.

3 participants