-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backend should return dataElements in timestamp order #2226
Comments
This has been implemented as a proposal in branch The functionality has been verified in @SandGrainOne Do you see any immediate concerns with the approach taken by the two commits linked above? I can't imagine this resulting in a breaking change, since we're going from pseudo-random to ordered results, but I also don't have the whole perspective on situations like these. As for unit testing in |
Running Storage and the integration tests require a pre configured PostgreSQL database. I can understand it's a bit of a hassle. The change looks safe enough. Nothing I know of is sensitive to the order of data elements. |
@SandGrainOne What needs to be configured? Does anything need to be populated in the DB for the tests to run? Is there a setup guide somewhere? |
@HauklandJ Start with the readme: https://github.com/Altinn/altinn-storage/#setting-up-postgresql The setup guide we have is for Events, but the pattern is identical. All use of |
InstancesController.Get
returns an instance object containing adata
property. This property is an array of objects, in seemingly random order.To be fair, the order is consistent between reloads, but otherwise completely useless.
We wish for the order of this list to be based on the timestamp when the associated dataElement was created, in ascending order.
The text was updated successfully, but these errors were encountered: