Skip to content

Commit

Permalink
Merge branch 'hotfix/v2.4.16'
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Feb 17, 2025
2 parents f85dd1d + a32d099 commit 650330b
Show file tree
Hide file tree
Showing 20 changed files with 71 additions and 22 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to Roadiz will be documented in this file.

## [2.4.16](https://github.com/roadiz/core-bundle-dev-app/compare/v2.4.15...v2.4.16) - 2025-02-17

### Bug Fixes

- **(Rozier)** Generate ordered query-string arrays to prevent Varnish to sort `ids` arbitrarily - ([9c1b0cb](https://github.com/roadiz/core-bundle-dev-app/commit/9c1b0cb67ecd23e5ce9637344f88561c14912615))

## [2.4.15](https://github.com/roadiz/core-bundle-dev-app/compare/v2.4.14...v2.4.15) - 2025-02-17

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion lib/RoadizCoreBundle/config/services.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
parameters:
roadiz_core.cms_version: '2.4.15'
roadiz_core.cms_version: '2.4.16'
roadiz_core.cms_version_prefix: 'main'
env(APP_NAMESPACE): "roadiz"
env(APP_VERSION): "0.1.0"
Expand Down
8 changes: 7 additions & 1 deletion lib/Rozier/src/Resources/app/api/CustomFormApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ import request from 'axios'
export function getCustomFormsByIds({ ids = [], filters }) {
const postData = {
_token: window.RozierRoot.ajaxToken,
ids: ids,
}
/*
* We need to send the ids as an object with keys as string
* when Varnish is enabled, the query string is sorted
*/
for (let i = 0; i < ids.length; i++) {
postData['ids[' + i + ']'] = ids[i]
}

return request({
Expand Down
8 changes: 7 additions & 1 deletion lib/Rozier/src/Resources/app/api/DocumentApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ export function getDocumentsByIds({ ids = [] }) {
const postData = {
_token: window.RozierRoot.ajaxToken,
_action: 'documentsByIds',
ids: ids,
}
/*
* We need to send the ids as an object with keys as string
* when Varnish is enabled, the query string is sorted
*/
for (let i = 0; i < ids.length; i++) {
postData['ids[' + i + ']'] = ids[i]
}

return request({
Expand Down
8 changes: 7 additions & 1 deletion lib/Rozier/src/Resources/app/api/ExplorerProviderApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ import qs from 'qs'
export function getItemsByIds({ ids = [], filters }) {
const postData = {
_token: window.RozierRoot.ajaxToken,
ids: ids,
providerClass: filters.providerClass,
}
/*
* We need to send the ids as an object with keys as string
* when Varnish is enabled, the query string is sorted
*/
for (let i = 0; i < ids.length; i++) {
postData['ids[' + i + ']'] = ids[i]
}

return request({
method: 'GET',
Expand Down
8 changes: 7 additions & 1 deletion lib/Rozier/src/Resources/app/api/JoinApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ import request from 'axios'
export function getJoinsByIds({ ids = [], filters }) {
const postData = {
_token: window.RozierRoot.ajaxToken,
ids: ids,
nodeTypeFieldId: filters.nodeTypeField,
}
/*
* We need to send the ids as an object with keys as string
* when Varnish is enabled, the query string is sorted
*/
for (let i = 0; i < ids.length; i++) {
postData['ids[' + i + ']'] = ids[i]
}

return request({
method: 'GET',
Expand Down
8 changes: 7 additions & 1 deletion lib/Rozier/src/Resources/app/api/NodeApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ export function getNodesByIds({ ids = [] }) {
const postData = {
_token: window.RozierRoot.ajaxToken,
_action: 'nodesByIds',
ids: ids,
}
/*
* We need to send the ids as an object with keys as string
* when Varnish is enabled, the query string is sorted
*/
for (let i = 0; i < ids.length; i++) {
postData['ids[' + i + ']'] = ids[i]
}

return request({
Expand Down
8 changes: 7 additions & 1 deletion lib/Rozier/src/Resources/app/api/NodeTypeApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ export function getNodeTypesByIds({ ids = [] }) {
const postData = {
_token: window.RozierRoot.ajaxToken,
_action: 'nodeTypesByIds',
names: ids,
}
/*
* We need to send the ids as an object with keys as string
* when Varnish is enabled, the query string is sorted
*/
for (let i = 0; i < ids.length; i++) {
postData['names[' + i + ']'] = ids[i]
}

return request({
Expand Down
9 changes: 8 additions & 1 deletion lib/Rozier/src/Resources/app/api/TagApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,14 @@ export function getTagsByIds({ ids = [] }) {
const postData = {
_token: window.RozierRoot.ajaxToken,
_action: 'documentsByIds',
ids: ids,
}

/*
* We need to send the ids as an object with keys as string
* when Varnish is enabled, the query string is sorted
*/
for (let i = 0; i < ids.length; i++) {
postData['ids[' + i + ']'] = ids[i]
}

return request({
Expand Down
8 changes: 4 additions & 4 deletions lib/Rozier/src/Resources/views/forms.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@
{# Children node tree field #}
{% block childrennodes_widget %}
{% apply spaceless %}
<div class="uk-form-row children-nodes-widget" data-children-nodes-widget {{ block('widget_attributes') }}>
<div class="uk-form-row children-nodes-widget" data-translation-id="{{ nodeTree.translation.id }}" data-children-nodes-widget {{ block('widget_attributes') }}>
{% if label is empty -%}
{% set label = name|humanize %}
{%- endif -%}
Expand All @@ -418,9 +418,9 @@
{% for linkedType in linkedTypes %}
<a class="uk-button uk-button-small"
href="#"
data-children-node-type="{{ linkedType.getId }}"
data-children-parent-node="{{ nodeTree.rootNode.getId }}"
data-translation-id="{{ nodeTree.translation.getId }}">
data-children-node-type="{{ linkedType.id }}"
data-children-parent-node="{{ nodeTree.rootNode.id }}"
data-translation-id="{{ nodeTree.translation.id }}">
<i class="uk-icon-rz-plus-simple"></i>{{ linkedType.getDisplayName }}
</a>
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<link href="{{ asset('css/vendor.9b59501e29a05f532c3c.css', 'Rozier') }}" rel="stylesheet">

<link href="{{ asset('css/app.9826a3f175f9eecf80f0.css', 'Rozier') }}" rel="stylesheet">
<link href="{{ asset('css/app.d3346cef2aa49b6daaca.css', 'Rozier') }}" rel="stylesheet">



Expand Down
4 changes: 2 additions & 2 deletions lib/Rozier/src/Resources/views/partials/js-inject.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<script src="{{ asset('js/vendor.b12fa697ba450a228471.js', 'Rozier') }}" defer type="text/javascript"></script>
<script src="{{ asset('js/vendor.beab77f70f36848b9577.js', 'Rozier') }}" defer type="text/javascript"></script>

<script src="{{ asset('js/app.b12fa697ba450a228471.js', 'Rozier') }}" defer type="text/javascript"></script>
<script src="{{ asset('js/app.beab77f70f36848b9577.js', 'Rozier') }}" defer type="text/javascript"></script>

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

<script src="{{ asset('js/simple.b12fa697ba450a228471.js', 'Rozier') }}" defer type="text/javascript"></script>
<script src="{{ asset('js/simple.beab77f70f36848b9577.js', 'Rozier') }}" defer type="text/javascript"></script>

1 change: 0 additions & 1 deletion lib/Rozier/src/static/css/app.9826a3f175f9eecf80f0.css.map

This file was deleted.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/Rozier/src/static/css/app.d3346cef2aa49b6daaca.css.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 650330b

Please sign in to comment.