Remove obsolete OpenILS::Utils::Editor

Bug #1187035 reported by Jeff Godin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Wishlist
Unassigned

Bug Description

From my reading/understanding, OpenILS::Utils::CStoreEditor has replaced OpenILS::Utils::Editor, and OpenILS::Utils::Editor can be removed with a small amount of effort.

Some libraries still include OpenILS::Utils::Editor, or a mix of that and OpenILS::Utils::CStoreEditor. The majority of the code has moved to OpenILS::Utils::CStoreEditor.

A lightly-tested experiment to remove OpenILS::Utils::Editor is available in the working repository, and I'd be interested in input from any others whose experience goes back farther than mine.

Revision history for this message
Jeff Godin (jgodin) wrote :
Revision history for this message
Bill Erickson (berick) wrote :

+1 to removing ::Editor. Since open-ils.storage should not be used for basic CRUD operations, it no longer serves any purpose.

Jeff Godin (jgodin)
Changed in evergreen:
assignee: nobody → Jeff Godin (jgodin)
Revision history for this message
Bill Erickson (berick) wrote :

I've pushed another branch with sign-off to Jeff's commit plus a follow-up commit with a few minor repairs.

working/collab/berick/lp1187035-remove-obsolete-editor

-----
From the commit:

    * Address 2 places where we were calling $e->request with a CStoreEditor for a storage method. Since CStoreEditor assumes all calls go to open-ils.cstore, these would have failed.

    * While we're in a cleaning mood, remove some obsolete commented code.
-------

I tested all of the affected API calls w/ both commits installed and found no failures.

Ben Shum (bshum)
Changed in evergreen:
status: New → In Progress
Jeff Godin (jgodin)
Changed in evergreen:
milestone: none → 2.6.0-beta1
Revision history for this message
Jeff Godin (jgodin) wrote :

Rebased to current master and pushed a new working branch with signoff on Bill's commit. Added one final commit to remove Editor.pm from the MANIFEST file, tested. Looks good.

Adding pullrequest tag for updated branch user/jeff/remove_obsolete_editor_rebase located at:
http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/jeff/remove_obsolete_editor_rebase

Changed in evergreen:
status: In Progress → New
assignee: Jeff Godin (jgodin) → nobody
tags: added: pullrequest
Bill Erickson (berick)
Changed in evergreen:
assignee: nobody → Bill Erickson (erickson-esilibrary)
status: New → In Progress
Revision history for this message
Bill Erickson (berick) wrote :

make livecheck FTW!

Found a few lingering issues in ClosedDates.pm where the new CStoreEditor was not managing transactions correctly. Pushed fixes for those, plus a live test for closed date updating. (Create and delete are already handled in the test).

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/collab/berick/lp1187035-remove-obsolete-editor

Revision history for this message
Jeff Godin (jgodin) wrote :

Tested and signed off on Part 4, pushed to master. Thanks Bill!

Changed in evergreen:
status: In Progress → Fix Committed
assignee: Bill Erickson (erickson-esilibrary) → nobody
tags: removed: pullrequest
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.