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

Merge Api classes #6524

Draft
wants to merge 1 commit into
base: v5/develop
Choose a base branch
from
Draft

Conversation

distantnative
Copy link
Member

@distantnative distantnative commented Jul 4, 2024

Description

  • Fix unit test error
  • Ensure all functionality works as before
  • Clean up classes
  • Add class aliases
  • Add changelog

Summary of changes

  • Merge Cms\Api classes into Api namespace

Reasoning

We decided that we don't want to have the enforced separation CMS/other where it doesn't benefit us. I think for less complexity in the long run, it makes sense to merge these classes.

Additional context

Changelog

Fixes

Breaking changes

Docs

Ready?

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

For review team

  • Add lab and/or sandbox examples (wherever helpful)
  • Add changes & docs to release notes draft in Notion

@distantnative distantnative added the type: refactoring ♻️ Is about bad code; cleans up code label Jul 4, 2024
@distantnative distantnative self-assigned this Jul 4, 2024
$this->assertTrue(in_array(setlocale(LC_TIME, 0), ['de', 'de_DE', 'de_DE.UTF-8', 'de_DE.UTF8', 'de_DE.ISO8859-1']));
$this->assertTrue(in_array(setlocale(LC_MONETARY, 0), $de));
$this->assertTrue(in_array(setlocale(LC_NUMERIC, 0), $de));
$this->assertTrue(in_array(setlocale(LC_TIME, 0), $de));
$this->assertSame($originalLocale, setlocale(LC_CTYPE, 0));
Copy link
Member Author

Choose a reason for hiding this comment

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

@lukasbestle With priority Z/not urgent: This unit test now fails as we have added the setUp method setting an app object with a locale. At least that's why I think it fails. How would we need to alter this test method to pass but still ensure it checks the right things? Not fully understanding all the setLocale calls, so if you have an idea sometime, not urgent at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: refactoring ♻️ Is about bad code; cleans up code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant