marc_export - sort results

Bug #2029256 reported by Josh Stompro
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Committed
Wishlist
Unassigned

Bug Description

The marc_export support script currently doesn't try to sort results when it builds a query to produce results.

I think it would be useful to add in a simple sort by bib or authority ID to put the results in a consistent order.

I've been comparing the results of different exports and it is just convenient to be able to compare the already sorted results list with marcdump. Or to be able to diff two xml exports to see the first few differences.

Previously I've been supplying the list of bib IDs to the export script in the order I want, but now we need to make use of the --items and --descendants flags now.

Josh

Revision history for this message
Josh Stompro (u-launchpad-stompro-org) wrote :
tags: added: pullrequest
Revision history for this message
Jason Stephenson (jstephenson) wrote :

I agree that exported records should be sorted by id. I don't think it should even be optional.

Changed in evergreen:
status: New → Confirmed
importance: Undecided → Wishlist
milestone: none → 3.12-beta
assignee: nobody → Jason Stephenson (jstephenson)
Revision history for this message
Jason Stephenson (jstephenson) wrote :

I have tested this with a couple dumps of full and partial records from our database, both with and without the patch applied.

I think getting the records our in database id order is better than the current mess of whatever order the records pulled from the database.

I signed off and pushed it to main for the next release.

Thanks, Josh!

Changed in evergreen:
status: Confirmed → Fix Committed
assignee: Jason Stephenson (jstephenson) → nobody
tags: added: signedoff
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.