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] Add permalink tests and third party document permalink resolving #207

Merged

Conversation

garvinhicking
Copy link
Contributor

This does a couple of related things:

  • Add unit testing for forwards (positive and negative expectations, version resolving, fallbacks)
  • Refactor permalink resolving into a specific method that can be unit-tested
  • Add unit test fixtures (objects.inv.json)
  • Add script (spider.sh) to fetch unit test fixtures
  • Refactor permalink resolving to deal with third party extension links (method resolveEntryPoint()
  • Resolve "stable", "oldstable" and "dev" pseudo-version via composer package t3docs/typo3-version-handling
  • Update t3docs/typo3-version-handling to latest version (to deal with 13.4 releases)

Happy reviewing :-)

Copy link

private-packagist bot commented Nov 18, 2024

legacy_hook/composer.lock

Package changes

Package Operation From To About
t3docs/typo3-version-handling upgrade 0.14.0 0.21.0 diff

Settings · Docs · Powered by Private Packagist

Copy link

The composer.lock diff comment has been updated to reflect new changes in this PR.

Comment on lines 251 to 256
$resolvedVersionEnum = Typo3VersionMapping::tryFrom($version);
if ($resolvedVersionEnum === null) {
$resolvedVersion = $version;
} else {
$resolvedVersion = $resolvedVersionEnum->getVersion();
}
Copy link
Member

Choose a reason for hiding this comment

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

Can be shortened to

Suggested change
$resolvedVersionEnum = Typo3VersionMapping::tryFrom($version);
if ($resolvedVersionEnum === null) {
$resolvedVersion = $version;
} else {
$resolvedVersion = $resolvedVersionEnum->getVersion();
}
$resolvedVersion = Typo3VersionMapping::tryFrom($version)?->getVersion() ?? $version;

@andreaskienast andreaskienast merged commit a1b037c into TYPO3GmbH:develop Dec 5, 2024
2 of 3 checks passed
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