Page MenuHomeIn-Portal Phabricator

INP-1520 - Honor manually set owner of categories/category items created from CLI
ClosedPublic

Authored by alex on Nov 18 2015, 2:34 PM.

Details

Test Plan

Part 1

  1. go to User ManagementUsers section
  2. create a user
  3. go to Front-End
  4. login using user created before
  5. go to category the News category using top menu
  6. click on Suggest Article link in the sidebar
  7. create an article
  8. go Admin Console
  9. confirm, that user logged-in on Front-End is set as owner of that article

Part 2

  1. go to Admin Console
  2. go to Website & ContentStructure & Data section
  3. go News category
  4. switch to Articles tab
  5. open new article creation form by clicking on New Article toolbar button
  6. on the article creation form:
    • clear the owner field
    • enter article title
    • enter article body
    • press Save button on toolbar
  7. confirm, that article owner is set to the user, that is logged-in into Admin Console

Part 3

  1. go to Admin Console
  2. create & configure category for RSS import according to plan from D173
  3. in the ArticlesEventHandler::parseRssFeed and ArticlesEventHandler::parseAtomFeed methods change $object->SetDBField('CreatedById', USER_ROOT); line into $object->SetDBField('CreatedById', USER_GUEST); line
  4. run the php tools/cron.php (see test plan from D173)
  5. confirm, that created from CRON articles are owned by Guest user (before the fix they were owned by root user anyway)

Diff Detail

Repository
rINP In-Portal
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

alex updated this revision to Diff 421.Nov 18 2015, 2:34 PM
alex retitled this revision from to INP-1520 - Honor manually set owner of categories/category items created from CLI.
alex updated this object.
alex edited the test plan for this revision. (Show Details)
alex added 1 JIRA issue(s): INP-1520.
alex edited the test plan for this revision. (Show Details)Nov 18 2015, 2:35 PM
alex edited edge metadata.
glebs accepted this revision.Dec 7 2015, 2:13 AM
glebs edited edge metadata.
This revision is now accepted and ready to land.Dec 7 2015, 2:13 AM
This revision was automatically updated to reflect the committed changes.