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

ahmed-belal/mitxPro 310 - Convert Sections to Generic #311

Merged
merged 1 commit into from May 21, 2019

Conversation

ahmed-arbisoft
Copy link
Contributor

Pre-Flight checklist

What are the relevant tickets?

#310

What's this PR do?

Converts ForTeamsPage, LearningTechniquesPage, CoursesInProgramPage and UserTestimonialPage to generic data driven structure such that these subpages may be included anywhere else in the website, e.g. as a child of the Home Page and still work.

How should this be manually tested?

(Required)

Where should the reviewer start?

(Optional)

Any background context you want to provide?

The home page design uses some of the sections already developed for the Course Page. However, these sections were tightly coupled with the Course and CoursePage object and also were named as such. This PR Removes that tight coupling and makes things more configurable from the wagtail cms admin.

@ahmed-arbisoft ahmed-arbisoft force-pushed the ahmedbelal/310-convert-sections-generic branch from ee40df5 to ca763ca Compare May 20, 2019 13:53
@odlbot odlbot temporarily deployed to xpro-ci-pr-311 May 20, 2019 13:53 Inactive
@asadiqbal08 asadiqbal08 changed the title Convert Sections to Generic ahmed-belal/mitxPro 310 - Convert Sections to Generic May 20, 2019
@ahmed-arbisoft ahmed-arbisoft force-pushed the ahmedbelal/310-convert-sections-generic branch from ca763ca to c202f16 Compare May 20, 2019 16:44
@codecov-io
Copy link

codecov-io commented May 20, 2019

Codecov Report

Merging #311 into master will decrease coverage by 0.12%.
The diff coverage is 64.7%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #311      +/-   ##
========================================
- Coverage   94.12%    94%   -0.13%     
========================================
  Files         160    160              
  Lines        5400   5442      +42     
  Branches      312    314       +2     
========================================
+ Hits         5083   5116      +33     
- Misses        261    269       +8     
- Partials       56     57       +1
Impacted Files Coverage Δ
courses/models.py 94.62% <55.55%> (-1.99%) ⬇️
cms/models.py 92.62% <75%> (-1.4%) ⬇️
static/js/lib/queries/auth.js 43.75% <0%> (-10.1%) ⬇️
mitxpro/views.py 100% <0%> (ø) ⬆️
...atic/js/components/forms/RegisterEmailForm_test.js 100% <0%> (ø) ⬆️
static/js/components/forms/RegisterEmailForm.js 92.3% <0%> (+4.8%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 08d7574...c202f16. Read the comment docs.

Copy link
Contributor

@asadiqbal08 asadiqbal08 left a comment

Choose a reason for hiding this comment

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

👍

@ahmed-arbisoft ahmed-arbisoft merged commit 86ea85e into master May 21, 2019
@ahmed-arbisoft ahmed-arbisoft deleted the ahmedbelal/310-convert-sections-generic branch July 10, 2019 12:37
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

4 participants