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

Content libraries MVP #6459

Merged
merged 100 commits into from Jan 13, 2015
Merged

Content libraries MVP #6459

merged 100 commits into from Jan 13, 2015

Conversation

bradenmacdonald
Copy link
Contributor

Description: This is our minimum viable implementation of content libraries ("Problem Banks") (SOL-11). This PR will be used for QA and bug fixing before we merge this feature branch to master.

Sandbox URL: CMS http://content-libraries.sandbox.opencraft.com:18010/ - LMS http://content-libraries.sandbox.opencraft.com/

Partner information: 3rd party-hosted open edX instance, for an edX solutions client.

Dependencies: Already merged: Support for Content libraries in the modulestore (#6033) and in opaque keys (openedx/opaque-keys#46)

Constituent PRs: All the code on this branch has already gone through a code review, except for 76d3f35 and any future bug fixes we make once all the constituent PRs have been merged:

CC @antoviaque @Kelketek @e-kolpakov @mtyaka

@antoviaque
Copy link
Contributor

@bradenmacdonald The jenkins test run doesn't seem to have been automatically triggered on this?

@jzoldak Any idea why this would not happen? Is there a way for us to trigger them manually when this happens? Usually we amend the last commit to attempt to retrigger a jenkins run, but on a feature branch with PRs that depend on it, that would require to rebase all dependent PRs afterwards, which wouldn't be practical.

@antoviaque
Copy link
Contributor

@jzoldak
Copy link
Contributor

jzoldak commented Jan 9, 2015

@antoviaque @bradenmacdonald
We're in the middle of switching to a new jenkins infrastructure. Here are URLs to trigger jobs manually on the old jenkins server and the new one.

bradenmacdonald and others added 26 commits January 12, 2015 13:37
Admin ("Instructor") - Can edit and assign permissions to other users
Normal ("Staff") - Can edit
User - Can view the library and use content from it but cannot edit it or its blocks.
@antoviaque
Copy link
Contributor

@e-kolpakov To make it easier to review everything at once for the MVP merge, I've merged that bugfix here too. So the commits to review to be able to merge the current MVP PR to master are: 6ea5a8a 012e6e6
9f6cf15

@chrisndodge
Copy link
Contributor

@bradenmacdonald any chance to write - within a reasonable level of effort - a quick automated test regarding the fix at 9f6cf15?

@chrisndodge
Copy link
Contributor

Other than my suggestion re: adding a unit test that would have caught the bug that was fixed at 9f6cf15, looks good to me.

Congratulations!

@e-kolpakov
Copy link
Contributor

@chrisndodge I'm writing autotest right now.

@antoviaque
Copy link
Contributor

@chrisndodge Thank you for having a look so quickly! You even arrived before @e-kolpakov had had time to add the test : ) It's now done, and I added it to the current PR: 720834c

@chrisndodge
Copy link
Contributor

Thanks for the new acceptance test which simulates that previous error condition.

LGTM. +1

@cahrens
Copy link

cahrens commented Jan 13, 2015

👍 I have a requested clarification on the test case, but otherwise LGTM. Congrats on finishing up all this work!

@e-kolpakov
Copy link
Contributor

@cahrens yes the text is there only to assert on it later. The approach is reused from other test a couple of lines above.

@bradenmacdonald I'm about logging off for today, so could you please polish the tests if needed?

@bradenmacdonald
Copy link
Contributor Author

@cahrens I have simplified the bok choy test as you requested: bce8ee69#diff-1 . I also squashed the various commits for this last bugfix. Hope that's good? I'd like to merge this once the build is green.

@cahrens
Copy link

cahrens commented Jan 13, 2015

Looks good! 👍

bradenmacdonald added a commit that referenced this pull request Jan 13, 2015
@bradenmacdonald bradenmacdonald merged commit 6be35e0 into master Jan 13, 2015
@bradenmacdonald
Copy link
Contributor Author

Content Libraries / Problem Banks MVP is now merged. Congratulations and thanks to everyone who contributed to it!

@chrisndodge
Copy link
Contributor

@bradenmacdonald congratulations and thanks for all the hard work!

I just realized that neither @cahrens nor I asked you to squash your commits before merging at the end of the review, which we typically do. Typically, we prefer a single commit before merging.

I'm not sure if I'd suggest reverting this and squashing and re-applying. @cahrens @smagoun what do you think?

@bradenmacdonald
Copy link
Contributor Author

@chrisndodge Ah! Sorry :-/ I didn't realize that was the case. (I personally find that having more of the commit history helps future developers with understanding the code changes that were made in this PR.) I can definitely do that if you'd like, but it will involve resetting master back and thus a force push to master.

But anyhow just let me know - I'm happy to squash this whole thing down to a single commit, re-run the build, and re-merge if you'd like me to.

@chrisndodge
Copy link
Contributor

Yea, reverting, squashing, re-merging might be more hassle than it is worth at this point in time. I wouldn't do anything right now, unless anyone else has a major opinion on this.

Going forward, we'll try to remember to remind all contributors to squash commits after the review is done.

@cahrens
Copy link

cahrens commented Jan 13, 2015

Yes, @andy-armstrong is now struggling through some rebasing. I'm sorry I forgot to check if commits were squashed.

Note that we don't necessarily require a single commit per PR, but commits should be logical chunks of work (for instance, a commit per PR merged into the feature branch is fine, if the commits represent stories). Commits like "pylint fixes" or "Addressed nits" aren't helpful and increase the merge conflicts.

@bradenmacdonald
Copy link
Contributor Author

Ok, let me know if any action is required from me. I agree that ~one commit per PR merged to this branch would be nice.

@cahrens
Copy link

cahrens commented Jan 13, 2015

It would be nice if ENABLE_CONTENT_LIBRARIES existed in the common envs.py file (with default value of False) so it was easier to turn on in sandboxes. I think @andy-armstrong is going to do that as part of cleaning up the conflicts we are having with setting visibility on an xblock on the container page.

@bradenmacdonald and @marcotuts does this look right to you when there are no content libraries?

image

@cahrens
Copy link

cahrens commented Jan 13, 2015

@bradenmacdonald and @marcotuts Note also that error messaging should be updated. It isn't possible to have both a library and a course with the same org and course number.

image

@e-kolpakov
Copy link
Contributor

@jzoldak it appears build triggers requires some sort of special permission. At least it doesn't work for me: "e-kolpakov is missing the Task/Build permission", despite I've granted all permissions it asked for. Is that supposed to be used for core devs only, or access is granted on-demand?

@jzoldak
Copy link
Contributor

jzoldak commented Jan 20, 2015

@e-kolpakov Requirements are that you need to be a member of the edx org on GitHub and you need to make that membership public.
@antoviaque can you help him with this?

@antoviaque
Copy link
Contributor

@jzoldak Thanks for the info - yup, I'll see if we can get Eugeny in that group, perfect.

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.

None yet

10 participants