Skip to content

Commit 10509bc

Browse files
Merge pull request #7427 from carlobeltrame/fix-entity-ordering
Consistently open the next future period in the picasso
2 parents 9e867b6 + 9c642c1 commit 10509bc

File tree

4 files changed

+38
-39
lines changed

4 files changed

+38
-39
lines changed

api/config/packages/api_platform.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ api_platform:
3636
input_formats: [ 'jsonld', 'jsonapi', 'json' ]
3737
normalization_context:
3838
skip_null_values: false
39-
order:
40-
createTime: DESC
4139

4240
# On API-Platform Update - test, if this config is still needed.
4341
# See PR 5948: https://github.com/ecamp/ecamp3/pull/5948

api/src/Entity/Period.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
),
5757
],
5858
denormalizationContext: ['groups' => ['write']],
59-
normalizationContext: ['groups' => ['read']]
59+
normalizationContext: ['groups' => ['read']],
60+
order: ['start']
6061
)]
6162
#[ApiFilter(filterClass: SearchFilter::class, properties: ['camp'])]
6263
#[ORM\Entity(repositoryClass: PeriodRepository::class)]

e2e/specs/httpCache/content-types.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import itemResponse from './responses/content_types_entity.json'
33
import { bipiUser, cachedEndpoint, castorUser } from '../constants'
44

55
const collectionXKeys =
6-
'a4211c11211c c462edd869f3 5e2028c55ee4 a4211c112939 f17470519474 1a0f84e322c8 3ef17bd1df72 4f0c657fecef 44dcc7493c65 cfccaecd4bad 318e064ea0c9 /api/content_types'
6+
'a4211c11211c f17470519474 1a0f84e322c8 c462edd869f3 5e2028c55ee4 3ef17bd1df72 4f0c657fecef a4211c112939 44dcc7493c65 cfccaecd4bad 318e064ea0c9 /api/content_types'
77

88
describe('cache test: /content-types', () => {
99
it('caches collection separately for each login', () => {

e2e/specs/httpCache/responses/content_types_collection.json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,26 @@
88
"href": "/api/content_types/a4211c11211c"
99
},
1010
{
11-
"href": "/api/content_types/c462edd869f3"
12-
},
13-
{
14-
"href": "/api/content_types/5e2028c55ee4"
11+
"href": "/api/content_types/f17470519474"
1512
},
1613
{
17-
"href": "/api/content_types/a4211c112939"
14+
"href": "/api/content_types/1a0f84e322c8"
1815
},
1916
{
20-
"href": "/api/content_types/f17470519474"
17+
"href": "/api/content_types/c462edd869f3"
2118
},
2219
{
23-
"href": "/api/content_types/1a0f84e322c8"
20+
"href": "/api/content_types/5e2028c55ee4"
2421
},
2522
{
2623
"href": "/api/content_types/3ef17bd1df72"
2724
},
2825
{
2926
"href": "/api/content_types/4f0c657fecef"
3027
},
28+
{
29+
"href": "/api/content_types/a4211c112939"
30+
},
3131
{
3232
"href": "/api/content_types/44dcc7493c65"
3333
},
@@ -58,93 +58,93 @@
5858
{
5959
"_links": {
6060
"self": {
61-
"href": "/api/content_types/c462edd869f3"
61+
"href": "/api/content_types/f17470519474"
6262
},
6363
"contentNodes": {
64-
"href": "/api/content_node/single_texts?contentType=%2Fapi%2Fcontent_types%2Fc462edd869f3"
64+
"href": "/api/content_node/column_layouts?contentType=%2Fapi%2Fcontent_types%2Ff17470519474"
6565
}
6666
},
67-
"name": "LearningObjectives",
67+
"name": "ColumnLayout",
6868
"active": true,
69-
"id": "c462edd869f3"
69+
"id": "f17470519474"
7070
},
7171
{
7272
"_links": {
7373
"self": {
74-
"href": "/api/content_types/5e2028c55ee4"
74+
"href": "/api/content_types/1a0f84e322c8"
7575
},
7676
"contentNodes": {
77-
"href": "/api/content_node/single_texts?contentType=%2Fapi%2Fcontent_types%2F5e2028c55ee4"
77+
"href": "/api/content_node/multi_selects?contentType=%2Fapi%2Fcontent_types%2F1a0f84e322c8"
7878
}
7979
},
80-
"name": "LearningTopics",
80+
"name": "LAThematicArea",
8181
"active": true,
82-
"id": "5e2028c55ee4"
82+
"id": "1a0f84e322c8"
8383
},
8484
{
8585
"_links": {
8686
"self": {
87-
"href": "/api/content_types/a4211c112939"
87+
"href": "/api/content_types/c462edd869f3"
8888
},
8989
"contentNodes": {
90-
"href": "/api/content_node/responsive_layouts?contentType=%2Fapi%2Fcontent_types%2Fa4211c112939"
90+
"href": "/api/content_node/single_texts?contentType=%2Fapi%2Fcontent_types%2Fc462edd869f3"
9191
}
9292
},
93-
"name": "ResponsiveLayout",
93+
"name": "LearningObjectives",
9494
"active": true,
95-
"id": "a4211c112939"
95+
"id": "c462edd869f3"
9696
},
9797
{
9898
"_links": {
9999
"self": {
100-
"href": "/api/content_types/f17470519474"
100+
"href": "/api/content_types/5e2028c55ee4"
101101
},
102102
"contentNodes": {
103-
"href": "/api/content_node/column_layouts?contentType=%2Fapi%2Fcontent_types%2Ff17470519474"
103+
"href": "/api/content_node/single_texts?contentType=%2Fapi%2Fcontent_types%2F5e2028c55ee4"
104104
}
105105
},
106-
"name": "ColumnLayout",
106+
"name": "LearningTopics",
107107
"active": true,
108-
"id": "f17470519474"
108+
"id": "5e2028c55ee4"
109109
},
110110
{
111111
"_links": {
112112
"self": {
113-
"href": "/api/content_types/1a0f84e322c8"
113+
"href": "/api/content_types/3ef17bd1df72"
114114
},
115115
"contentNodes": {
116-
"href": "/api/content_node/multi_selects?contentType=%2Fapi%2Fcontent_types%2F1a0f84e322c8"
116+
"href": "/api/content_node/material_nodes?contentType=%2Fapi%2Fcontent_types%2F3ef17bd1df72"
117117
}
118118
},
119-
"name": "LAThematicArea",
119+
"name": "Material",
120120
"active": true,
121-
"id": "1a0f84e322c8"
121+
"id": "3ef17bd1df72"
122122
},
123123
{
124124
"_links": {
125125
"self": {
126-
"href": "/api/content_types/3ef17bd1df72"
126+
"href": "/api/content_types/4f0c657fecef"
127127
},
128128
"contentNodes": {
129-
"href": "/api/content_node/material_nodes?contentType=%2Fapi%2Fcontent_types%2F3ef17bd1df72"
129+
"href": "/api/content_node/single_texts?contentType=%2Fapi%2Fcontent_types%2F4f0c657fecef"
130130
}
131131
},
132-
"name": "Material",
132+
"name": "Notes",
133133
"active": true,
134-
"id": "3ef17bd1df72"
134+
"id": "4f0c657fecef"
135135
},
136136
{
137137
"_links": {
138138
"self": {
139-
"href": "/api/content_types/4f0c657fecef"
139+
"href": "/api/content_types/a4211c112939"
140140
},
141141
"contentNodes": {
142-
"href": "/api/content_node/single_texts?contentType=%2Fapi%2Fcontent_types%2F4f0c657fecef"
142+
"href": "/api/content_node/responsive_layouts?contentType=%2Fapi%2Fcontent_types%2Fa4211c112939"
143143
}
144144
},
145-
"name": "Notes",
145+
"name": "ResponsiveLayout",
146146
"active": true,
147-
"id": "4f0c657fecef"
147+
"id": "a4211c112939"
148148
},
149149
{
150150
"_links": {

0 commit comments

Comments
 (0)