-
Notifications
You must be signed in to change notification settings - Fork 2
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
Integrated Wagtail to support course/program detail pages #264
Conversation
@asadiqbal08 @ahmed-arbisoft This PR would affect at least 2 of your open PRs (#221 and #237). This PR is not 100% complete (I still want to add some query optimization and clean up some deprecated code) but it would be a good idea for you to look at it now. Right now I'm thinking that the best approach would be to merge those 2 PRs you have open, then reimplement both of them in this PR using this same pattern. Any future PRs involving a new program/course detail page subsection should be based on this branch. Let me know what you think EDIT: Actually it looks like 3 PRs you have open (add #192 to the list) |
@asadiqbal08 Sounds good. Please just make sure that if you work on any new product page PRs, you base your work on this branch |
@ahmed-arbisoft FYI over it . |
@asadiqbal08 That home page should be served from Wagtail, yes. Since that isn't implemented yet, I think I'm going to open a small PR to have the root route ( |
@gsidebo during development of the home page I figured out that we should let wagtail handle the routing at least for the course/program detail pages. In order for that to work we don't really need to anything apart from using the wagtail We are already incrementally changing our partials to use the CoursePage/ProgramPage as the source of truth rather than their corresponding Course/Program. I did a simple PoC of this and was able to render the |
... @ahmed-arbisoft I hope I'm wrong, but I think you're describing exactly what this PR already does |
@gsidebo Nope, we're both correct 😆 just saying we don't need to remove the To clarify, I'd rather have This is just an example of the change. Also, I wanted to let you know that if you could look into the recent PRs we are already doing most of these |
@ahmed-arbisoft In this PR the |
Okay, that makes sense
…On Sat, 25 May 2019, 12:27 am Gavin Sidebottom, ***@***.***> wrote:
@ahmed-arbisoft <https://github.com/ahmed-arbisoft> In this PR the
product_page.html template is simply replaced by the detail_page.html
template. That template serves the same purpose
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#264?email_source=notifications&email_token=AKZ74EWWIBXLHPIS7GW4WBTPXA6SPA5CNFSM4HMRMQM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGL3WY#issuecomment-495762907>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKZ74ETY4S4LL3JC4Y3ZPR3PXA6SPANCNFSM4HMRMQMQ>
.
--
The content of this email and attachment(s) are confidential and intended
solely for the recipient(s) specified in the message. If you received this
email by error, please alert the sender by replying to this email and
follow with its deletion, so that we can ensure such an error does not
occur in future. If you are not the intended recipient, you are strictly
prohibited to use, copy, disseminate or store this email or its
attachment(s).
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to move the tree manipulation (adding/removing pages) outside a migration and into a management command. I tried the same earlier and faced a ton of issues, it's a running problem with Wagtail as of right now. Reference: wagtail/wagtail#742
Closing in favor of #395 |
Pre-Flight checklist
What are the relevant tickets?
Closes #155
What's this PR do?
Properly integrates Wagtail so that Wagtail serves course/program detail pages
How should this be manually tested?
Any background context you want to provide?
cms/templates/detail_page.html
and the partial templates in the same directory are basically copies of the same templates that were deleted in thecourses
appCourse
s/Program
s from the catalog page that don't have an associated Wagtail page. This is something I discussed in person with Ferdi and it makes sense as a requirementScreenshots (if appropriate)