Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor: rename the router controller to 'find' for fetching with a ... #338

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

Draft
boazpoolman wants to merge 2 commits into master
base: master
Choose a base branch
Loading
from feature/fix-api-token-access

Conversation

@boazpoolman
Copy link
Member

@boazpoolman boazpoolman commented Oct 20, 2025

...read-only API token

What does it do?

It renames the router controller from 'router' to 'find'. I've added backwards compatibility for anybody using the controller on their own custom endpoint. This will be removed in the next major version.

Why is it needed?

To make the endpoint accessible when using a read-only API token.

How to test it?

Provide information about the environment and the path to verify the behaviour.

Related issue(s)/PR(s)

#309 #7

Copy link

changeset-bot bot commented Oct 20, 2025
edited
Loading

🦋 Changeset detected

Latest commit: 8f64cef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
webtools-addon-sitemap Patch
strapi-plugin-webtools Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member Author

This actually seems to be a breaking change. I didn't realize that permissions are given to the controller, not the route. So renaming the controller will reset existing permissions. This will need a major version bump and will for that reason be postponed.

@boazpoolman boazpoolman force-pushed the feature/fix-api-token-access branch from 427746d to 2fd0445 Compare October 20, 2025 19:57
@boazpoolman boazpoolman marked this pull request as draft October 20, 2025 19:58
Copy link

codecov bot commented Oct 20, 2025
edited
Loading

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.89%. Comparing base (0625149) to head (2fd0445).

Additional details and impacted files
@@ Coverage Diff @@
## master #338 +/- ##
=======================================
 Coverage 38.89% 38.89% 
=======================================
 Files 2 2 
 Lines 653 653 
 Branches 163 163 
=======================================
 Hits 254 254 
 Misses 317 317 
 Partials 82 82 
Flag Coverage Δ
unit 38.89% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@boazpoolman can you fix the conflicts here?

Copy link
Member Author

@boazpoolman can you fix the conflicts here?

@SalahAdDin I can, but I'm not merging this PR just yet as it is not such a critical feature and it does introduce a breaking change.

Copy link
Contributor

SalahAdDin commented Dec 28, 2025
edited
Loading

@boazpoolman can you fix the conflicts here?

@SalahAdDin I can, but I'm not merging this PR just yet as it is not such a critical feature and it does introduce a breaking change.

Quality code, technical debt may be 😅?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@TMSchipper TMSchipper TMSchipper approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /