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

Color field: warning for deprecated notation #6913

Merged
merged 2 commits into from
Jan 27, 2025

Conversation

distantnative
Copy link
Member

@distantnative distantnative commented Jan 17, 2025

Changelog

Deprecated

  • Color field: the text => value notation for options has been deprecated and will be removed in Kirby 6. Please rewrite your options as value => text.

Ready?

  • In-code documentation (wherever needed)
  • Unit tests for fixed bug/feature
  • Tests and CI checks all pass

For review team

  • Add changes & docs to release notes draft in Notion

@distantnative distantnative added this to the 5.0.0-beta.2 milestone Jan 17, 2025
@distantnative distantnative self-assigned this Jan 17, 2025
@distantnative distantnative linked an issue Jan 17, 2025 that may be closed by this pull request
10 tasks
Copy link
Member

@bastianallgeier bastianallgeier left a comment

Choose a reason for hiding this comment

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

Should we leave the unit tests in there? The rest looks good

@distantnative distantnative force-pushed the v5/refactor/todo-color-options branch from 4121169 to e9529e3 Compare January 21, 2025 19:06
@distantnative
Copy link
Member Author

@bastianallgeier now I remember why I removed those tests in the first place XD they fail due to the deprecation warning

@bastianallgeier
Copy link
Member

Didn't we have something to disable this in tests? I can't remember correctly anymore. Otherwise, we should probably really remove them.

@distantnative
Copy link
Member Author

Let's move it to beta.3

@distantnative
Copy link
Member Author

distantnative commented Jan 24, 2025

@bastianallgeier the opposite: https://github.com/getkirby/kirby/blob/main/src/Cms/Helpers.php#L63 - we explicitly avoid swallowing the message when running in test mode.

I have removed the test again.

@distantnative distantnative force-pushed the v5/refactor/todo-color-options branch from e9529e3 to 993cf32 Compare January 24, 2025 22:49
@bastianallgeier bastianallgeier merged commit ebc5248 into v5/develop Jan 27, 2025
13 of 14 checks passed
@bastianallgeier bastianallgeier deleted the v5/refactor/todo-color-options branch January 27, 2025 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[v5] @todo items in codes
2 participants