Skip to content

Delete standalone Subsection edit page - #4540

Merged
tymofij merged 1 commit into
bulk-publishingfrom
tim/delete-all-the-subsections
Aug 1, 2014
Merged

Delete standalone Subsection edit page#4540
tymofij merged 1 commit into
bulk-publishingfrom
tim/delete-all-the-subsections

Conversation

@tymofij

@tymofij tymofij commented Jul 24, 2014

Copy link
Copy Markdown
Contributor

https://openedx.atlassian.net/browse/STUD-1845

  • User should not be able to access the Subsection page from anywhere in Studio.
  • Mini-outline should no longer link to the Subsection page.
  • Breadcrumb should not link to the Subsection page.
  • Click on the subsection name on the outline page to edit subsection name.
  • Update tests, delete all the code.

Technical details:

  • Remove overview.js and overview_spec.coffee
  • Remove base.js (or at least as much of it as possible)
  • The Lettuce tests should already be gone, but double check
  • There were no Bok Choy tests

Implementation question:

All inplace edits were changed to mode "click the text to start editing", as I did not observe this behavior in bulk-publishing branch. Tests pass, but I would like to hear your word on it.

@auraz @polesye please take a look

Comment thread cms/static/js/base.js 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.

$('a[rel="external"]').attr({
  'title': gettext('This link will open in a new browser window/tab')),
  'target': '_blank'
});

@polesye

polesye commented Jul 28, 2014

Copy link
Copy Markdown
Contributor

@tymofij Do we need to remove styles in this PR?

@tymofij

tymofij commented Jul 28, 2014

Copy link
Copy Markdown
Contributor Author

@cahrens, @frrrances and @andy-armstrong please take a look.

@cahrens

cahrens commented Jul 28, 2014

Copy link
Copy Markdown

@frrrances and @explorerleslie, should the subsection be clickable on the unit location sidebar (I imagine it taking you to the outline page, scrolling to the subsection)? Same question for the breadcrumb on the unit page.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'm wondering if this should be clickable (going to the outline page).

@cahrens

cahrens commented Jul 28, 2014

Copy link
Copy Markdown

Love, love, love all the deleted code. Of course, I can't say if MORE code should have been deleted (well, actually there is one thing I know about-- see the first change in https://github.com/edx/edx-platform/pull/4550).

Had some questions about expected behavior and a few clarifying questions.

Also wondering what CSS can be removed with this PR.

@polesye

polesye commented Jul 29, 2014

Copy link
Copy Markdown
Contributor

Do we need these styles ?

@cahrens

cahrens commented Jul 29, 2014

Copy link
Copy Markdown

BTW, Andy's branch (#4549) has the linking of subsection to outline page (scrolling to the correct location). So you don't need to worry about it in this PR.

@tymofij

tymofij commented Jul 29, 2014

Copy link
Copy Markdown
Contributor Author

@cahrens Andy's branch (#4549) has the linking of subsection to outline page

Also his branch has correct subsection linked in the breadcrumb in the same manner. Should I drop "unclickable subsection name in breadcrumb" too?

@tymofij Yes (Christina)

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.

Please remove unused after deletion modules: ModuleStoreEnum, Scope, CourseGradingModel.

@tymofij

tymofij commented Jul 30, 2014

Copy link
Copy Markdown
Contributor Author

Comments were addressed, the PR rebased and ready for final review.

Comment thread cms/static/js/base.js 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.

Can these 2 lines (and related) code be deleted (deleteUnit, createNewUnit). I can't think of anything that would be using them.

@cahrens

cahrens commented Jul 30, 2014

Copy link
Copy Markdown

We intended that units.html be deleted. I see it is still referred to in container.html, but I believe that reference can be removed.

units.html used to be used for both the subsection page and for the unit location sidebar on the container page. That sidebar has been rewritten and has its own templates now.

Comment thread cms/static/js/base.js

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

TriggerChangeEventOnEnter is now unused and can be removed.

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.

@cahrens TriggerChangeEventOnEnter is now unused and can be removed.

removed, as well as things related to units.html

@cahrens

cahrens commented Aug 1, 2014

Copy link
Copy Markdown

👍 Looks good to merge (test failures all seem unrelated)

tymofij added a commit that referenced this pull request Aug 1, 2014
Delete standalone Subsection edit page
@tymofij
tymofij merged commit 4bc984a into bulk-publishing Aug 1, 2014
@tymofij
tymofij deleted the tim/delete-all-the-subsections branch October 7, 2014 12:23
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.

5 participants