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

API Deprecate API being removed in CMS 6 #1908

Merged

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented Feb 25, 2025

Note that this PR requires silverstripe/silverstripe-framework#11623 to be merged first, since that adds the new constant.

Issue

*/
const SCHEMA_HEADER = 'X-Formschema-Request';
const SCHEMA_HEADER = FormSchema::SCHEMA_HEADER;
Copy link
Member

Choose a reason for hiding this comment

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

This looks really weird, can we just keep the existing string. There's pretty much zero risk of it getting changed.

Copy link
Member

Choose a reason for hiding this comment

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

Also shouldn't we update the CMS 5 references to this that to use the new const on FormSchema instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

This looks really weird, can we just keep the existing string.

I don't think it looks weird - we're setting the value to the correct constant. It's no different than when we make a deprecated method return the value of the new method.

Also shouldn't we update the CMS 5 references to this that to use the new const on FormSchema instead?

Yes, sorry, I missed that. Done.

@emteknetnz emteknetnz merged commit 58c0208 into silverstripe:2.4 Feb 26, 2025
4 of 16 checks passed
@emteknetnz emteknetnz deleted the pulls/2.4/deprecations branch February 26, 2025 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants