Skip to content

Ziafazal/add pre requisite course via milestones app - #6126

Merged
mattdrayer merged 1 commit into
masterfrom
ziafazal/add-pre-requisite-course-via-milestones-app
Jan 15, 2015
Merged

Ziafazal/add pre requisite course via milestones app#6126
mattdrayer merged 1 commit into
masterfrom
ziafazal/add-pre-requisite-course-via-milestones-app

Conversation

@ziafazal

@ziafazal ziafazal commented Dec 3, 2014

Copy link
Copy Markdown
Contributor

@mattdrayer added pre-requisite feature via milestones app. It would show a drop down for course authors to select from list available courses as a pre-requisite course in "Settings & Details" page. Inside lms it would show the appropriate messaging under side bar of course about page.

@mattdrayer

Copy link
Copy Markdown
Contributor

@marcotuts @smagoun, FYI

Comment thread cms/envs/common.py Outdated

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.

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.

@mattdrayer I'm not sure if aws.py is the right place for FEATURES. I can not see any FEATURES defined in aws.py

@ziafazal
ziafazal force-pushed the ziafazal/add-pre-requisite-course-via-milestones-app branch 2 times, most recently from 1c32731 to 2821bc4 Compare December 5, 2014 07:48
Comment thread lms/envs/common.py Outdated

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.

Is this supposed to be True? The comment says false.

Same with other setting.

@ziafazal
ziafazal force-pushed the ziafazal/add-pre-requisite-course-via-milestones-app branch 2 times, most recently from eea9c47 to f646873 Compare December 9, 2014 11:42

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.

I've been learning a bit more about bok choy -- the general approach is to locate these selector queries (either css or xpath) in the Page object, and then expose methods for the Test object to invoke.

So in this particular case we should move settings_detail.q() into SettingsPage, expose via a method (say, get_prerequisite_course_field), and then self.assertTrue(prerequisite_course_field.present) within test_page_has_prerequisite_field

@ziafazal
ziafazal force-pushed the ziafazal/add-pre-requisite-course-via-milestones-app branch 2 times, most recently from b964a40 to f890864 Compare December 12, 2014 11:35

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.

(NIT) could you change this to .tip (nested within .prerequisites)? we try to avoid element selectors in our SASS.

edit: I realized that you might be referring to the "Requirements" header here, and not the .tip message. It would still be great to use something like .course-details-header {} instead of p {} here.

@marcotuts

Copy link
Copy Markdown
Contributor

Also, as a quick note for reviewers it might be helpful to clarify that this is a PR to merge in soft-prerequisites (adds messaging to course about pages on openedX) but doesn't yet limit access to courseware. That hard gating/messaging will be added in a follow-up PR.

@marcotuts

Copy link
Copy Markdown
Contributor

@srpearce - Hi Sylvia. Would you mind reviewing the documentation/ui impact of this PR?

Here is a link to the impact to an example about page (Note- only openedX pages, not drupal pages) http://milestones.m.sandbox.edx.org/courses/edX/DemoX/Demo_Course/about

And here is a link to the Studio changes:
http://studio.milestones.m.sandbox.edx.org/settings/details/edX/DemoX/Demo_Course

@ziafazal
ziafazal force-pushed the ziafazal/add-pre-requisite-course-via-milestones-app branch from f890864 to 47d9e02 Compare December 15, 2014 09:17
@ziafazal

Copy link
Copy Markdown
Contributor Author

@marcotuts made UX changes as you suggested.

Comment thread lms/static/sass/base/_mixins.scss Outdated

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.

You should already have access to %cont-truncated via _mixins.scss in common, so this should work without the additional rule. If not, I would use the existing text-trunctated above it. thanks, and sorry for the confusion.

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.

_mixins.scss did not have %cont-truncated. Removed mine and using %text-trunctated instead.

@srpearce

Copy link
Copy Markdown
Contributor

@marcotuts Hey - was just about to get started with this but the sandbox links aren't working. Help?

@ziafazal
ziafazal force-pushed the ziafazal/add-pre-requisite-course-via-milestones-app branch from 47d9e02 to 0d94db5 Compare December 16, 2014 09:07
@mattdrayer

Copy link
Copy Markdown
Contributor

@asadiqbal08 is going to jump onto this PR and lend us a hand -- thanks!

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.

@marcotuts -- having a hard time determining where to locate this new block of code when rebasing on master -- can you take a look?

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.

@caesar2164 - Hi! Nov 4 you merged in a PR that removed the prerequisites section fro m the about pages, possibly because it wasn't used, but I wanted to confirm from you what this refactor/feature was focused on : edx@54b7a57

The team is hoping to add support for soft prerequisites (messaging on course about pages) through this PR, soon to be followed up by gated course prerequisites (which would expose messaging on the LMS dashboard and prevent course access until an author has completed prerequisites.

Could you describe your changes and any suggestions you have for the team on adding in prerequisites again? Thanks!

edit - merge time frame was wrong. updated.

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.

@marcotuts - I only removed styling that made prerequisites different than the rest of the items in the sidebar... I think you should connect this to the preexisting "prerequisites" conditional. See my other comment.

@mattdrayer
mattdrayer force-pushed the ziafazal/add-pre-requisite-course-via-milestones-app branch from 1fa2c2f to d8d1ae2 Compare December 17, 2014 19:40
@mattdrayer

Copy link
Copy Markdown
Contributor

FYI, I have rebased this PR onto the latest master revision -- let's see how the CI run goes

@mattdrayer

Copy link
Copy Markdown
Contributor

Okay, all tests are passing post-rebase -- @ziafazal @marcotuts @smagoun FYI

@chrisndodge

Copy link
Copy Markdown
Contributor

@cahrens I did a small tweek on @ziafazal behalf (renamed the new permission and added a few comments as to what is happening)

@cahrens

cahrens commented Jan 13, 2015

Copy link
Copy Markdown

@chrisndodge test failures.

@chrisndodge

Copy link
Copy Markdown
Contributor

@cahrens hrm... not sure what happened there. I ran the full suite of LMS tests locally, but apparently it didn't run them all (is there a side effect to using --fasttest?!?). It seemed like it did complete very quickly... :-)

Give this a chance to run through a Jenkins pass....

@cahrens

cahrens commented Jan 13, 2015

Copy link
Copy Markdown

Merge conflicts now. Content Libraries merged to master, so I can imagine a lot of rebasing going on.

@cahrens

cahrens commented Jan 13, 2015

Copy link
Copy Markdown

Did someone verify that the course catalog access is working properly?

@chrisndodge

Copy link
Copy Markdown
Contributor

@cahrens @ziafazal @bradenmacdonald

There's two merge conflicts, one of which is trivial.

However, there is a merge conflict (due to content libraries landing into master) on cms/djangoapps/contentstore/course.py which I don't feel confident to resolve myself since I'm not one of the authors.

@ziafazal can you try to resolve and tag @bradenmacdonald if you have any questions about the conflict resolution? Thanks

@ziafazal
ziafazal force-pushed the ziafazal/add-pre-requisite-course-via-milestones-app branch from 41fa38e to 2808539 Compare January 14, 2015 10:38
@ziafazal

Copy link
Copy Markdown
Contributor Author

@chrisndodge @cahrens @bradenmacdonald merged with master.

@andy-armstrong

Copy link
Copy Markdown
Contributor

@ziafazal What do you mean 'merged with master'? It doesn't look like this PR has been merged on GitHub. Also there are still quite a few PyLint and PEP8 violations that need to be fixed as they are breaking the build.

@andy-armstrong

Copy link
Copy Markdown
Contributor

@ziafazal I pulled the latest changes from master and I'm not seeing any of these commits there yet.

@andy-armstrong

Copy link
Copy Markdown
Contributor

@ziafazal In case you're not familiar with the Jenkins output, this console log shows the PEP8/PyLint failures:

https://jenkins.testeng.edx.org/job/edx-all-tests-auto-pr/21726/SHARD=1,TEST_SUITE=quality/console

@ziafazal

Copy link
Copy Markdown
Contributor Author

@andy-armstrong sorry I should have said "Rebased with master" and resolved conflicts. Let me fix the quality errors.

@cahrens

cahrens commented Jan 14, 2015

Copy link
Copy Markdown

There is a bok choy failure in a test related to this PR.

@mattdrayer

Copy link
Copy Markdown
Contributor

Yes, I'm trying to get a hand from the testeng folks on this error -- it
has something to do with the way the test database is set up during the bok
choy run -- the milestones test requires some seed data to be present in
order to succeed.

On Wed, Jan 14, 2015 at 10:12 AM, Christina Roberts <
notifications@github.com> wrote:

There is a bok choy failure in a test related to this PR.


Reply to this email directly or view it on GitHub
https://github.com/edx/edx-platform/pull/6126#issuecomment-69930020.

Matthew Drayer
Solutions Architect
edX | MIT
mattdrayer@edx.org

@cahrens

cahrens commented Jan 14, 2015

Copy link
Copy Markdown

👍 after the following:

  1. Test for course catalog working
  2. Bok choy test passing
  3. Squash of commits into 1 or relatively small number of logical commits

@mattdrayer
mattdrayer force-pushed the ziafazal/add-pre-requisite-course-via-milestones-app branch 7 times, most recently from 242a8df to 6733d04 Compare January 15, 2015 19:03
@mattdrayer
mattdrayer force-pushed the ziafazal/add-pre-requisite-course-via-milestones-app branch from 6733d04 to ca3d84a Compare January 15, 2015 20:17
@mattdrayer

Copy link
Copy Markdown
Contributor

All validation suites passed, merging feature

mattdrayer added a commit that referenced this pull request Jan 15, 2015
…ia-milestones-app

Ziafazal/add pre requisite course via milestones app
@mattdrayer
mattdrayer merged commit 27fee62 into master Jan 15, 2015
@chrisndodge
chrisndodge deleted the ziafazal/add-pre-requisite-course-via-milestones-app branch June 23, 2015 13:27
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.

10 participants