Problem/Motivation

The fields in the resourceFields key of the JSON:API resource configuration is currently not deterministically sorted which leads to unwanted changes when updating it.

Steps to reproduce

-

Proposed resolution

Sort the config deterministically using the orderby feature of config sequences. Note that this does not influence the order of the fields in the user interface in any way.

Remaining tasks

-

User interface changes

-

API changes

-

Data model changes

The resourceFields key of JSON:API resource configuration is now always ordered alphabetically by key.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

tstoeckler created an issue. See original summary.

tstoeckler’s picture

Status: Active » Needs review
bbrala’s picture

Status: Needs review » Fixed

Good idea! Thanks

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • bbrala committed c9345677 on 8.x-3.x
    task: #3575769 Order resource fields deterministically
    
    By: tstoeckler...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.