Skip to content

Conversation

@javiersvg
Copy link

@javiersvg javiersvg commented Jan 14, 2017

  • You have read the Spring Data contribution guidelines.
  • There is a ticket in the bug tracker for the project in our JIRA.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).
odrotbohm and others added 30 commits November 23, 2016 13:52
Instead of replacing the HAL Browser's browser.html, take the existing one and alter it inside the build job. This ensures that future updates don't break so horribly. Related to mikekelly/hal-browser#89 which will provide an explicit token to match, instead of using the closing `</body>` tag.
Minor formatting in pom.xml of the HAL Browser module.
Fix typo "returnBodyOnupdate" -> "returnBodyOnUpdate". Original pull request: #242.
The serializer for projection resources now also invokes ResourceProcessor instances registered for that particular projection. Original pull request: #238.
Original pull request: #238.
We now don't prematurely drop fields that don't have a persistent property exposed in DomainObjectReader. Doing so dropped values for transient fields as the latter are not exposed as persistent property in the first place. We still skip any nested merging though. Original pull request: #240.
Moved the newly added test case to the end of the list. Formatting. Original pull request: #240.
We now support nested Sort properties considering Jackson mapping. Sort translation is optional and skipped if the domain class is not resolvable. Translation in the scope of a domain class maps property paths to apply sorting using embedded properties. A sort string `nested-name` resolves to a property path `anotherWrap.embedded.name`. class Aggregate {	@JsonUnwrapped	public UnwrapEmbedded anotherWrap; } class UnwrapEmbedded {	@JsonUnwrapped(prefix = "nested-")	public Embedded embedded; } class Embedded {	public String name; } Original pull request: #232.
Minor code reorganizations. Eagerly create SortTranslator to avoid repeated instantiation. Original pull request: #232.
Formatting and author. Original pull request: #241.
Seems the change for DATAREST-938 has also fixed this one. Added a test case similar to what was provided in the example for the original ticket.
…val for PUT requests. DomainObjectMerger now properly adds and removes elements to and from collections. Original pull request: #245.
Some tiny refactorings in DomainObjectReader. We're now using TypeInformation instead of Class to preserve more generics information when it comes to deeper nesting. Moved some code around in the unit tests. Original pull request: #245.
Fixed broken equals(…) in ProjectionDefinition. Switched to iterating over Map's entry set instead of the keys. Made UriAwareHttpServletRequest static.
…nd consider ETag and Last-Modified headers. We now interpret If-None-Match and If-Modified-Since headers on requests to resources backed by query methods returning a single instance only. This allows clients to optimize GET requests to those resources to save bandwidth.
…istently. Adapted the return type of setter methods in RepositoryRestConfiguration to consistently return the current instance to allow call chaining.
Skip all merge logic if the source value is null. That frees all nested logic from handling with that case and us falling back to plain Jackson reading. The array handling now also opts out if the source value is not a collection or array in the first place as it means we need to let Jackson override the value with the collection given to be deserialized. Original pull request: #246.
We now issue the user registration of Jackson modules before any of the default modules Spring Data registers get applied. Testing module registration seems to be rather difficult as Jackson doesn't actually expose API to do so. An issue [0] was filed for Jackson to improve on this. [0] FasterXML/jackson-databind#1478
@pivotal-issuemaster
Copy link

@javiersvg Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@javiersvg Thank you for signing the Contributor License Agreement!

* Links have to be set via a PUT operation with the proper media type.
*
* @author Greg Turnquist
* @author Greg Turnquist, Javier Mino
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd make a new line.

};

var cookie = document.cookie.match('(^|;)\\s*' + 'XSRF-TOKEN' + '\\s*=\\s*([^;]+)');
if(cookie){
Copy link
Contributor

@gregturn gregturn Jan 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd put the space between if, (cookie), and { to be consistent with the rest of the code.

@gregturn
Copy link
Contributor

@javiersvg What are the odds you could submit a small github repo containing a demo of this issue/solution for me to verify against?

@javiersvg
Copy link
Author

I will submit one with the issue and then try to work it in a way that we can apply the solution in it.

@javiersvg
Copy link
Author

javiersvg commented Feb 25, 2017

This repository shows an example of this issue:
https://github.com/javiersvg/hal-browser-zuul-issue-demo

This repository has a branch named DATAREST-980 branch with the proposed solution applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

10 participants