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

RestController: when no specific classAlias is set, use automatic alias from xPDO #16395

Merged
merged 1 commit into from
Feb 22, 2023

Conversation

Mark-H
Copy link
Collaborator

@Mark-H Mark-H commented Feb 22, 2023

What does it do?

In the modRestController, change the classAlias fallback to the alias that gets autogenerated by xPDO.

Why is it needed?

With namespaced model classes, the full classKey becomes invalid for aliases, and you'd really want that to use the clean short version.

How to test

In a rest controller without a specific classAlias, confirm you can get data.

Related issue(s)/PR(s)

This was recently reported via Slack and the fix confirmed by the reporter.

I'm personally on the fence as to whether this is a 3.0.x bugfix or a 3.1 improved behavior but would suggest 3.1.

@Mark-H Mark-H added this to the v3.1.0 milestone Feb 22, 2023
@cla-bot cla-bot bot added the cla-signed CLA confirmed for contributors to this PR. label Feb 22, 2023
@opengeek opengeek added the bug The issue in the code or project, which should be addressed. label Feb 22, 2023
@opengeek
Copy link
Member

I'm gonna call it a bug and will port it back to 3.0.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue in the code or project, which should be addressed. cla-signed CLA confirmed for contributors to this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants