Repository navigation
[passion] add test to compare specification and implementation - #25878
Merged
Merged
Conversation
|
Warning This pull request does not link an OpenProject work package. Please add a link to the work package in the description, or reference it in the |
Kharonus
force-pushed
the
passion/api-tests-for-endpoint-implementation
branch
from
October 9, 2026 08:17
ed3e644 to
5c14673
Compare
NobodysNightmare
previously approved these changes
Oct 9, 2026
NobodysNightmare
left a comment
Contributor
There was a problem hiding this comment.
Generally LGTM. I am not yet sure about the case insensitive matching.
Those are not really implemented and apparently just served the point of saying "this is what an endpoint could look like"
The namespace was only correct in cases where the endpoint was defined as `get do` or `post do`, i.e. without an additional parameter. As soon as they get passed a parameter (e.g. `post :prepare_upload do`) their namespace does not include the relevant last part of the endpoint anymore, thus claiming that the given endpoints were not implemented.
For now this only affects the default 404 handler that we invoke for anything that's not defined. We definitely want to ignore this one. This one could also be excluded differently, but right now this is a working matcher and I have a hard time coming up with likely scenarios where we'll use the any matcher for request method in the future.
[passion] Fix missing implementation for API specs
- fixed spec validation warnings on the go
- for better distinction
- amended linter ignore to improve ambiguous path detection - remove some random warnings
…cation [passion] Add specification for specification endpoints
…sion/add-workspace-api-spec
Passion/add workspace api spec
Kharonus
commented
Oct 22, 2026
Member
Author
There was a problem hiding this comment.
ℹ️ Only the files in spec are for review, the rest was merged into this branch with other PRs
- added to example, too
Kharonus
force-pushed
the
passion/api-tests-for-endpoint-implementation
branch
from
October 22, 2026 08:28
91209f1 to
ad78c01
Compare
|
Warning Flaky specs
🤖 Ask Copilot to investigateCopy the prompt below into a new comment on this PR to delegate the investigation to GitHub Copilot. It will look into the flakiness and open a separate pull request with you as reviewer. |
shiroginne
approved these changes
Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What are you trying to accomplish?
What approach did you choose and why?
AI involvement
None/Assisted – No AI assistance used OR only autocomplete/pasted snippets. I effectively wrote and understand all the code.