My feature has a view. That view has a Master and several displays. All of the displays override the Master specification for sort. If I recreate the feature, then revert the view to the feature, the display overrides of the sort are lost.

I'll mention, in case it's relevant, that the field sorted in the Master does not have a relationship but the same field sorted in all the displays does have a relationship, a different relationship per display.

Steps:

1. Create the view (happened a couple of years ago)
2. Create the feature (happened a couple of years ago)
3. Somewhere along the way, likely still a couple of years ago, I noticed that the blog posts were sorting oldest first and fixed the view to sort them newest first. I did not associate the problem with the Features module at the time.
4. Upgraded from Features 2.6 to Features 2.9 this week
5. Recreated my Feature just to make sure it was up to date
6. Exported the recreated feature. - see "2706749-movingsfblog.views_default.inc.txt" - only difference a diff revealed in my feature was in the punctuation in the comments
7. Brought the feature code into my test system
8. At this point, page produced Related Blog Posts newest first - see "2706749-J-Church _ SFMTA - before revert_files.zip" - all linked blog posts are from 2016
9. Went to /admin/structure/features/movingsfblog
10. Noticed Views showed Overridden, checked Views, clicked Revert button

Actual result: At this point, page produced Related Blog Posts oldest first - see "2706749-J-Church _ SFMTA - after revert_files.zip" - all related blog posts are from 2014

Expected result: At this point, page produced Related Blog Posts newest first - see already-mentioned "2706749-J-Church _ SFMTA - before revert_files.zip" - all related blog posts are from 2016

11. Restored to step 8 from backup
12. Exported view - see "2706749-view export before revert.txt"
13. Went to /admin/structure/features/[my feature]
14. Checked Views, clicked Revert button
15. Exported view - see "2706749-view export after revert.txt"

A diff of "2706749-view export before revert.txt" vs. "2706749-view export after revert.txt" reveals that all of the view display sorts overriding the master sort have been stripped out of the Features-reverted view.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Charles Belov created an issue. See original summary.

Charles Belov’s picture

Charles Belov’s picture

Title: Reverting view loses individual display override of Master in sort » Reverting view loses individual display override of Master sort
Charles Belov’s picture

Issue summary: View changes
Charles Belov’s picture

Issue summary: View changes