Skip to content
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

!!! TASK: Remove concepts addQueryString and argumentsToBeExcludedFromQueryString in Neos #5079

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented May 20, 2024

Resolves: #5076

Upgrade instructions

The options addQueryString and argumentsToBeExcludedFromQueryString have been removed from Fluid and Fusions Node Uri-Building API.
Please consider using Flows actual routing or reimplement this feature yourself:

- root = Neos.Fusion:NodeUri {
-    addQueryString = true
-    argumentsToBeExcludedFromQueryString = ${['bar']}
- }
+ root = Neos.Fusion:NodeUri {
+    additionalParams = ${request.arguments.filter((value, key) => key != 'bar')}
+ }

Affected Fusion prototypes:

  • Neos.Fusion:ActionUri
    • and its usages like Neos.Fusion:Link.Action's href
  • Neos.Fusion:UriBuilder
  • Neos.Neos:NodeLink
  • Neos.Neos:NodeUri

Fluid view helpers with now removed addQueryString

  • <neos:link.node />
  • <neos:uri.node />

Fluid view helpers with now deprecated addQueryString

  • <neos:uri.module />
  • <neos:link.module />

Affected PHP APIs:

  • LinkingService::createNodeUri
    • the parameters no. 8 & 9 are deprecated.

Review instructions

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

Copy link
Contributor

@grebaldi grebaldi left a comment

Choose a reason for hiding this comment

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

👍 by 👀

Copy link
Member

@mficzel mficzel left a comment

Choose a reason for hiding this comment

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

i like ... fine by 👀

@mhsdesign mhsdesign force-pushed the task/5076-remove-addQueryString-and-argumentsToBeExcludedFromQueryString-in-neos branch from e6f59e4 to 139021f Compare May 22, 2024 08:34
@mhsdesign mhsdesign merged commit f2db0a7 into neos:9.0 May 22, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Discussion: Removal of concepts addQueryString and argumentsToBeExcludedFromQueryString in Neos
3 participants