Skip to content

Conversation

@Blacksmoke16
Copy link
Member

@Blacksmoke16 Blacksmoke16 commented Dec 11, 2024

Context

Fixes #481

When the routing component was integrated in #141, class level ARTA::Route annotations required the path to be provided explicitly via the path parameter, which is inconsistent with the method level implementation. This PR allows providing the path as the first positional argument in the class level, making them consistent.

Changelog

  • Make class level ARTA::Route annotation consistent with method level

Before merging, remember to add the athena-framework/athena prefix to the PR number in the PR title

@Blacksmoke16 Blacksmoke16 added kind:bug An existing feature isn't working as expected component:framework labels Dec 11, 2024
@codecov
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Flag Coverage Δ
compiled 8.14% <ø> (ø)
unit 92.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
clock 98.18% <ø> (ø)
console 92.61% <ø> (ø)
dependency_injection 64.28% <ø> (ø)
dotenv 96.80% <ø> (ø)
event_dispatcher 82.75% <ø> (ø)
framework 94.16% <ø> (ø)
image_size 95.03% <ø> (ø)
mercure 93.37% <ø> (ø)
negotiation 97.69% <ø> (ø)
routing 92.96% <ø> (ø)
serializer 87.23% <ø> (ø)
spec 93.54% <ø> (ø)
validator 92.37% <ø> (ø)

📢 Thoughts on this report? Let us know!

@Blacksmoke16 Blacksmoke16 merged commit 4274791 into master Dec 11, 2024
14 checks passed
@Blacksmoke16 Blacksmoke16 deleted the allow-positional-prefix-name branch December 11, 2024 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:framework kind:bug An existing feature isn't working as expected

Development

Successfully merging this pull request may close these issues.

ARTA::Route annotation did not register routes when prefixing it without a key parameter.

2 participants