Closed Bug 688244 Opened 13 years ago Closed 13 years ago

kuma: section edits - handle single-section POSTs

Categories

(developer.mozilla.org Graveyard :: Wiki pages, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: groovecoder, Assigned: lorchard)

References

Details

(Whiteboard: u=contributor c=wiki p=3)

* Grab the section ID from the hidden input element in the form POST.

* Use pyquery to update the single section with the POSTed content.
Summary: kuma: section edits - backend → kuma: section edits - handle single-section POSTs
Whiteboard: u=editor c=wiki p= → u=editor c=wiki p=3
Target Milestone: 1.4 → 1.5
Whiteboard: u=editor c=wiki p=3 → u=contributor c=wiki p=3
Assignee: nobody → lorchard
Commits pushed to https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/e2aa1f4a5c88c33cd4b5df3714cc3245eece83d7
bug 688244: Section editing on client and server

* Inject section editing links on view when user can edit

* Server-side implementation of section editing

* Client-side implementation of inline AJAX-powered section editing

* Document view can be filtered by section, serve raw source without
  template wrapping

* Edit document post with a ?section parameter will load form with just
  content for a single section, save content just to a single section

* Section editing links can be enabled or disabled with a parameter

* Title and slug editing disallowed during section editing, since it
  caused some issues and should really be done in full view of doc

* Watch and Edit links on document view shown only for capable users

* Bugfixes for cases where a large number of revisions ran into problems
  with memcached errors

* Tweaks to CKEditor mdn-buttons plugin to support inline editor

* Tweaks to allowed tags and attributes in bleach handling

* Tweaks to CKEditor HTML writer for cleaner HTML with fewer line breaks
  within headers and paragraphs

* Initial CSS tweaks for editor and CKEditor layout

* Random PEP8 fixes & tweaks

https://github.com/mozilla/kuma/commit/7d944afca97da0e3540a1b3a2d605dd6628ef957
bug 688244: fix for a broken wiki test

https://github.com/mozilla/kuma/commit/87d96258cf96bb1d8441aa4d96cf13614f805c3d
Bug 688244: Tests for section editing & tweaks

- Test section editing link injection

- Test form behavior with single section editing

- Test section editing related resource parameters -
  eg. ?raw, ?section, ?edit_links parameters on document
  view

- normalize_html() shared between tests

- More comments, tweaks per PR comments

- Bugfix - "?" disallowed in slugs, since that's reserved for query
  params

https://github.com/mozilla/kuma/commit/fc3f05752da3ca56226a38987e57b66c5bd4e1e6
Merge pull request #41 from lmorchard/688244-section-posts

bug 688244: Section editing on client and server
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Version: Kuma → unspecified
Component: Website → Landing pages
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.