Skip to content

Add a Studio view and template to host the Programs authoring app - #10714

Merged
rlucioni merged 1 commit into
masterfrom
renzo/programs-authoring-page
Dec 3, 2015
Merged

Add a Studio view and template to host the Programs authoring app#10714
rlucioni merged 1 commit into
masterfrom
renzo/programs-authoring-page

Conversation

@rlucioni

Copy link
Copy Markdown
Contributor

@rlucioni
rlucioni force-pushed the renzo/programs-authoring-page branch 2 times, most recently from 5ce4163 to e2a618d Compare November 30, 2015 17:33
@rlucioni

Copy link
Copy Markdown
Contributor Author

This is still a WIP, but here's a proof of concept:

That page is served at http://localhost:8001/program/1. There are a handful of issues that need ironing out (e.g., styling, run keys and dates don't appear, Programs API must allow CORS).

@rlucioni
rlucioni force-pushed the renzo/programs-authoring-page branch from e2a618d to 15c1f7b Compare November 30, 2015 22:08
@rlucioni

rlucioni commented Dec 1, 2015

Copy link
Copy Markdown
Contributor Author

@cahrens and @explorerleslie, although this PR represents work that's still in progress, the finished version will benefit from a T&L review. It's related to https://github.com/edx/edx-platform/pull/10701, where @andy-armstrong was very helpful.

@cahrens

cahrens commented Dec 1, 2015

Copy link
Copy Markdown

Thanks for the heads-up @rlucioni. I created https://openedx.atlassian.net/browse/TNL-3854 for the TNL review. Do you have an estimate of when this will be ready?

Note that if you are adding a new menu item, there is some CSS you have to add to make the menu item the correct color on hover. See #9029.

@rlucioni

rlucioni commented Dec 1, 2015

Copy link
Copy Markdown
Contributor Author

@cahrens this will most likely be ready for review tomorrow morning.

@cahrens

cahrens commented Dec 1, 2015

Copy link
Copy Markdown

Before TNL reviews, we would like a full review by a member of your team (and tests and all should be present). We are starting a new sprint on Thursday, so we should be able to include the review in our next sprint. What is your deadline?

@rlucioni
rlucioni force-pushed the renzo/programs-authoring-page branch 3 times, most recently from c86e4aa to 0e39959 Compare December 1, 2015 18:58
@rlucioni rlucioni changed the title WIP: Add a Studio view and template to host the Programs authoring app Add a Studio view and template to host the Programs authoring app Dec 1, 2015
@rlucioni

rlucioni commented Dec 1, 2015

Copy link
Copy Markdown
Contributor Author

@jimabramson this is ready for review. Could you please take a look when you have a moment?

@rlucioni

rlucioni commented Dec 1, 2015

Copy link
Copy Markdown
Contributor Author

@peter-fogg could you please be the second reviewer on this?

@rlucioni
rlucioni force-pushed the renzo/programs-authoring-page branch from 0e39959 to d6f3a35 Compare December 1, 2015 22:31
Comment thread cms/urls.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.

I don't think you want the * here -- leaving the trailing slash with no $ will match the URLs you want.

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.

Nice call @peter-fogg, updated.

@peter-fogg

Copy link
Copy Markdown
Contributor

👍 LGTM, though two Bok Choy tests are failing. Could it be an issue with ProgramsApiConfig not being enabled in Bok Choy?

@rlucioni

rlucioni commented Dec 2, 2015

Copy link
Copy Markdown
Contributor Author

@peter-fogg I've resolved the bokchoy failures. They were due to changes I made to the Studio index page template not being reflected by the bokchoy tests.

@rlucioni
rlucioni force-pushed the renzo/programs-authoring-page branch from d6f3a35 to 529e3b7 Compare December 2, 2015 22:38
Comment thread cms/templates/index.html Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

minor: would it be better to reverse the url in the view and pass it with template context?

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.

Yes, that's cleaner and consistent with what I'm doing in the ProgramAuthoringView. Updated.

@jimabramson

Copy link
Copy Markdown

this looks good to me, with one nitpick that is not a blocker on my end. 👍

The Programs authoring app is a Backbone SPA maintained in a separate repository. The app handles its own routing and provides a UI which can be used to create and publish new Programs (e.g, XSeries). ECOM-2598.
@rlucioni
rlucioni force-pushed the renzo/programs-authoring-page branch from 529e3b7 to e2833d8 Compare December 3, 2015 15:47
@peter-fogg

Copy link
Copy Markdown
Contributor

👍

rlucioni pushed a commit that referenced this pull request Dec 3, 2015
Add a Studio view and template to host the Programs authoring app
@rlucioni
rlucioni merged commit 1cee9a0 into master Dec 3, 2015
@rlucioni
rlucioni deleted the renzo/programs-authoring-page branch December 3, 2015 17:12
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.

4 participants