-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all link types onto a single edition type
This removes the hardcoding and duplication amongst the varieties of Edition we have currently implemented. These changes will make it easier to implement new document types, as the fields and links have already been defined. Since all links are now returned as the Edition type, any field can be selected from them, not just those that have been defined in the link type. This makes queries much more flexible, as the frontend application can request any fields it likes from the links, without any changes being made in Publishing API. The Minister Index Type is being retained, since that contains custom optimisations specific to the links on that page. Note 1: this requires selection of all fields within `details` for any edition. Previously this was only required when `details` was nested within a link. Note 2: role appointment reverse links will be added in a separate commit, as they require some logic.
- Loading branch information
Showing
12 changed files
with
181 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.